Handle gtk-doc just like GTK+ does it now:
2002-03-08 Sven Neumann <sven@gimp.org> Handle gtk-doc just like GTK+ does it now: * configure.in: check for gtk-doc version 0.9. Do not build the API reference by default. * autogen.sh: pass --enable-gtk-doc to configure. * Makefile.am: Added a slightly modified distcheck rule that passes --enable-gtk-doc to the configure inside. * NEWS: updated. Revival of the API reference framework. Misc fixes.
This commit is contained in:

committed by
Sven Neumann

parent
2d1b904752
commit
906a8784ba
@ -1,7 +1,12 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
libgimpmath.html
|
||||
libgimpmath.args
|
||||
libgimpmath.hierarchy
|
||||
libgimpmath.signals
|
||||
libgimpmath-decl.txt
|
||||
libgimpmath-decl-list.txt
|
||||
libgimpmath-unused.txt
|
||||
libgimpmath-undocumented.txt
|
||||
html
|
||||
sgml
|
||||
*.stamp
|
||||
|
@ -1,72 +1,148 @@
|
||||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
# The name of the module.
|
||||
DOC_MODULE=libgimpmath
|
||||
DOC_MODULE = libgimpmath
|
||||
|
||||
# The top-level SGML file.
|
||||
DOC_MAIN_SGML_FILE=libgimpmath-docs.sgml
|
||||
DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml
|
||||
|
||||
# The directory containing the source code (if it contains documentation).
|
||||
DOC_SOURCE_DIR=$(top_srcdir)/libgimpmath
|
||||
# The directory containing the source code.
|
||||
DOC_SOURCE_DIR = $(top_srcdir)/$(DOC_MODULE)
|
||||
|
||||
CFLAGS=`gimptool-1.4 --cflags`
|
||||
LDFLAGS=`gimptool-1.4 --libs`
|
||||
# Extra options to pass to gtkdoc-scangobj
|
||||
SCANGOBJ_OPTIONS =
|
||||
|
||||
# Extra options to supply to gtkdoc-scan
|
||||
SCAN_OPTIONS =
|
||||
|
||||
# Extra options to supply to gtkdoc-mkdb
|
||||
MKDB_OPTIONS =
|
||||
|
||||
# Extra options to supply to gtkdoc-fixref
|
||||
FIXXREF_OPTIONS =
|
||||
|
||||
# Used for dependencies
|
||||
HFILE_GLOB = $(DOC_SOURCE_DIR)/*.h
|
||||
CFILE_GLOB = $(DOC_SOURCE_DIR)/*.c
|
||||
|
||||
# Header files to ignore when scanning
|
||||
IGNORE_HFILES =
|
||||
|
||||
# Images to copy into HTML directory
|
||||
HTML_IMAGES=
|
||||
|
||||
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
|
||||
content_files =
|
||||
|
||||
# Other files to distribute
|
||||
extra_files =
|
||||
|
||||
# CFLAGS and LDFLAGS for compiling scan program. Only needed
|
||||
# if $(DOC_MODULE).types is non-empty.
|
||||
GTKDOC_CFLAGS =
|
||||
GTKDOC_LIBS =
|
||||
|
||||
GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC)
|
||||
GTKDOC_LD = $(LIBTOOL) --mode=link $(CC)
|
||||
|
||||
|
||||
####################################
|
||||
# Everything below here is generic #
|
||||
####################################
|
||||
|
||||
# We set GPATH here; this gives us semantics for GNU make
|
||||
# which are more like other make's VPATH, when it comes to
|
||||
# whether a source that is a target of one rule is then
|
||||
# searched for in VPATH/GPATH.
|
||||
#
|
||||
GPATH = $(srcdir)
|
||||
|
||||
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
|
||||
|
||||
libgimpmath_docdir = $(HTML_DIR)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(DOC_MAIN_SGML_FILE) \
|
||||
$(DOC_MODULE).hierarchy \
|
||||
$(DOC_MODULE).signals \
|
||||
EXTRA_DIST = \
|
||||
$(content_files) \
|
||||
$(extra_files) \
|
||||
$(HTML_IMAGES) \
|
||||
$(DOC_MAIN_SGML_FILE) \
|
||||
$(DOC_MODULE).types \
|
||||
$(DOC_MODULE)-include.c \
|
||||
$(DOC_MODULE)-decl.txt \
|
||||
$(DOC_MODULE)-sections.txt
|
||||
|
||||
DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
|
||||
$(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp
|
||||
|
||||
SCANOBJ_FILES = \
|
||||
$(DOC_MODULE).args \
|
||||
$(DOC_MODULE).hierarchy \
|
||||
$(DOC_MODULE).signals
|
||||
|
||||
if ENABLE_GTK_DOC
|
||||
html/index.html: sgml/libgimpmath-doc.bottom
|
||||
$(MAKE) html
|
||||
else
|
||||
html/index.html:
|
||||
all-local: html-build.stamp
|
||||
|
||||
#### scan ####
|
||||
|
||||
scan-build.stamp: $(HFILE_GLOB)
|
||||
@echo '*** Scanning header files ***'
|
||||
if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null ; then \
|
||||
CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
|
||||
else \
|
||||
cd $(srcdir) ; \
|
||||
for i in $(SCANOBJ_FILES) ; do \
|
||||
test -f $$i || touch $$i ; \
|
||||
done \
|
||||
fi
|
||||
cd $(srcdir) && \
|
||||
gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
|
||||
touch scan-build.stamp
|
||||
|
||||
$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): scan-build.stamp
|
||||
@true
|
||||
|
||||
#### templates ####
|
||||
|
||||
tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt
|
||||
@echo '*** Rebuilding template files ***'
|
||||
cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
|
||||
touch tmpl-build.stamp
|
||||
|
||||
tmpl.stamp: tmpl-build.stamp
|
||||
@true
|
||||
|
||||
#### sgml ####
|
||||
|
||||
sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml
|
||||
@echo '*** Building SGML ***'
|
||||
cd $(srcdir) && \
|
||||
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) $(MKDB_OPTIONS)
|
||||
touch sgml-build.stamp
|
||||
|
||||
sgml.stamp: sgml-build.stamp
|
||||
@true
|
||||
|
||||
#### html ####
|
||||
|
||||
html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
|
||||
@echo '*** Building HTML ***'
|
||||
rm -rf $(srcdir)/html
|
||||
mkdir $(srcdir)/html
|
||||
cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
|
||||
test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
|
||||
@echo '-- Fixing Crossreferences'
|
||||
cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
|
||||
touch html-build.stamp
|
||||
endif
|
||||
|
||||
sgml/libgimpmath-doc.bottom: $(tmpl_sources)
|
||||
$(MAKE) sgml
|
||||
|
||||
scan:
|
||||
-(cd $(srcdir) \
|
||||
&& env \
|
||||
CFLAGS="$(CFLAGS)" \
|
||||
CPPFLAGS="$(CPPFLAGS)" \
|
||||
LDFLAGS="$(LDFLAGS)" \
|
||||
gtkdoc-scanobj --module=$(DOC_MODULE) \
|
||||
&& gtkdoc-scan \
|
||||
--module=$(DOC_MODULE) \
|
||||
--source-dir=$(DOC_SOURCE_DIR))
|
||||
|
||||
templates: scan
|
||||
cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
|
||||
|
||||
sgml:
|
||||
cd $(srcdir) \
|
||||
&& gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
|
||||
|
||||
html:
|
||||
test -d $(srcdir)/html || mkdir $(srcdir)/html
|
||||
-cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
|
||||
##############
|
||||
|
||||
clean-local:
|
||||
rm -f *~ *.bak *-unused.txt
|
||||
rm -f *~ *.bak $(SCANOBJ_FILES) *-unused.txt $(DOC_STAMPS)
|
||||
|
||||
maintainer-clean-local: clean
|
||||
cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
|
||||
cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
|
||||
|
||||
install-data-local:
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
|
||||
(installfiles=`echo $(srcdir)/html/*.html`; \
|
||||
if test "$$installfiles" = '$(srcdir)/html/*.html'; \
|
||||
(installfiles=`echo $(srcdir)/html/*`; \
|
||||
if test "$$installfiles" = '$(srcdir)/html/*'; \
|
||||
then echo '-- Nothing to install' ; \
|
||||
else \
|
||||
for i in $$installfiles; do \
|
||||
@ -75,17 +151,25 @@ install-data-local:
|
||||
done; \
|
||||
echo '-- Installing $(srcdir)/html/index.sgml' ; \
|
||||
$(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \
|
||||
echo '-- Fixing Crossreferences' ; \
|
||||
gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \
|
||||
fi)
|
||||
|
||||
dist-hook:
|
||||
mkdir $(distdir)/html
|
||||
mkdir $(distdir)/sgml
|
||||
#
|
||||
# Require gtk-doc when making dist
|
||||
#
|
||||
if ENABLE_GTK_DOC
|
||||
dist-check-gtkdoc:
|
||||
else
|
||||
dist-check-gtkdoc:
|
||||
@echo "*** gtk-doc must be installed and enabled in order to make dist"
|
||||
@false
|
||||
endif
|
||||
|
||||
dist-hook: dist-check-gtkdoc dist-hook-local
|
||||
mkdir $(distdir)/tmpl
|
||||
-cp $(srcdir)/html/*.html $(srcdir)/html/index.sgml $(distdir)/html
|
||||
mkdir $(distdir)/sgml
|
||||
mkdir $(distdir)/html
|
||||
-cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
|
||||
-cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
|
||||
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
|
||||
-cp $(srcdir)/html/* $(distdir)/html
|
||||
|
||||
.PHONY : html sgml templates scan
|
||||
.PHONY : dist-hook-local
|
||||
|
@ -1,396 +0,0 @@
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_inner_product</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpVector2 *vector1,GimpVector2 *vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_inner_product_val</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpVector2 vector1,GimpVector2 vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_cross_product</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
GimpVector2 *vector1,GimpVector2 *vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_cross_product_val</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
GimpVector2 vector1,GimpVector2 vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_length</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpVector2 *vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_length_val</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpVector2 vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_normalize</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector2 *vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_normalize_val</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
GimpVector2 vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_mul</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector2 *vector,gdouble factor
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_mul_val</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
GimpVector2 vector,gdouble factor
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_sub</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector2 *result,GimpVector2 *vector1,GimpVector2 *vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_sub_val</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
GimpVector2 vector1,GimpVector2 vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_set</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector2 *vector,gdouble x,gdouble y
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_new_val</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
gdouble x,gdouble y
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_add</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector2 *result,GimpVector2 *vector1,GimpVector2 *vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_add_val</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
GimpVector2 vector1,GimpVector2 vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_neg</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector2 *vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_neg_val</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
GimpVector2 vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_rotate</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector2 *vector,gdouble alpha
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector2_rotate_val</NAME>
|
||||
<RETURNS>GimpVector2 </RETURNS>
|
||||
GimpVector2 vector,gdouble alpha
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_inner_product</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpVector3 *vector1,GimpVector3 *vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_inner_product_val</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpVector3 vector1,GimpVector3 vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_cross_product</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
GimpVector3 *vector1,GimpVector3 *vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_cross_product_val</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
GimpVector3 vector1,GimpVector3 vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_length</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpVector3 *vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_length_val</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpVector3 vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_normalize</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector3 *vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_normalize_val</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
GimpVector3 vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_mul</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector3 *vector,gdouble factor
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_mul_val</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
GimpVector3 vector,gdouble factor
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_sub</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector3 *result,GimpVector3 *vector1,GimpVector3 *vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_sub_val</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
GimpVector3 vector1,GimpVector3 vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_set</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector3 *vector,gdouble x,gdouble y,gdouble z
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_new</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
gdouble x,gdouble y,gdouble z
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_add</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector3 *result,GimpVector3 *vector1,GimpVector3 *vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_add_val</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
GimpVector3 vector1,GimpVector3 vector2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_neg</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector3 *vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_neg_val</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
GimpVector3 vector
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_rotate</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpVector3 *vector,gdouble alpha,gdouble beta,gdouble gamma
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector3_rotate_val</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
GimpVector3 vector,gdouble alpha,gdouble beta,gdouble gamma
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector_2d_to_3d</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint sx,gint sy,gint w,gint h,gint x,gint y,GimpVector3 *vp,GimpVector3 *p
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector_2d_to_3d_val</NAME>
|
||||
<RETURNS>GimpVector3 </RETURNS>
|
||||
gint sx,gint sy,gint w,gint h,gint x,gint y,GimpVector3 vp,GimpVector3 p
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_vector_3d_to_2d</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint sx,gint sy,gint w,gint h,gdouble *x,gdouble *y,GimpVector3 *vp,GimpVector3 *p
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_transform_point</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix,gdouble x,gdouble y,gdouble *newx,gdouble *newy
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_mult</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix1,GimpMatrix3 matrix2
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_identity</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_translate</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix,gdouble x,gdouble y
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_scale</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix,gdouble x,gdouble y
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_rotate</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix,gdouble theta
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_xshear</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix,gdouble amount
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_yshear</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix,gdouble amount
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_determinant</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
GimpMatrix3 matrix
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_invert</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 matrix,GimpMatrix3 matrix_inv
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_duplicate</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix3 src,GimpMatrix3 target
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_is_diagonal</NAME>
|
||||
<RETURNS>gboolean </RETURNS>
|
||||
GimpMatrix3 matrix
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_is_identity</NAME>
|
||||
<RETURNS>gboolean </RETURNS>
|
||||
GimpMatrix3 matrix
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix3_is_simple</NAME>
|
||||
<RETURNS>gboolean </RETURNS>
|
||||
GimpMatrix3 matrix
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_matrix4_to_deg</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpMatrix4 matrix,gdouble *a,gdouble *b,gdouble *c
|
||||
</FUNCTION>
|
||||
<MACRO>
|
||||
<NAME>G_PI</NAME>
|
||||
#define G_PI 3.14159265358979323846
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>G_PI_2</NAME>
|
||||
#define G_PI_2 1.57079632679489661923
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>G_PI_4</NAME>
|
||||
#define G_PI_4 0.78539816339744830962
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>G_SQRT2</NAME>
|
||||
#define G_SQRT2 1.4142135623730951
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>G_MAXRAND</NAME>
|
||||
#define G_MAXRAND G_MAXINT
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>G_MAXRAND</NAME>
|
||||
#define G_MAXRAND RAND_MAX
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>RINT</NAME>
|
||||
#define RINT(x) rint(x)
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>RINT</NAME>
|
||||
#define RINT(x) floor ((x) + 0.5)
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>ROUND</NAME>
|
||||
#define ROUND(x) ((int) ((x) + 0.5))
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>SQR</NAME>
|
||||
#define SQR(x) ((x) * (x))
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>MAX255</NAME>
|
||||
#define MAX255(a) ((a) | (((a) & 256) - (((a) & 256) >> 8)))
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>CLAMP0255</NAME>
|
||||
#define CLAMP0255(a) CLAMP(a,0,255)
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>gimp_deg_to_rad</NAME>
|
||||
#define gimp_deg_to_rad(angle) ((angle) * (2.0 * G_PI) / 360.0)
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>gimp_rad_to_deg</NAME>
|
||||
#define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI))
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>FINITE</NAME>
|
||||
#define FINITE(x) _finite(x)
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>FINITE</NAME>
|
||||
#define FINITE(x) isfinite(x)
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>FINITE</NAME>
|
||||
#define FINITE(x) finite(x)
|
||||
</MACRO>
|
||||
<TYPEDEF>
|
||||
<NAME>GimpMatrix3[3][3]</NAME>
|
||||
typedef gdouble GimpMatrix3[3][3];
|
||||
</TYPEDEF>
|
||||
<TYPEDEF>
|
||||
<NAME>GimpMatrix4[4][4]</NAME>
|
||||
typedef gdouble GimpMatrix4[4][4];
|
||||
</TYPEDEF>
|
||||
<STRUCT>
|
||||
<NAME>GimpVector2</NAME>
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpVector3</NAME>
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpVector4</NAME>
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpVector2</NAME>
|
||||
struct GimpVector2
|
||||
{
|
||||
gdouble x, y;
|
||||
};
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpVector3</NAME>
|
||||
struct GimpVector3
|
||||
{
|
||||
gdouble x, y, z;
|
||||
};
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpVector4</NAME>
|
||||
struct GimpVector4
|
||||
{
|
||||
gdouble x, y, z, w;
|
||||
};
|
||||
</STRUCT>
|
@ -1,15 +0,0 @@
|
||||
/*
|
||||
* gtk-doc can't build libgimpmath-scan.c without PLUG_IN_INFO being defined
|
||||
* so we include this file as a workaround
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
#include <libgimp/gimp.h>
|
||||
|
||||
GimpPlugInInfo PLUG_IN_INFO =
|
||||
{
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
@ -1,21 +0,0 @@
|
||||
GtkObject
|
||||
GtkWidget
|
||||
GtkRange
|
||||
GtkScrollbar
|
||||
GtkVScrollbar
|
||||
GtkHScrollbar
|
||||
GtkScale
|
||||
GtkHScale
|
||||
GtkVScale
|
||||
GtkContainer
|
||||
GtkBin
|
||||
GtkButton
|
||||
GtkToggleButton
|
||||
GtkCheckButton
|
||||
GtkRadioButton
|
||||
GtkScrolledWindow
|
||||
GtkPaned
|
||||
GtkVPaned
|
||||
GtkHPaned
|
||||
GtkData
|
||||
GtkAdjustment
|
@ -1,3 +0,0 @@
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "libgimpmath-include.c"
|
||||
|
@ -14,34 +14,6 @@ Mathematical definitions and macros.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### MACRO G_PI ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
|
||||
<!-- ##### MACRO G_PI_2 ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
|
||||
<!-- ##### MACRO G_PI_4 ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
|
||||
<!-- ##### MACRO G_SQRT2 ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
|
||||
<!-- ##### MACRO G_MAXRAND ##### -->
|
||||
<para>
|
||||
|
||||
|
Reference in New Issue
Block a user