configure.in devel-docs/Makefile.am devel-docs/libgimpcolor/*

2001-05-04  Michael Natterer  <mitch@gimp.org>

	* configure.in
	* devel-docs/Makefile.am
	* devel-docs/libgimpcolor/*
	* devel-docs/libgimpmath/*
	* devel-docs/libgimpwidgets/*: added new gtk-doc modules for
	libgimpcolor, libgimpmath and libgimpwidgets. Moved existing
	documentation from the old files to the new templates.

	* devel-docs/libgimp/*: regenerated all files and removed the
	stuff which is in the new modules now.

	* libgimpwidgets/gimpcolorarea.c
	* libgimpwidgets/gimpcolorbutton.[ch]: some documentation fixes.

	* po-libgimp/Makefile.in.in
	* po-plug-ins/Makefile.in.in
	* po-script-fu/Makefile.in.in: updated.
This commit is contained in:
Michael Natterer
2001-05-04 20:39:29 +00:00
committed by Michael Natterer
parent f5f8acf34e
commit b4ad2ab05b
95 changed files with 4597 additions and 4709 deletions

View File

@ -1,3 +1,23 @@
2001-05-04 Michael Natterer <mitch@gimp.org>
* configure.in
* devel-docs/Makefile.am
* devel-docs/libgimpcolor/*
* devel-docs/libgimpmath/*
* devel-docs/libgimpwidgets/*: added new gtk-doc modules for
libgimpcolor, libgimpmath and libgimpwidgets. Moved existing
documentation from the old files to the new templates.
* devel-docs/libgimp/*: regenerated all files and removed the
stuff which is in the new modules now.
* libgimpwidgets/gimpcolorarea.c
* libgimpwidgets/gimpcolorbutton.[ch]: some documentation fixes.
* po-libgimp/Makefile.in.in
* po-plug-ins/Makefile.in.in
* po-script-fu/Makefile.in.in: updated.
2001-05-03 Michael Natterer <mitch@gimp.org> 2001-05-03 Michael Natterer <mitch@gimp.org>
* app/apptypes.h: removed typedefs from the widgets/ subdir. * app/apptypes.h: removed typedefs from the widgets/ subdir.

View File

@ -845,6 +845,9 @@ modules/makefile.mingw
cursors/Makefile cursors/Makefile
devel-docs/Makefile devel-docs/Makefile
devel-docs/libgimp/Makefile devel-docs/libgimp/Makefile
devel-docs/libgimpcolor/Makefile
devel-docs/libgimpmath/Makefile
devel-docs/libgimpwidgets/Makefile
devel-docs/pdb/Makefile devel-docs/pdb/Makefile
docs/Makefile docs/Makefile
pixmaps/Makefile pixmaps/Makefile

View File

@ -1,4 +1,4 @@
SUBDIRS = libgimp pdb SUBDIRS = libgimpcolor libgimpmath libgimpwidgets libgimp pdb
EXTRA_DIST = \ EXTRA_DIST = \
README \ README \
@ -13,5 +13,3 @@ files:
@files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files macros/*; do \ @files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files macros/*; do \
echo $$p; \ echo $$p; \
done done
# devel-docs/Makefile.am ends here

View File

@ -9,8 +9,8 @@ DOC_MAIN_SGML_FILE=libgimp-docs.sgml
# The directory containing the source code (if it contains documentation). # The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR=$(top_srcdir)/libgimp DOC_SOURCE_DIR=$(top_srcdir)/libgimp
CFLAGS=`gimptool --cflags` CFLAGS=`gimptool-1.4 --cflags`
LDFLAGS=`gimptool --libs` LDFLAGS=`gimptool-1.4 --libs`
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
@ -90,8 +90,3 @@ dist-hook:
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml -cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
.PHONY : html sgml templates scan .PHONY : html sgml templates scan
# devel-docs/libgimp/Makefile.am ends here

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,6 @@
<!entity libgimp-gimp SYSTEM "sgml/gimp.sgml"> <!entity libgimp-gimp SYSTEM "sgml/gimp.sgml">
<!entity libgimp-gimpbrushes SYSTEM "sgml/gimpbrushes.sgml"> <!entity libgimp-gimpbrushes SYSTEM "sgml/gimpbrushes.sgml">
<!entity libgimp-gimpchannel SYSTEM "sgml/gimpchannel.sgml"> <!entity libgimp-gimpchannel SYSTEM "sgml/gimpchannel.sgml">
<!entity libgimp-gimpchannelops SYSTEM "sgml/gimpchannelops.sgml">
<!entity libgimp-gimpcolor SYSTEM "sgml/gimpcolor.sgml"> <!entity libgimp-gimpcolor SYSTEM "sgml/gimpcolor.sgml">
<!entity libgimp-gimpconvert SYSTEM "sgml/gimpconvert.sgml"> <!entity libgimp-gimpconvert SYSTEM "sgml/gimpconvert.sgml">
<!entity libgimp-gimpdisplay SYSTEM "sgml/gimpdisplay.sgml"> <!entity libgimp-gimpdisplay SYSTEM "sgml/gimpdisplay.sgml">
@ -33,34 +32,19 @@
<!entity libgimp-gimpcolorspace SYSTEM "sgml/gimpcolorspace.sgml"> <!entity libgimp-gimpcolorspace SYSTEM "sgml/gimpcolorspace.sgml">
<!entity libgimp-gimpenums SYSTEM "sgml/gimpenums.sgml"> <!entity libgimp-gimpenums SYSTEM "sgml/gimpenums.sgml">
<!entity libgimp-gimpwire SYSTEM "sgml/gimpwire.sgml"> <!entity libgimp-gimpwire SYSTEM "sgml/gimpwire.sgml">
<!entity libgimp-gimpmatrix SYSTEM "sgml/gimpmatrix.sgml">
<!entity libgimp-gimpparasite SYSTEM "sgml/gimpparasite.sgml"> <!entity libgimp-gimpparasite SYSTEM "sgml/gimpparasite.sgml">
<!entity libgimp-gimpcolorselector SYSTEM "sgml/gimpcolorselector.sgml"> <!entity libgimp-gimpcolorselector SYSTEM "sgml/gimpcolorselector.sgml">
<!entity libgimp-gimpmodule SYSTEM "sgml/gimpmodule.sgml"> <!entity libgimp-gimpmodule SYSTEM "sgml/gimpmodule.sgml">
<!entity libgimp-gimpmath SYSTEM "sgml/gimpmath.sgml">
<!entity libgimp-gimpcolordisplay SYSTEM "sgml/gimpcolordisplay.sgml"> <!entity libgimp-gimpcolordisplay SYSTEM "sgml/gimpcolordisplay.sgml">
<!entity libgimp-gimpenv SYSTEM "sgml/gimpenv.sgml"> <!entity libgimp-gimpenv SYSTEM "sgml/gimpenv.sgml">
<!entity libgimp-gimplimits SYSTEM "sgml/gimplimits.sgml"> <!entity libgimp-gimplimits SYSTEM "sgml/gimplimits.sgml">
<!entity libgimp-gimpexport SYSTEM "sgml/gimpexport.sgml"> <!entity libgimp-gimpexport SYSTEM "sgml/gimpexport.sgml">
<!entity libgimp-gimpparasiteio SYSTEM "sgml/gimpparasiteio.sgml"> <!entity libgimp-gimpparasiteio SYSTEM "sgml/gimpparasiteio.sgml">
<!entity libgimp-gimpcompat SYSTEM "sgml/gimpcompat.sgml">
<!entity libgimp-gimpfeatures SYSTEM "sgml/gimpfeatures.sgml"> <!entity libgimp-gimpfeatures SYSTEM "sgml/gimpfeatures.sgml">
<!entity GimpChainButton SYSTEM "sgml/gimpchainbutton.sgml">
<!entity GimpColorButton SYSTEM "sgml/gimpcolorbutton.sgml">
<!entity GimpFileSelection SYSTEM "sgml/gimpfileselection.sgml">
<!entity GimpPathEditor SYSTEM "sgml/gimppatheditor.sgml">
<!entity GimpPixmap SYSTEM "sgml/gimppixmap.sgml">
<!entity GimpSizeEntry SYSTEM "sgml/gimpsizeentry.sgml">
<!entity GimpUnitMenu SYSTEM "sgml/gimpunitmenu.sgml">
<!entity libgimp-gimpdialog SYSTEM "sgml/gimpdialog.sgml">
<!entity libgimp-gimphelpui SYSTEM "sgml/gimphelpui.sgml">
<!entity libgimp-gimpmenu SYSTEM "sgml/gimpmenu.sgml"> <!entity libgimp-gimpmenu SYSTEM "sgml/gimpmenu.sgml">
<!entity libgimp-gimpquerybox SYSTEM "sgml/gimpquerybox.sgml">
<!entity libgimp-gimpui SYSTEM "sgml/gimpui.sgml"> <!entity libgimp-gimpui SYSTEM "sgml/gimpui.sgml">
<!entity libgimp-gimpunit SYSTEM "sgml/gimpunit.sgml"> <!entity libgimp-gimpunit SYSTEM "sgml/gimpunit.sgml">
<!entity libgimp-gimputils SYSTEM "sgml/gimputils.sgml"> <!entity libgimp-gimputils SYSTEM "sgml/gimputils.sgml">
<!entity libgimp-gimpvector SYSTEM "sgml/gimpvector.sgml">
<!entity libgimp-gimpwidgets SYSTEM "sgml/gimpwidgets.sgml">
]> ]>
<book id="index"> <book id="index">
<bookinfo> <bookinfo>
@ -72,18 +56,14 @@
&libgimp-gimpenums; &libgimp-gimpenums;
&libgimp-gimpfeatures; &libgimp-gimpfeatures;
&libgimp-gimplimits; &libgimp-gimplimits;
&libgimp-gimpmath;
</chapter> </chapter>
<chapter id="libgimp"> <chapter id="libgimp">
<title>GIMP Library</title> <title>GIMP Library</title>
&libgimp-gimp; &libgimp-gimp;
&libgimp-gimpenv; &libgimp-gimpenv;
&libgimp-gimpcompat;
&libgimp-gimpbrushes; &libgimp-gimpbrushes;
&libgimp-gimpchannel; &libgimp-gimpchannel;
&libgimp-gimpchannelops;
&libgimp-gimpcolorspace;
&libgimp-gimpcolor; &libgimp-gimpcolor;
&libgimp-gimpconvert; &libgimp-gimpconvert;
&libgimp-gimpdisplay; &libgimp-gimpdisplay;
@ -97,7 +77,6 @@
&libgimp-gimphelp; &libgimp-gimphelp;
&libgimp-gimpimage; &libgimp-gimpimage;
&libgimp-gimplayer; &libgimp-gimplayer;
&libgimp-gimpmatrix;
&libgimp-gimpmessage; &libgimp-gimpmessage;
&libgimp-gimpmisc; &libgimp-gimpmisc;
&libgimp-gimppalette; &libgimp-gimppalette;
@ -116,26 +95,14 @@
&libgimp-gimpundo; &libgimp-gimpundo;
&libgimp-gimpunit; &libgimp-gimpunit;
&libgimp-gimputils; &libgimp-gimputils;
&libgimp-gimpvector;
&libgimp-gimpwire; &libgimp-gimpwire;
</chapter> </chapter>
<chapter id="libgimpui"> <chapter id="libgimpui">
<title>GIMP User Interface Library</title> <title>GIMP User Interface Library</title>
&libgimp-gimpui; &libgimp-gimpui;
&GimpChainButton;
&GimpColorButton;
&GimpFileSelection;
&GimpPathEditor;
&GimpPixmap;
&GimpSizeEntry;
&GimpUnitMenu;
&libgimp-gimpdialog;
&libgimp-gimpexport; &libgimp-gimpexport;
&libgimp-gimphelpui;
&libgimp-gimpmenu; &libgimp-gimpmenu;
&libgimp-gimpquerybox;
&libgimp-gimpwidgets;
</chapter> </chapter>
<chapter id="gimpmodule"> <chapter id="gimpmodule">

View File

@ -1,10 +1,12 @@
<SECTION> <SECTION>
<FILE>gimp</FILE> <FILE>gimp</FILE>
GIMPVAR GIMPVAR
gimp_major_version
gimp_minor_version
gimp_micro_version
gimp_get_data gimp_get_data
gimp_get_data_size gimp_get_data_size
gimp_set_data gimp_set_data
gimp_query_procedure
GimpInitProc GimpInitProc
GimpQuitProc GimpQuitProc
GimpQueryProc GimpQueryProc
@ -70,24 +72,6 @@ gimp_signal_private
gimp_signal_syscallrestart gimp_signal_syscallrestart
</SECTION> </SECTION>
<SECTION>
<FILE>gimpcolorspace</FILE>
gimp_rgb_to_hsv
gimp_hsv_to_rgb
gimp_rgb_to_hls
gimp_rgb_to_l
gimp_hls_to_rgb
gimp_rgb_to_hsv_double
gimp_hsv_to_rgb_double
gimp_rgb_to_hsv4
gimp_hsv_to_rgb4
INTENSITY_RED
INTENSITY_GREEN
INTENSITY_BLUE
INTENSITY
</SECTION>
<SECTION> <SECTION>
<FILE>gimpenums</FILE> <FILE>gimpenums</FILE>
GimpAddMaskType GimpAddMaskType
@ -95,7 +79,6 @@ GimpBlendMode
GimpBrushApplicationMode GimpBrushApplicationMode
GimpBucketFillMode GimpBucketFillMode
GimpChannelLutType GimpChannelLutType
GimpChannelOffsetType
GimpChannelOps GimpChannelOps
GimpChannelType GimpChannelType
GimpCloneType GimpCloneType
@ -108,6 +91,7 @@ GimpDodgeBurnType
GimpFillType GimpFillType
GimpImageBaseType GimpImageBaseType
GimpImageType GimpImageType
GimpOffsetType
GimpGradientPaintMode GimpGradientPaintMode
GimpGradientType GimpGradientType
GimpHueRange GimpHueRange
@ -166,56 +150,6 @@ wire_write_double
wire_write_string wire_write_string
</SECTION> </SECTION>
<SECTION>
<FILE>gimpmatrix</FILE>
GimpMatrix3[3][3]
GimpMatrix4[4][4]
gimp_matrix3_transform_point
gimp_matrix3_mult
gimp_matrix3_identity
gimp_matrix3_translate
gimp_matrix3_scale
gimp_matrix3_rotate
gimp_matrix3_xshear
gimp_matrix3_yshear
gimp_matrix3_determinant
gimp_matrix3_invert
gimp_matrix3_duplicate
gimp_matrix3_is_diagonal
gimp_matrix3_is_identity
gimp_matrix3_is_simple
gimp_matrix4_to_deg
</SECTION>
<SECTION>
<FILE>gimpvector</FILE>
GimpVector2
GimpVector3
GimpVector4
gimp_vector2_set
gimp_vector2_add
gimp_vector2_sub
gimp_vector2_neg
gimp_vector2_mul
gimp_vector2_inner_product
gimp_vector2_cross_product
gimp_vector2_normalize
gimp_vector2_length
gimp_vector2_rotate
gimp_vector3_set
gimp_vector3_add
gimp_vector3_sub
gimp_vector3_neg
gimp_vector3_mul
gimp_vector3_inner_product
gimp_vector3_cross_product
gimp_vector3_normalize
gimp_vector3_length
gimp_vector3_rotate
gimp_vector_3d_to_2d
gimp_vector_2d_to_3d
</SECTION>
<SECTION> <SECTION>
<FILE>gimpparasite</FILE> <FILE>gimpparasite</FILE>
GimpParasite GimpParasite
@ -260,12 +194,14 @@ gimp_image_attach_new_parasite
<SECTION> <SECTION>
<FILE>gimpcolorselector</FILE> <FILE>gimpcolorselector</FILE>
GimpColorSelector_Callback GimpColorSelectorCallback
GimpColorSelector_NewFunc GimpColorSelectorNewFunc
GimpColorSelector_FreeFunc GimpColorSelectorFreeFunc
GimpColorSelector_SetColorFunc GimpColorSelectorSetColorFunc
GimpColorSelectorSetChannelFunc
GimpColorSelectorMethods GimpColorSelectorMethods
GimpColorSelectorID GimpColorSelectorID
GimpColorSelectorChannelType
gimp_color_selector_register gimp_color_selector_register
GimpColorSelectorFinishedCB GimpColorSelectorFinishedCB
gimp_color_selector_unregister gimp_color_selector_unregister
@ -280,23 +216,6 @@ GimpModuleCompletedCB
GimpModuleUnloadFunc GimpModuleUnloadFunc
</SECTION> </SECTION>
<SECTION>
<FILE>gimpmath</FILE>
FINITE
G_PI
G_PI_2
G_PI_4
G_SQRT2
G_MAXRAND
RINT
ROUND
SQR
MAX255
CLAMP0255
gimp_deg_to_rad
gimp_rad_to_deg
</SECTION>
<SECTION> <SECTION>
<FILE>gimpcolordisplay</FILE> <FILE>gimpcolordisplay</FILE>
GimpColorDisplayInit GimpColorDisplayInit
@ -354,163 +273,6 @@ gimp_pixpipe_params_parse
gimp_pixpipe_params_build gimp_pixpipe_params_build
</SECTION> </SECTION>
<SECTION>
<FILE>gimpcompat</FILE>
GFillType
GImageType
GDrawableType
GLayerMode
GRunModeType
GOrientation
GParamType
GProcedureType
GStatusType
PARAM_INT32
PARAM_INT16
PARAM_INT8
PARAM_FLOAT
PARAM_STRING
PARAM_INT32ARRAY
PARAM_INT16ARRAY
PARAM_INT8ARRAY
PARAM_FLOATARRAY
PARAM_STRINGARRAY
PARAM_COLOR
PARAM_REGION
PARAM_DISPLAY
PARAM_IMAGE
PARAM_LAYER
PARAM_CHANNEL
PARAM_DRAWABLE
PARAM_SELECTION
PARAM_BOUNDARY
PARAM_PATH
PARAM_PARASITE
PARAM_STATUS
PARAM_END
STATUS_EXECUTION_ERROR
STATUS_CALLING_ERROR
STATUS_PASS_THROUGH
STATUS_SUCCESS
STATUS_CANCEL
PROC_INTERNAL
PROC_PLUG_IN
PROC_EXTENSION
PROC_TEMPORARY
ORIENTATION_HORIZONTAL
ORIENTATION_VERTICAL
ORIENTATION_UNKNOWN
FG_IMAGE_FILL
BG_IMAGE_FILL
WHITE_IMAGE_FILL
TRANS_IMAGE_FILL
NO_IMAGE_FILL
RGB
GRAY
INDEXED
RGB_IMAGE
RGBA_IMAGE
GRAY_IMAGE
GRAYA_IMAGE
INDEXED_IMAGE
INDEXEDA_IMAGE
NORMAL_MODE
DISSOLVE_MODE
BEHIND_MODE
MULTIPLY_MODE
SCREEN_MODE
OVERLAY_MODE
DIFFERENCE_MODE
ADDITION_MODE
SUBTRACT_MODE
DARKEN_ONLY_MODE
LIGHTEN_ONLY_MODE
HUE_MODE
SATURATION_MODE
COLOR_MODE
VALUE_MODE
DIVIDE_MODE
RUN_INTERACTIVE
RUN_NONINTERACTIVE
RUN_WITH_LAST_VALS
gimp_attach_parasite
gimp_detach_parasite
gimp_find_parasite
gimp_image_attach_parasite
gimp_image_detach_parasite
gimp_image_find_parasite
gimp_drawable_attach_parasite
gimp_drawable_detach_parasite
gimp_drawable_find_parasite
gimp_drawable_channel
gimp_drawable_gray
gimp_drawable_color
gimp_drawable_indexed
gimp_drawable_layer
gimp_drawable_layer_mask
gimp_image_disable_undo
gimp_image_enable_undo
gimp_image_freeze_undo
gimp_image_thaw_undo
gimp_channel_width
gimp_channel_height
gimp_channel_get_image_ID
gimp_channel_get_layer_ID
gimp_layer_width
gimp_layer_height
gimp_layer_bpp
gimp_layer_type
gimp_gradient_get_gradient_data
gimp_plugin_help_func
gimp_query_database
gimp_query_images
Parasite
PARASITE_PERSISTENT
PARASITE_UNDOABLE
PARASITE_ATTACH_PARENT
PARASITE_PARENT_PERSISTENT
PARASITE_PARENT_UNDOABLE
PARASITE_ATTACH_GRANDPARENT
PARASITE_GRANDPARENT_PERSISTENT
PARASITE_GRANDPARENT_UNDOABLE
parasite_new
parasite_free
parasite_copy
parasite_compare
parasite_is_type
parasite_is_persistent
parasite_is_undoable
parasite_has_flag
parasite_flags
parasite_name
parasite_data
parasite_data_size
PIXPIPE_MAXDIM
PixPipeParams
pixpipeparams_init
pixpipeparams_parse
pixpipeparams_build
GPlugInInfo
GTile
GDrawable
GPixelRgn
GParamColor
GParamRegion
GParamData
GParamDef
GParam
CAN_HANDLE_INDEXED
EXPORT_IGNORE
CAN_HANDLE_RGB
CAN_HANDLE_ALPHA
EXPORT_CANCEL
CAN_HANDLE_LAYERS_AS_ANIMATION
CAN_HANDLE_GRAY
NEEDS_ALPHA
EXPORT_EXPORT
CAN_HANDLE_LAYERS
</SECTION>
<SECTION> <SECTION>
<FILE>gimpfeatures</FILE> <FILE>gimpfeatures</FILE>
GIMP_MAJOR_VERSION GIMP_MAJOR_VERSION
@ -556,12 +318,7 @@ gimp_channel_set_color
gimp_channel_get_tattoo gimp_channel_get_tattoo
gimp_channel_set_tattoo gimp_channel_set_tattoo
gimp_channel_get_image_id gimp_channel_get_image_id
</SECTION> gimp_channel_combine_masks
<SECTION>
<FILE>gimpchannelops</FILE>
gimp_channel_ops_offset
gimp_channel_ops_duplicate
</SECTION> </SECTION>
<SECTION> <SECTION>
@ -909,6 +666,7 @@ gimp_selection_sharpen
gimp_selection_border gimp_selection_border
gimp_selection_translate gimp_selection_translate
gimp_selection_layer_alpha gimp_selection_layer_alpha
gimp_selection_combine
</SECTION> </SECTION>
<SECTION> <SECTION>
@ -972,168 +730,6 @@ gimp_undo_push_group_start
gimp_undo_push_group_end gimp_undo_push_group_end
</SECTION> </SECTION>
<SECTION>
<FILE>gimpchainbutton</FILE>
GimpChainButton
GIMP_CHAIN_BUTTON
GimpChainPosition
<TITLE>GimpChainButton</TITLE>
gimp_chain_button_new
gimp_chain_button_set_active
gimp_chain_button_get_active
<SUBSECTION Standard>
GIMP_TYPE_CHAIN_BUTTON
GIMP_IS_CHAIN_BUTTON
gimp_chain_button_get_type
GIMP_CHAIN_BUTTON_CLASS
GIMP_IS_CHAIN_BUTTON_CLASS
</SECTION>
<SECTION>
<FILE>gimpcolorbutton</FILE>
GimpColorButton
GIMP_COLOR_BUTTON
<TITLE>GimpColorButton</TITLE>
gimp_color_button_new
gimp_color_button_double_new
gimp_color_button_update
<SUBSECTION Standard>
GIMP_TYPE_COLOR_BUTTON
GIMP_IS_COLOR_BUTTON
gimp_color_button_get_type
GIMP_COLOR_BUTTON_CLASS
GIMP_IS_COLOR_BUTTON_CLASS
</SECTION>
<SECTION>
<FILE>gimpfileselection</FILE>
GimpFileSelection
GIMP_FILE_SELECTION
<TITLE>GimpFileSelection</TITLE>
gimp_file_selection_new
gimp_file_selection_get_filename
gimp_file_selection_set_filename
<SUBSECTION Standard>
GIMP_TYPE_FILE_SELECTION
GIMP_IS_FILE_SELECTION
gimp_file_selection_get_type
GIMP_FILE_SELECTION_CLASS
GIMP_IS_FILE_SELECTION_CLASS
</SECTION>
<SECTION>
<FILE>gimppatheditor</FILE>
GimpPathEditor
GIMP_PATH_EDITOR
<TITLE>GimpPathEditor</TITLE>
gimp_path_editor_new
gimp_path_editor_get_path
<SUBSECTION Standard>
GIMP_TYPE_PATH_EDITOR
GIMP_IS_PATH_EDITOR
gimp_path_editor_get_type
GIMP_PATH_EDITOR_CLASS
GIMP_IS_PATH_EDITOR_CLASS
</SECTION>
<SECTION>
<FILE>gimppixmap</FILE>
GimpPixmap
GIMP_PIXMAP
<TITLE>GimpPixmap</TITLE>
gimp_pixmap_new
gimp_pixmap_set
<SUBSECTION Standard>
GIMP_TYPE_PIXMAP
GIMP_IS_PIXMAP
gimp_pixmap_get_type
GIMP_PIXMAP_CLASS
GIMP_IS_PIXMAP_CLASS
</SECTION>
<SECTION>
<FILE>gimpquerybox</FILE>
GimpQueryStringCallback
GimpQueryIntCallback
GimpQueryDoubleCallback
GimpQuerySizeCallback
GimpQueryBooleanCallback
gimp_query_string_box
gimp_query_int_box
gimp_query_double_box
gimp_query_size_box
gimp_query_boolean_box
</SECTION>
<SECTION>
<FILE>gimpsizeentry</FILE>
GimpSizeEntry
GIMP_SIZE_ENTRY
GimpSizeEntryUpdatePolicy
GimpSizeEntryField
<TITLE>GimpSizeEntry</TITLE>
gimp_size_entry_new
gimp_size_entry_add_field
gimp_size_entry_attach_label
gimp_size_entry_set_resolution
gimp_size_entry_set_size
gimp_size_entry_set_value_boundaries
gimp_size_entry_get_value
gimp_size_entry_set_value
gimp_size_entry_set_refval_boundaries
gimp_size_entry_set_refval_digits
gimp_size_entry_get_refval
gimp_size_entry_set_refval
gimp_size_entry_get_unit
gimp_size_entry_set_unit
gimp_size_entry_grab_focus
<SUBSECTION Standard>
GIMP_TYPE_SIZE_ENTRY
GIMP_IS_SIZE_ENTRY
gimp_size_entry_get_type
GIMP_SIZE_ENTRY_CLASS
GIMP_IS_SIZE_ENTRY_CLASS
</SECTION>
<SECTION>
<FILE>gimpunitmenu</FILE>
GimpUnitMenu
GIMP_UNIT_MENU
<TITLE>GimpUnitMenu</TITLE>
gimp_unit_menu_new
gimp_unit_menu_set_unit
gimp_unit_menu_get_unit
<SUBSECTION Standard>
GIMP_TYPE_UNIT_MENU
GIMP_IS_UNIT_MENU
gimp_unit_menu_get_type
GIMP_UNIT_MENU_CLASS
GIMP_IS_UNIT_MENU_CLASS
</SECTION>
<SECTION>
<FILE>gimpdialog</FILE>
gimp_dialog_new
gimp_dialog_newv
gimp_dialog_set_icon
gimp_dialog_create_action_area
gimp_dialog_create_action_areav
</SECTION>
<SECTION>
<FILE>gimphelpui</FILE>
GimpHelpFunc
gimp_help_init
gimp_help_free
gimp_help_enable_tooltips
gimp_help_disable_tooltips
gimp_standard_help_func
gimp_help_connect_help_accel
gimp_help_set_help_data
gimp_context_help
</SECTION>
<SECTION> <SECTION>
<FILE>gimpmenu</FILE> <FILE>gimpmenu</FILE>
GimpConstraintFunc GimpConstraintFunc
@ -1176,45 +772,26 @@ gimp_unit_get_singular
gimp_unit_get_plural gimp_unit_get_plural
</SECTION> </SECTION>
<SECTION>
<FILE>gimpwidgets</FILE>
gimp_option_menu_new
gimp_option_menu_new2
gimp_option_menu_set_history
gimp_radio_group_new
gimp_radio_group_new2
gimp_spin_button_new
gimp_scale_entry_new
GIMP_SCALE_ENTRY_LABEL
GIMP_SCALE_ENTRY_SCALE
GIMP_SCALE_ENTRY_SCALE_ADJ
GIMP_SCALE_ENTRY_SPINBUTTON
GIMP_SCALE_ENTRY_SPINBUTTON_ADJ
gimp_random_seed_new
GIMP_RANDOM_SEED_SPINBUTTON
GIMP_RANDOM_SEED_SPINBUTTON_ADJ
GIMP_RANDOM_SEED_TOGGLEBUTTON
gimp_coordinates_new
GIMP_COORDINATES_CHAINBUTTON
gimp_mem_size_entry_new
GIMP_MEM_SIZE_ENTRY_SPINBUTTON
GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ
GIMP_MEM_SIZE_ENTRY_OPTIONMENU
gimp_pixmap_button_new
gimp_toggle_button_sensitive_update
gimp_toggle_button_update
gimp_radio_button_update
gimp_menu_item_update
gimp_int_adjustment_update
gimp_uint_adjustment_update
gimp_float_adjustment_update
gimp_double_adjustment_update
gimp_unit_menu_update
gimp_table_attach_aligned
</SECTION>
<SECTION> <SECTION>
<FILE>gimputils</FILE> <FILE>gimputils</FILE>
gimp_strescape gimp_strescape
gimp_strcompress gimp_strcompress
</SECTION> </SECTION>
<SECTION>
<FILE>gimpadaptivesupersample</FILE>
GimpRenderFunc
GimpPutPixelFunc
GimpProgressFunc
gimp_adaptive_supersample_area
</SECTION>
<SECTION>
<FILE>gimpbilinear</FILE>
gimp_bilinear
gimp_bilinear_8
gimp_bilinear_16
gimp_bilinear_32
gimp_bilinear_rgb
gimp_bilinear_rgba
</SECTION>

View File

@ -1,19 +1 @@
GtkObject GtkObject
GtkWidget
GtkContainer
GtkTable
GimpChainButton
GimpSizeEntry
GtkBin
GtkButton
GimpColorButton
GtkOptionMenu
GimpUnitMenu
GtkBox
GtkHBox
GimpFileSelection
GtkVBox
GimpPathEditor
GtkMisc
GtkPixmap
GimpPixmap

View File

@ -1,48 +0,0 @@
<SIGNAL>
<NAME>GimpChainButton::toggled</NAME>
<RETURNS>void</RETURNS>
GimpChainButton *gimpchainbutton
</SIGNAL>
<SIGNAL>
<NAME>GimpColorButton::color-changed</NAME>
<RETURNS>void</RETURNS>
GimpColorButton *gimpcolorbutton
</SIGNAL>
<SIGNAL>
<NAME>GimpFileSelection::filename-changed</NAME>
<RETURNS>void</RETURNS>
GimpFileSelection *gimpfileselection
</SIGNAL>
<SIGNAL>
<NAME>GimpPathEditor::path-changed</NAME>
<RETURNS>void</RETURNS>
GimpPathEditor *gimppatheditor
</SIGNAL>
<SIGNAL>
<NAME>GimpSizeEntry::value-changed</NAME>
<RETURNS>void</RETURNS>
GimpSizeEntry *gimpsizeentry
</SIGNAL>
<SIGNAL>
<NAME>GimpSizeEntry::refval-changed</NAME>
<RETURNS>void</RETURNS>
GimpSizeEntry *gimpsizeentry
</SIGNAL>
<SIGNAL>
<NAME>GimpSizeEntry::unit-changed</NAME>
<RETURNS>void</RETURNS>
GimpSizeEntry *gimpsizeentry
</SIGNAL>
<SIGNAL>
<NAME>GimpUnitMenu::unit-changed</NAME>
<RETURNS>void</RETURNS>
GimpUnitMenu *gimpunitmenu
</SIGNAL>

View File

@ -3,11 +3,3 @@
#include <libgimp/gimpui.h> #include <libgimp/gimpui.h>
#include "libgimp-include.c" #include "libgimp-include.c"
gimp_chain_button_get_type
gimp_color_button_get_type
gimp_file_selection_get_type
gimp_path_editor_get_type
gimp_pixmap_get_type
gimp_size_entry_get_type
gimp_unit_menu_get_type

View File

@ -24,6 +24,24 @@ all other GIMP Library headers.
<!-- ##### VARIABLE gimp_major_version ##### -->
<para>
</para>
<!-- ##### VARIABLE gimp_minor_version ##### -->
<para>
</para>
<!-- ##### VARIABLE gimp_micro_version ##### -->
<para>
</para>
<!-- ##### MACRO gimp_get_data ##### --> <!-- ##### MACRO gimp_get_data ##### -->
<para> <para>
@ -55,26 +73,6 @@ all other GIMP Library headers.
@length: @length:
<!-- ##### MACRO gimp_query_procedure ##### -->
<para>
</para>
@Returns:
<!-- # Unused Parameters # -->
@proc_name:
@proc_blurb:
@proc_help:
@proc_author:
@proc_copyright:
@proc_date:
@proc_type:
@nparams:
@nreturn_vals:
@params:
@return_vals:
<!-- ##### USER_FUNCTION GimpInitProc ##### --> <!-- ##### USER_FUNCTION GimpInitProc ##### -->
<para> <para>
@ -113,12 +111,19 @@ all other GIMP Library headers.
</para> </para>
@init_proc:
@quit_proc:
@query_proc:
@run_proc:
<!-- ##### STRUCT GimpParamDef ##### --> <!-- ##### STRUCT GimpParamDef ##### -->
<para> <para>
</para> </para>
@type:
@name:
@description:
<!-- ##### STRUCT GimpParamColor ##### --> <!-- ##### STRUCT GimpParamColor ##### -->
<para> <para>
@ -131,6 +136,10 @@ all other GIMP Library headers.
</para> </para>
@x:
@y:
@width:
@height:
<!-- ##### UNION GimpParamData ##### --> <!-- ##### UNION GimpParamData ##### -->
<para> <para>
@ -143,6 +152,8 @@ all other GIMP Library headers.
</para> </para>
@type:
@data:
<!-- ##### MACRO MAIN ##### --> <!-- ##### MACRO MAIN ##### -->
<para> <para>

View File

@ -0,0 +1,69 @@
<!-- ##### SECTION Title ##### -->
gimpadaptivesupersample
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### USER_FUNCTION GimpRenderFunc ##### -->
<para>
</para>
@x:
@y:
@color:
@data:
<!-- ##### USER_FUNCTION GimpPutPixelFunc ##### -->
<para>
</para>
@x:
@y:
@color:
@data:
<!-- ##### USER_FUNCTION GimpProgressFunc ##### -->
<para>
</para>
@min:
@max:
@current:
@data:
<!-- ##### FUNCTION gimp_adaptive_supersample_area ##### -->
<para>
</para>
@x1:
@y1:
@x2:
@y2:
@max_depth:
@threshold:
@render_func:
@render_data:
@put_pixel_func:
@put_pixel_data:
@progress_func:
@progress_data:
@Returns:

View File

@ -0,0 +1,82 @@
<!-- ##### SECTION Title ##### -->
gimpbilinear
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### FUNCTION gimp_bilinear ##### -->
<para>
</para>
@x:
@y:
@values:
@Returns:
<!-- ##### FUNCTION gimp_bilinear_8 ##### -->
<para>
</para>
@x:
@y:
@values:
@Returns:
<!-- ##### FUNCTION gimp_bilinear_16 ##### -->
<para>
</para>
@x:
@y:
@values:
@Returns:
<!-- ##### FUNCTION gimp_bilinear_32 ##### -->
<para>
</para>
@x:
@y:
@values:
@Returns:
<!-- ##### FUNCTION gimp_bilinear_rgb ##### -->
<para>
</para>
@x:
@y:
@values:
@Returns:
<!-- ##### FUNCTION gimp_bilinear_rgba ##### -->
<para>
</para>
@x:
@y:
@values:
@Returns:

View File

@ -128,10 +128,12 @@ gimpchannel
</para> </para>
@channel_ID: @channel_ID:
@color:
@Returns:
<!-- # Unused Parameters # -->
@red: @red:
@green: @green:
@blue: @blue:
@Returns:
<!-- ##### FUNCTION gimp_channel_set_color ##### --> <!-- ##### FUNCTION gimp_channel_set_color ##### -->
@ -140,10 +142,12 @@ gimpchannel
</para> </para>
@channel_ID: @channel_ID:
@color:
@Returns:
<!-- # Unused Parameters # -->
@red: @red:
@green: @green:
@blue: @blue:
@Returns:
<!-- ##### FUNCTION gimp_channel_get_tattoo ##### --> <!-- ##### FUNCTION gimp_channel_get_tattoo ##### -->
@ -172,3 +176,16 @@ gimpchannel
<!-- ##### FUNCTION gimp_channel_combine_masks ##### -->
<para>
</para>
@channel1_ID:
@channel2_ID:
@operation:
@offx:
@offy:
@Returns:

View File

@ -116,6 +116,16 @@ display color correction module.
</para> </para>
@init:
@new:
@clone:
@convert:
@destroy:
@finalize:
@load:
@save:
@configure:
@cancel:
<!-- ##### FUNCTION gimp_color_display_register ##### --> <!-- ##### FUNCTION gimp_color_display_register ##### -->
<para> <para>

View File

@ -20,73 +20,55 @@ color selector module.
#libgimp-gimpmodule #libgimp-gimpmodule
</para> </para>
<!-- ##### USER_FUNCTION GimpColorSelector_Callback ##### --> <!-- ##### USER_FUNCTION GimpColorSelectorCallback ##### -->
<para> <para>
A function of this type should be called by the color selector each
time the user modifies the selected color.
</para> </para>
@data: The @data passed to the #GimpColorSelector_NewFunc function. @data:
@r: The new color's red component. @hsv:
@g: The new color's green component. @rgb:
@b: The new color's blue component.
<!-- ##### USER_FUNCTION GimpColorSelector_NewFunc ##### --> <!-- ##### USER_FUNCTION GimpColorSelectorNewFunc ##### -->
<para> <para>
A function of this type is called to create a new instance of the
color selector. The new selector should set its current color to
the RGB triple given (each component is in the range 0 - 255
inclusive, with white at 255,255,255 and black at 0,0,0).
</para>
<para>
The selector should call @cb with argument @data each time the
user modifies the selected color.
</para>
<para>
The selector must return a #GtkWidget which implements the color
selection UI. The selector can optionally return @selector_data,
an opaque pointer which will be passed in to subsequent invokations
on the selector.
</para> </para>
@r: The red component of intitial color. @hsv:
@g: The green component of intitial color. @rgb:
@b: The blue component of intitial color. @show_alpha:
@cb: The function to call each time the user modifies the selected color. @cb:
@data: The @data to pass to @cb. @data:
@selector_data: An optional data pointer which will be passed in to subsequent invokations on the selector. @selector_data:
@Returns: A #GtkWidget which implements the color selection UI. @Returns:
<!-- ##### USER_FUNCTION GimpColorSelector_FreeFunc ##### --> <!-- ##### USER_FUNCTION GimpColorSelectorFreeFunc ##### -->
<para> <para>
A function of this type is called when the color selector is no
longer required. This function should *not* free widgets that are
containted within the UI widget returned by new(), since they are
destroyed on behalf of the selector by the caller of this
function.
</para> </para>
@selector_data: The @selector_data pointer returned by the #GimpColorSelector_NewFunc function. @selector_data:
<!-- ##### USER_FUNCTION GimpColorSelector_SetColorFunc ##### --> <!-- ##### USER_FUNCTION GimpColorSelectorSetColorFunc ##### -->
<para> <para>
A function of this type is called to change the selector's current
color. The required color is specified as in the new() function.
If the @set_current parameter is #FALSE, then only the old color
should be set - if @set_current is #TRUE, both the old color and
the current color should be set to the RGB triple given. This
function merely gives a hint to the color selector; the selector
can choose to ignore this information.
</para> </para>
@selector_data: The @selector_data pointer returned by the #GimpColorSelector_NewFunc function. @selector_data:
@r: The new color's red component. @hsv:
@g: The new color's green component. @rgb:
@b: The new color's blue component.
@set_current: Set the current color.
<!-- ##### USER_FUNCTION GimpColorSelectorSetChannelFunc ##### -->
<para>
</para>
@selector_data:
@type:
<!-- ##### STRUCT GimpColorSelectorMethods ##### --> <!-- ##### STRUCT GimpColorSelectorMethods ##### -->
@ -94,6 +76,10 @@ can choose to ignore this information.
</para> </para>
@new:
@free:
@set_color:
@set_channel:
<!-- ##### TYPEDEF GimpColorSelectorID ##### --> <!-- ##### TYPEDEF GimpColorSelectorID ##### -->
<para> <para>
@ -101,6 +87,19 @@ can choose to ignore this information.
</para> </para>
<!-- ##### ENUM GimpColorSelectorChannelType ##### -->
<para>
</para>
@GIMP_COLOR_SELECTOR_HUE:
@GIMP_COLOR_SELECTOR_SATURATION:
@GIMP_COLOR_SELECTOR_VALUE:
@GIMP_COLOR_SELECTOR_RED:
@GIMP_COLOR_SELECTOR_GREEN:
@GIMP_COLOR_SELECTOR_BLUE:
@GIMP_COLOR_SELECTOR_ALPHA:
<!-- ##### FUNCTION gimp_color_selector_register ##### --> <!-- ##### FUNCTION gimp_color_selector_register ##### -->
<para> <para>
Register a color selector. Returns an identifier for the color Register a color selector. Returns an identifier for the color

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,14 @@ gimpdrawable
</para> </para>
@id:
@width:
@height:
@bpp:
@ntile_rows:
@ntile_cols:
@tiles:
@shadow_tiles:
<!-- ##### FUNCTION gimp_drawable_get ##### --> <!-- ##### FUNCTION gimp_drawable_get ##### -->
<para> <para>
@ -303,11 +311,17 @@ gimpdrawable
@Returns: @Returns:
<!-- ##### MACRO gimp_drawable_offset ##### --> <!-- ##### FUNCTION gimp_drawable_offset ##### -->
<para> <para>
</para> </para>
@drawable_ID:
@wrap_around:
@fill_type:
@offset_x:
@offset_y:
@Returns:
<!-- ##### MACRO gimp_drawable_image_id ##### --> <!-- ##### MACRO gimp_drawable_image_id ##### -->

View File

@ -20,214 +20,389 @@ Enums and definitions.
</para> </para>
@GIMP_WHITE_MASK:
@GIMP_BLACK_MASK:
@GIMP_ALPHA_MASK:
@GIMP_SELECTION_MASK:
@GIMP_INV_SELECTION_MASK:
<!-- ##### ENUM GimpBlendMode ##### --> <!-- ##### ENUM GimpBlendMode ##### -->
<para> <para>
</para> </para>
@GIMP_FG_BG_RGB:
@GIMP_FG_BG_HSV:
@GIMP_FG_TRANS:
@GIMP_CUSTOM:
<!-- ##### ENUM GimpBrushApplicationMode ##### --> <!-- ##### ENUM GimpBrushApplicationMode ##### -->
<para> <para>
</para> </para>
@GIMP_HARD:
@GIMP_SOFT:
@GIMP_PRESSURE:
<!-- ##### ENUM GimpBucketFillMode ##### --> <!-- ##### ENUM GimpBucketFillMode ##### -->
<para> <para>
</para> </para>
@GIMP_FG_BUCKET_FILL:
@GIMP_BG_BUCKET_FILL:
@GIMP_PATTERN_BUCKET_FILL:
<!-- ##### ENUM GimpChannelLutType ##### --> <!-- ##### ENUM GimpChannelLutType ##### -->
<para> <para>
</para> </para>
@GIMP_VALUE_LUT:
<!-- ##### ENUM GimpChannelOffsetType ##### --> @GIMP_RED_LUT:
<para> @GIMP_GREEN_LUT:
@GIMP_BLUE_LUT:
</para> @GIMP_ALPHA_LUT:
<!-- ##### ENUM GimpChannelOps ##### --> <!-- ##### ENUM GimpChannelOps ##### -->
<para> <para>
</para> </para>
@GIMP_ADD:
@GIMP_SUB:
@GIMP_REPLACE:
@GIMP_INTERSECT:
<!-- ##### ENUM GimpChannelType ##### --> <!-- ##### ENUM GimpChannelType ##### -->
<para> <para>
</para> </para>
@GIMP_RED_CHANNEL:
@GIMP_GREEN_CHANNEL:
@GIMP_BLUE_CHANNEL:
@GIMP_GRAY_CHANNEL:
@GIMP_INDEXED_CHANNEL:
@GIMP_ALPHA_CHANNEL:
@GIMP_AUXILLARY_CHANNEL:
<!-- ##### ENUM GimpCloneType ##### --> <!-- ##### ENUM GimpCloneType ##### -->
<para> <para>
</para> </para>
@GIMP_IMAGE_CLONE:
@GIMP_PATTERN_CLONE:
<!-- ##### ENUM GimpConvertDitherType ##### --> <!-- ##### ENUM GimpConvertDitherType ##### -->
<para> <para>
</para> </para>
@GIMP_NO_DITHER:
@GIMP_FS_DITHER:
@GIMP_FSLOWBLEED_DITHER:
@GIMP_FIXED_DITHER:
@GIMP_NODESTRUCT_DITHER:
<!-- ##### ENUM GimpConvertPaletteType ##### --> <!-- ##### ENUM GimpConvertPaletteType ##### -->
<para> <para>
</para> </para>
@GIMP_MAKE_PALETTE:
@GIMP_REUSE_PALETTE:
@GIMP_WEB_PALETTE:
@GIMP_MONO_PALETTE:
@GIMP_CUSTOM_PALETTE:
<!-- ##### ENUM GimpConvolutionType ##### --> <!-- ##### ENUM GimpConvolutionType ##### -->
<para> <para>
</para> </para>
@GIMP_NORMAL_CONVOL:
@GIMP_ABSOLUTE_CONVOL:
@GIMP_NEGATIVE_CONVOL:
<!-- ##### ENUM GimpConvolveType ##### --> <!-- ##### ENUM GimpConvolveType ##### -->
<para> <para>
</para> </para>
@GIMP_BLUR_CONVOLVE:
@GIMP_SHARPEN_CONVOLVE:
@GIMP_CUSTOM_CONVOLVE:
<!-- ##### ENUM GimpDodgeBurnMode ##### --> <!-- ##### ENUM GimpDodgeBurnMode ##### -->
<para> <para>
</para> </para>
@GIMP_DODGEBURN_HIGHLIGHTS:
@GIMP_DODGEBURN_MIDTONES:
@GIMP_DODGEBURN_SHADOWS:
<!-- ##### ENUM GimpDodgeBurnType ##### --> <!-- ##### ENUM GimpDodgeBurnType ##### -->
<para> <para>
</para> </para>
@GIMP_DODGE:
@GIMP_BURN:
<!-- ##### ENUM GimpFillType ##### --> <!-- ##### ENUM GimpFillType ##### -->
<para> <para>
</para> </para>
@GIMP_FG_IMAGE_FILL:
@GIMP_BG_IMAGE_FILL:
@GIMP_WHITE_IMAGE_FILL:
@GIMP_TRANS_IMAGE_FILL:
@GIMP_NO_IMAGE_FILL:
<!-- ##### ENUM GimpImageBaseType ##### --> <!-- ##### ENUM GimpImageBaseType ##### -->
<para> <para>
</para> </para>
@GIMP_RGB:
@GIMP_GRAY:
@GIMP_INDEXED:
<!-- ##### ENUM GimpImageType ##### --> <!-- ##### ENUM GimpImageType ##### -->
<para> <para>
</para> </para>
@GIMP_RGB_IMAGE:
@GIMP_RGBA_IMAGE:
@GIMP_GRAY_IMAGE:
@GIMP_GRAYA_IMAGE:
@GIMP_INDEXED_IMAGE:
@GIMP_INDEXEDA_IMAGE:
<!-- ##### ENUM GimpOffsetType ##### -->
<para>
</para>
@GIMP_OFFSET_BACKGROUND:
@GIMP_OFFSET_TRANSPARENT:
<!-- ##### ENUM GimpGradientPaintMode ##### --> <!-- ##### ENUM GimpGradientPaintMode ##### -->
<para> <para>
</para> </para>
@GIMP_ONCE_FORWARD:
@GIMP_ONCE_BACKWARDS:
@GIMP_LOOP_SAWTOOTH:
@GIMP_LOOP_TRIANGLE:
@GIMP_ONCE_END_COLOR:
<!-- ##### ENUM GimpGradientType ##### --> <!-- ##### ENUM GimpGradientType ##### -->
<para> <para>
</para> </para>
@GIMP_LINEAR:
@GIMP_BILINEAR:
@GIMP_RADIAL:
@GIMP_SQUARE:
@GIMP_CONICAL_SYMMETRIC:
@GIMP_CONICAL_ASYMMETRIC:
@GIMP_SHAPEBURST_ANGULAR:
@GIMP_SHAPEBURST_SPHERICAL:
@GIMP_SHAPEBURST_DIMPLED:
@GIMP_SPIRAL_CLOCKWISE:
@GIMP_SPIRAL_ANTICLOCKWISE:
<!-- ##### ENUM GimpHueRange ##### --> <!-- ##### ENUM GimpHueRange ##### -->
<para> <para>
</para> </para>
@GIMP_ALL_HUES:
@GIMP_RED_HUES:
@GIMP_YELLOW_HUES:
@GIMP_GREEN_HUES:
@GIMP_CYAN_HUES:
@GIMP_BLUE_HUES:
@GIMP_MAGENTA_HUES:
<!-- ##### ENUM GimpInterpolationType ##### --> <!-- ##### ENUM GimpInterpolationType ##### -->
<para> <para>
</para> </para>
@GIMP_LINEAR_INTERPOLATION:
@GIMP_CUBIC_INTERPOLATION:
@GIMP_NEAREST_NEIGHBOR_INTERPOLATION:
<!-- ##### ENUM GimpLayerModeEffects ##### --> <!-- ##### ENUM GimpLayerModeEffects ##### -->
<para> <para>
</para> </para>
@GIMP_NORMAL_MODE:
@GIMP_DISSOLVE_MODE:
@GIMP_BEHIND_MODE:
@GIMP_MULTIPLY_MODE:
@GIMP_SCREEN_MODE:
@GIMP_OVERLAY_MODE:
@GIMP_DIFFERENCE_MODE:
@GIMP_ADDITION_MODE:
@GIMP_SUBTRACT_MODE:
@GIMP_DARKEN_ONLY_MODE:
@GIMP_LIGHTEN_ONLY_MODE:
@GIMP_HUE_MODE:
@GIMP_SATURATION_MODE:
@GIMP_COLOR_MODE:
@GIMP_VALUE_MODE:
@GIMP_DIVIDE_MODE:
@GIMP_DODGE_MODE:
@GIMP_BURN_MODE:
@GIMP_HARDLIGHT_MODE:
<!-- ##### ENUM GimpMaskApplyMode ##### --> <!-- ##### ENUM GimpMaskApplyMode ##### -->
<para> <para>
</para> </para>
@GIMP_APPLY:
@GIMP_DISCARD:
<!-- ##### ENUM GimpMergeType ##### --> <!-- ##### ENUM GimpMergeType ##### -->
<para> <para>
</para> </para>
@GIMP_EXPAND_AS_NECESSARY:
@GIMP_CLIP_TO_IMAGE:
@GIMP_CLIP_TO_BOTTOM_LAYER:
@GIMP_FLATTEN_IMAGE:
<!-- ##### ENUM GimpMessageHandlerType ##### --> <!-- ##### ENUM GimpMessageHandlerType ##### -->
<para> <para>
</para> </para>
@GIMP_MESSAGE_BOX:
@GIMP_CONSOLE:
@GIMP_ERROR_CONSOLE:
<!-- ##### ENUM GimpOrientationType ##### --> <!-- ##### ENUM GimpOrientationType ##### -->
<para> <para>
</para> </para>
@GIMP_HORIZONTAL:
@GIMP_VERTICAL:
@GIMP_UNKNOWN:
<!-- ##### ENUM GimpPDBArgType ##### --> <!-- ##### ENUM GimpPDBArgType ##### -->
<para> <para>
</para> </para>
@GIMP_PDB_INT32:
@GIMP_PDB_INT16:
@GIMP_PDB_INT8:
@GIMP_PDB_FLOAT:
@GIMP_PDB_STRING:
@GIMP_PDB_INT32ARRAY:
@GIMP_PDB_INT16ARRAY:
@GIMP_PDB_INT8ARRAY:
@GIMP_PDB_FLOATARRAY:
@GIMP_PDB_STRINGARRAY:
@GIMP_PDB_COLOR:
@GIMP_PDB_REGION:
@GIMP_PDB_DISPLAY:
@GIMP_PDB_IMAGE:
@GIMP_PDB_LAYER:
@GIMP_PDB_CHANNEL:
@GIMP_PDB_DRAWABLE:
@GIMP_PDB_SELECTION:
@GIMP_PDB_BOUNDARY:
@GIMP_PDB_PATH:
@GIMP_PDB_PARASITE:
@GIMP_PDB_STATUS:
@GIMP_PDB_END:
<!-- ##### ENUM GimpPDBProcType ##### --> <!-- ##### ENUM GimpPDBProcType ##### -->
<para> <para>
</para> </para>
@GIMP_INTERNAL:
@GIMP_PLUGIN:
@GIMP_EXTENSION:
@GIMP_TEMPORARY:
<!-- ##### ENUM GimpPDBStatusType ##### --> <!-- ##### ENUM GimpPDBStatusType ##### -->
<para> <para>
</para> </para>
@GIMP_PDB_EXECUTION_ERROR:
@GIMP_PDB_CALLING_ERROR:
@GIMP_PDB_PASS_THROUGH:
@GIMP_PDB_SUCCESS:
@GIMP_PDB_CANCEL:
<!-- ##### ENUM GimpPaintApplicationMode ##### --> <!-- ##### ENUM GimpPaintApplicationMode ##### -->
<para> <para>
</para> </para>
@GIMP_CONTINUOUS:
@GIMP_INCREMENTAL:
<!-- ##### ENUM GimpRepeatMode ##### --> <!-- ##### ENUM GimpRepeatMode ##### -->
<para> <para>
</para> </para>
@GIMP_REPEAT_NONE:
@GIMP_REPEAT_SAWTOOTH:
@GIMP_REPEAT_TRIANGULAR:
<!-- ##### ENUM GimpRunModeType ##### --> <!-- ##### ENUM GimpRunModeType ##### -->
<para> <para>
</para> </para>
@GIMP_RUN_INTERACTIVE:
@GIMP_RUN_NONINTERACTIVE:
@GIMP_RUN_WITH_LAST_VALS:
<!-- ##### ENUM GimpSizeType ##### --> <!-- ##### ENUM GimpSizeType ##### -->
<para> <para>
</para> </para>
@GIMP_PIXELS:
@GIMP_POINTS:
<!-- ##### ENUM GimpStackTraceMode ##### --> <!-- ##### ENUM GimpStackTraceMode ##### -->
<para> <para>
</para> </para>
@GIMP_STACK_TRACE_NEVER:
@GIMP_STACK_TRACE_QUERY:
@GIMP_STACK_TRACE_ALWAYS:
<!-- ##### ENUM GimpTransferMode ##### --> <!-- ##### ENUM GimpTransferMode ##### -->
<para> <para>
</para> </para>
@GIMP_SHADOWS:
@GIMP_MIDTONES:
@GIMP_HIGHLIGHTS:

View File

@ -30,12 +30,22 @@ as it will most probably have to open a dialog.
</para> </para>
@GIMP_EXPORT_CAN_HANDLE_RGB:
@GIMP_EXPORT_CAN_HANDLE_GRAY:
@GIMP_EXPORT_CAN_HANDLE_INDEXED:
@GIMP_EXPORT_CAN_HANDLE_ALPHA:
@GIMP_EXPORT_CAN_HANDLE_LAYERS:
@GIMP_EXPORT_CAN_HANDLE_LAYERS_AS_ANIMATION:
@GIMP_EXPORT_NEEDS_ALPHA:
<!-- ##### ENUM GimpExportReturnType ##### --> <!-- ##### ENUM GimpExportReturnType ##### -->
<para> <para>
</para> </para>
@GIMP_EXPORT_CANCEL:
@GIMP_EXPORT_IGNORE:
@GIMP_EXPORT_EXPORT:
<!-- ##### FUNCTION gimp_export_image ##### --> <!-- ##### FUNCTION gimp_export_image ##### -->
<para> <para>

View File

@ -653,13 +653,12 @@ gimpimage
@palette: @palette:
<!-- ##### MACRO gimp_image_duplicate ##### --> <!-- ##### FUNCTION gimp_image_duplicate ##### -->
<para> <para>
</para> </para>
@Returns:
<!-- # Unused Parameters # -->
@image_ID: @image_ID:
@Returns:

View File

@ -197,63 +197,6 @@ gimplayer
@Returns: @Returns:
<!-- ##### FUNCTION gimp_layer_get_apply_mask ##### -->
<para>
</para>
@layer_ID:
@Returns:
<!-- ##### FUNCTION gimp_layer_set_apply_mask ##### -->
<para>
</para>
@layer_ID:
@apply_mask:
@Returns:
<!-- ##### FUNCTION gimp_layer_get_show_mask ##### -->
<para>
</para>
@layer_ID:
@Returns:
<!-- ##### FUNCTION gimp_layer_set_show_mask ##### -->
<para>
</para>
@layer_ID:
@show_mask:
@Returns:
<!-- ##### FUNCTION gimp_layer_get_edit_mask ##### -->
<para>
</para>
@layer_ID:
@Returns:
<!-- ##### FUNCTION gimp_layer_set_edit_mask ##### -->
<para>
</para>
@layer_ID:
@edit_mask:
@Returns:
<!-- ##### FUNCTION gimp_layer_get_opacity ##### --> <!-- ##### FUNCTION gimp_layer_get_opacity ##### -->
<para> <para>

View File

@ -20,12 +20,20 @@ Common definitions for creating a pluggable GIMP module.
</para> </para>
@GIMP_MODULE_OK:
@GIMP_MODULE_UNLOAD:
<!-- ##### STRUCT GimpModuleInfo ##### --> <!-- ##### STRUCT GimpModuleInfo ##### -->
<para> <para>
</para> </para>
@shutdown_data:
@purpose:
@author:
@version:
@copyright:
@date:
<!-- ##### USER_FUNCTION GimpModuleInitFunc ##### --> <!-- ##### USER_FUNCTION GimpModuleInitFunc ##### -->
<para> <para>

View File

@ -19,10 +19,12 @@ gimppalette
</para> </para>
@foreground:
@Returns:
<!-- # Unused Parameters # -->
@red: @red:
@green: @green:
@blue: @blue:
@Returns:
<!-- ##### FUNCTION gimp_palette_get_background ##### --> <!-- ##### FUNCTION gimp_palette_get_background ##### -->
@ -30,10 +32,12 @@ gimppalette
</para> </para>
@background:
@Returns:
<!-- # Unused Parameters # -->
@red: @red:
@green: @green:
@blue: @blue:
@Returns:
<!-- ##### FUNCTION gimp_palette_set_foreground ##### --> <!-- ##### FUNCTION gimp_palette_set_foreground ##### -->
@ -41,10 +45,12 @@ gimppalette
</para> </para>
@foreground:
@Returns:
<!-- # Unused Parameters # -->
@red: @red:
@green: @green:
@blue: @blue:
@Returns:
<!-- ##### FUNCTION gimp_palette_set_background ##### --> <!-- ##### FUNCTION gimp_palette_set_background ##### -->
@ -52,10 +58,12 @@ gimppalette
</para> </para>
@background:
@Returns:
<!-- # Unused Parameters # -->
@red: @red:
@green: @green:
@blue: @blue:
@Returns:
<!-- ##### FUNCTION gimp_palette_set_default_colors ##### --> <!-- ##### FUNCTION gimp_palette_set_default_colors ##### -->

View File

@ -21,6 +21,10 @@ gimp_parasite_attach() and their related functions.
</para> </para>
@name:
@flags:
@size:
@data:
<!-- ##### MACRO GIMP_PARASITE_PERSISTENT ##### --> <!-- ##### MACRO GIMP_PARASITE_PERSISTENT ##### -->
<para> <para>

View File

@ -19,6 +19,10 @@ gimpparasite.sgml
</para> </para>
@name:
@flags:
@size:
@data:
<!-- ##### MACRO GIMP_PARASITE_PERSISTENT ##### --> <!-- ##### MACRO GIMP_PARASITE_PERSISTENT ##### -->
<para> <para>

View File

@ -19,6 +19,17 @@ gimppixelrgn
</para> </para>
@data:
@drawable:
@bpp:
@rowstride:
@x:
@y:
@w:
@h:
@dirty:
@shadow:
@process_count:
<!-- ##### FUNCTION gimp_pixel_rgn_init ##### --> <!-- ##### FUNCTION gimp_pixel_rgn_init ##### -->
<para> <para>

View File

@ -27,12 +27,24 @@ The communication protocol between GIMP and it's plug-ins.
</para> </para>
@version:
@tile_width:
@tile_height:
@shm_ID:
@gamma:
@install_cmap:
@use_xshm:
@min_colors:
@gdisp_ID:
<!-- ##### STRUCT GPTileReq ##### --> <!-- ##### STRUCT GPTileReq ##### -->
<para> <para>
</para> </para>
@drawable_ID:
@tile_num:
@shadow:
<!-- ##### STRUCT GPTileAck ##### --> <!-- ##### STRUCT GPTileAck ##### -->
<para> <para>
@ -45,42 +57,83 @@ The communication protocol between GIMP and it's plug-ins.
</para> </para>
@drawable_ID:
@tile_num:
@shadow:
@bpp:
@width:
@height:
@use_shm:
@data:
<!-- ##### STRUCT GPParam ##### --> <!-- ##### STRUCT GPParam ##### -->
<para> <para>
</para> </para>
@type:
@d_display:
@d_image:
@d_layer:
@d_channel:
@d_drawable:
@d_selection:
@d_boundary:
@d_path:
@d_status:
<!-- ##### STRUCT GPParamDef ##### --> <!-- ##### STRUCT GPParamDef ##### -->
<para> <para>
</para> </para>
@type:
@name:
@description:
<!-- ##### STRUCT GPProcRun ##### --> <!-- ##### STRUCT GPProcRun ##### -->
<para> <para>
</para> </para>
@name:
@nparams:
@params:
<!-- ##### STRUCT GPProcReturn ##### --> <!-- ##### STRUCT GPProcReturn ##### -->
<para> <para>
</para> </para>
@name:
@nparams:
@params:
<!-- ##### STRUCT GPProcInstall ##### --> <!-- ##### STRUCT GPProcInstall ##### -->
<para> <para>
</para> </para>
@name:
@blurb:
@help:
@author:
@copyright:
@date:
@menu_path:
@image_types:
@type:
@nparams:
@nreturn_vals:
@params:
@return_vals:
<!-- ##### STRUCT GPProcUninstall ##### --> <!-- ##### STRUCT GPProcUninstall ##### -->
<para> <para>
</para> </para>
@name:
<!-- ##### FUNCTION gp_init ##### --> <!-- ##### FUNCTION gp_init ##### -->
<para> <para>

View File

@ -188,3 +188,13 @@ gimpselection
@Returns: @Returns:
<!-- ##### FUNCTION gimp_selection_combine ##### -->
<para>
</para>
@channel_ID:
@operation:
@Returns:

View File

@ -19,6 +19,15 @@ gimptile
</para> </para>
@ewidth:
@eheight:
@bpp:
@tile_num:
@ref_count:
@dirty:
@shadow:
@data:
@drawable:
<!-- ##### FUNCTION gimp_tile_ref ##### --> <!-- ##### FUNCTION gimp_tile_ref ##### -->
<para> <para>

View File

@ -81,9 +81,7 @@ gimptools
</para> </para>
@drawable_ID: @drawable_ID:
@red: @color:
@green:
@blue:
@threshold: @threshold:
@operation: @operation:
@antialias: @antialias:
@ -91,6 +89,10 @@ gimptools
@feather_radius: @feather_radius:
@sample_merged: @sample_merged:
@Returns: @Returns:
<!-- # Unused Parameters # -->
@red:
@green:
@blue:
<!-- ##### FUNCTION gimp_clone ##### --> <!-- ##### FUNCTION gimp_clone ##### -->
@ -132,10 +134,12 @@ gimptools
@sample_average: @sample_average:
@average_radius: @average_radius:
@save_color: @save_color:
@color:
@Returns:
<!-- # Unused Parameters # -->
@red: @red:
@green: @green:
@blue: @blue:
@Returns:
<!-- ##### FUNCTION gimp_convolve ##### --> <!-- ##### FUNCTION gimp_convolve ##### -->

View File

@ -20,12 +20,6 @@ user-defined units.
#GimpSizeEntry #GimpSizeEntry
</para> </para>
<!-- ##### ENUM GimpUnit ##### -->
<para>
</para>
<!-- ##### FUNCTION gimp_unit_get_number_of_units ##### --> <!-- ##### FUNCTION gimp_unit_get_number_of_units ##### -->
<para> <para>

View File

@ -22,6 +22,8 @@ it's plug-ins.
</para> </para>
@type:
@data:
<!-- ##### USER_FUNCTION WireReadFunc ##### --> <!-- ##### USER_FUNCTION WireReadFunc ##### -->
<para> <para>

View File

@ -1,14 +0,0 @@
<!-- ##### FUNCTION gimp_request_wakeups ##### -->
<para>
</para>
<!-- ##### FUNCTION gp_request_wakeups_write ##### -->
<para>
</para>
@channel:
@Returns:

View File

@ -0,0 +1,7 @@
Makefile
Makefile.in
libgimpcolor.html
libgimpcolor-decl-list.txt
libgimpcolor-unused.txt
html
sgml

View File

@ -0,0 +1,91 @@
## Process this file with automake to produce Makefile.in
# The name of the module.
DOC_MODULE=libgimpcolor
# The top-level SGML file.
DOC_MAIN_SGML_FILE=libgimpcolor-docs.sgml
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR=$(top_srcdir)/libgimpcolor
CFLAGS=`gimptool-1.4 --cflags`
LDFLAGS=`gimptool-1.4 --libs`
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
libgimpcolor_docdir = $(HTML_DIR)
EXTRA_DIST = \
$(DOC_MAIN_SGML_FILE) \
$(DOC_MODULE).hierarchy \
$(DOC_MODULE).signals \
$(DOC_MODULE).types \
$(DOC_MODULE)-include.c \
$(DOC_MODULE)-decl.txt \
$(DOC_MODULE)-sections.txt
if ENABLE_GTK_DOC
html/index.html: sgml/libgimpcolor-doc.bottom
$(MAKE) html
else
html/index.html:
endif
sgml/libgimpcolor-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
maintainer-clean-local: clean
cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
(installfiles=`echo $(srcdir)/html/*.html`; \
if test "$$installfiles" = '$(srcdir)/html/*.html'; \
then echo '-- Nothing to install' ; \
else \
for i in $$installfiles; do \
echo '-- Installing '$$i ; \
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
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
mkdir $(distdir)/tmpl
-cp $(srcdir)/html/*.html $(srcdir)/html/index.sgml $(distdir)/html
-cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
-cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
.PHONY : html sgml templates scan

View File

@ -0,0 +1,247 @@
<FUNCTION>
<NAME>gimp_rgb_to_hsv</NAME>
<RETURNS>void </RETURNS>
const GimpRGB *rgb,GimpHSV *hsv
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_to_hsl</NAME>
<RETURNS>void </RETURNS>
const GimpRGB *rgb,gdouble *hue,gdouble *saturation,gdouble *lightness
</FUNCTION>
<FUNCTION>
<NAME>gimp_hsv_to_rgb</NAME>
<RETURNS>void </RETURNS>
const GimpHSV *hsv,GimpRGB *rgb
</FUNCTION>
<FUNCTION>
<NAME>gimp_hsl_to_rgb</NAME>
<RETURNS>void </RETURNS>
gdouble hue,gdouble saturation,gdouble lightness,GimpRGB *rgb
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_to_hwb</NAME>
<RETURNS>void </RETURNS>
const GimpRGB *rgb,gdouble *hue,gdouble *whiteness,gdouble *blackness
</FUNCTION>
<FUNCTION>
<NAME>gimp_hwb_to_rgb</NAME>
<RETURNS>void </RETURNS>
gdouble hue,gdouble whiteness,gdouble blackness,GimpRGB *rgb
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_to_hsv_int</NAME>
<RETURNS>void </RETURNS>
gint *red ,gint *green ,gint *blue
</FUNCTION>
<FUNCTION>
<NAME>gimp_hsv_to_rgb_int</NAME>
<RETURNS>void </RETURNS>
gint *hue ,gint *saturation ,gint *value
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_to_hls_int</NAME>
<RETURNS>void </RETURNS>
gint *red ,gint *green ,gint *blue
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_to_l_int</NAME>
<RETURNS>gint </RETURNS>
gint red,gint green,gint blue
</FUNCTION>
<FUNCTION>
<NAME>gimp_hls_to_rgb_int</NAME>
<RETURNS>void </RETURNS>
gint *hue ,gint *lightness ,gint *saturation
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_to_hsv_double</NAME>
<RETURNS>void </RETURNS>
gdouble *red ,gdouble *green ,gdouble *blue
</FUNCTION>
<FUNCTION>
<NAME>gimp_hsv_to_rgb_double</NAME>
<RETURNS>void </RETURNS>
gdouble *hue ,gdouble *saturation,gdouble *value
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_to_hsv4</NAME>
<RETURNS>void </RETURNS>
guchar *hsv,gdouble *red,gdouble *green,gdouble *blue
</FUNCTION>
<FUNCTION>
<NAME>gimp_hsv_to_rgb4</NAME>
<RETURNS>void </RETURNS>
guchar *rgb,gdouble hue,gdouble saturation,gdouble value
</FUNCTION>
<STRUCT>
<NAME>GimpRGB</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpRGB</NAME>
struct GimpRGB
{
gdouble r, g, b, a;
};
</STRUCT>
<STRUCT>
<NAME>GimpHSV</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpHSV</NAME>
struct GimpHSV
{
gdouble h, s, v, a;
};
</STRUCT>
<FUNCTION>
<NAME>gimp_hsv_set</NAME>
<RETURNS>void </RETURNS>
GimpHSV *hsv,gdouble h,gdouble s,gdouble v
</FUNCTION>
<FUNCTION>
<NAME>gimp_hsv_clamp</NAME>
<RETURNS>void </RETURNS>
GimpHSV *hsv
</FUNCTION>
<FUNCTION>
<NAME>gimp_hsva_set</NAME>
<RETURNS>void </RETURNS>
GimpHSV *hsva,gdouble h,gdouble s,gdouble v,gdouble a
</FUNCTION>
<ENUM>
<NAME>GimpRGBCompositeMode</NAME>
typedef enum
{
GIMP_RGB_COMPOSITE_NONE = 0,
GIMP_RGB_COMPOSITE_NORMAL,
GIMP_RGB_COMPOSITE_BEHIND
} GimpRGBCompositeMode;
</ENUM>
<FUNCTION>
<NAME>gimp_rgb_set</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgb,gdouble r,gdouble g,gdouble b
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_set_alpha</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgb,gdouble a
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_set_uchar</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgb,guchar r,guchar g,guchar b
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_get_uchar</NAME>
<RETURNS>void </RETURNS>
const GimpRGB *rgb,guchar *r,guchar *g,guchar *b
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_add</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgb1,const GimpRGB *rgb2
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_subtract</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgb1,const GimpRGB *rgb2
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_multiply</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgb1,gdouble factor
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_distance</NAME>
<RETURNS>gdouble </RETURNS>
const GimpRGB *rgb1,const GimpRGB *rgb2
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_max</NAME>
<RETURNS>gdouble </RETURNS>
const GimpRGB *rgb
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_min</NAME>
<RETURNS>gdouble </RETURNS>
const GimpRGB *rgb
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_clamp</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgb
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_gamma</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgb,gdouble gamma
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_intensity</NAME>
<RETURNS>gdouble </RETURNS>
const GimpRGB *rgb
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_intensity_uchar</NAME>
<RETURNS>guchar </RETURNS>
const GimpRGB *rgb
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgb_composite</NAME>
<RETURNS>void </RETURNS>
GimpRGB *color1,const GimpRGB *color2,GimpRGBCompositeMode mode
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgba_set</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgba,gdouble r,gdouble g,gdouble b,gdouble a
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgba_set_uchar</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgba,guchar r,guchar g,guchar b,guchar a
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgba_get_uchar</NAME>
<RETURNS>void </RETURNS>
const GimpRGB *rgba,guchar *r,guchar *g,guchar *b,guchar *a
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgba_add</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgba1,const GimpRGB *rgba2
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgba_subtract</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgba1,const GimpRGB *rgba2
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgba_multiply</NAME>
<RETURNS>void </RETURNS>
GimpRGB *rgba,gdouble factor
</FUNCTION>
<FUNCTION>
<NAME>gimp_rgba_distance</NAME>
<RETURNS>gdouble </RETURNS>
const GimpRGB *rgba1,const GimpRGB *rgba2
</FUNCTION>
<MACRO>
<NAME>INTENSITY_RED</NAME>
#define INTENSITY_RED 0.30
</MACRO>
<MACRO>
<NAME>INTENSITY_GREEN</NAME>
#define INTENSITY_GREEN 0.59
</MACRO>
<MACRO>
<NAME>INTENSITY_BLUE</NAME>
#define INTENSITY_BLUE 0.11
</MACRO>
<MACRO>
<NAME>INTENSITY</NAME>
#define INTENSITY(r,g,b) ((r) * INTENSITY_RED + \
(g) * INTENSITY_GREEN + \
(b) * INTENSITY_BLUE + 0.001)
</MACRO>

View File

@ -0,0 +1,19 @@
<!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
<!entity libgimpcolor-gimpcolortypes SYSTEM "sgml/gimpcolortypes.sgml">
<!entity libgimpcolor-gimpcolorspace SYSTEM "sgml/gimpcolorspace.sgml">
<!entity libgimpcolor-gimprgb SYSTEM "sgml/gimprgb.sgml">
<!entity libgimpcolor-gimphsv SYSTEM "sgml/gimphsv.sgml">
]>
<book id="index">
<bookinfo>
<title>GIMP Color Library Reference Manual</title>
</bookinfo>
<chapter id="libgimpcolor">
<title>GIMP Color Library</title>
&libgimpcolor-gimpcolortypes;
&libgimpcolor-gimpcolorspace;
&libgimpcolor-gimprgb;
&libgimpcolor-gimphsv;
</chapter>
</book>

View File

@ -0,0 +1,15 @@
/*
* gtk-doc can't build libgimpcolor-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,
};

View File

@ -0,0 +1,67 @@
<SECTION>
<FILE>gimpcolor</FILE>
</SECTION>
<SECTION>
<FILE>gimpcolorspace</FILE>
gimp_rgb_to_hsv
gimp_rgb_to_hsl
gimp_hsv_to_rgb
gimp_hsl_to_rgb
gimp_rgb_to_hwb
gimp_hwb_to_rgb
gimp_rgb_to_hsv_int
gimp_hsv_to_rgb_int
gimp_rgb_to_hls_int
gimp_rgb_to_l_int
gimp_hls_to_rgb_int
gimp_rgb_to_hsv_double
gimp_hsv_to_rgb_double
gimp_rgb_to_hsv4
gimp_hsv_to_rgb4
</SECTION>
<SECTION>
<FILE>gimpcolortypes</FILE>
GimpRGB
GimpHSV
</SECTION>
<SECTION>
<FILE>gimphsv</FILE>
gimp_hsv_set
gimp_hsv_clamp
gimp_hsva_set
</SECTION>
<SECTION>
<FILE>gimprgb</FILE>
GimpRGBCompositeMode
gimp_rgb_set
gimp_rgb_set_alpha
gimp_rgb_set_uchar
gimp_rgb_get_uchar
gimp_rgb_add
gimp_rgb_subtract
gimp_rgb_multiply
gimp_rgb_distance
gimp_rgb_max
gimp_rgb_min
gimp_rgb_clamp
gimp_rgb_gamma
gimp_rgb_intensity
gimp_rgb_intensity_uchar
gimp_rgb_composite
gimp_rgba_set
gimp_rgba_set_uchar
gimp_rgba_get_uchar
gimp_rgba_add
gimp_rgba_subtract
gimp_rgba_multiply
gimp_rgba_distance
INTENSITY_RED
INTENSITY_GREEN
INTENSITY_BLUE
INTENSITY
</SECTION>

View File

@ -0,0 +1 @@
GtkObject

View File

@ -0,0 +1,3 @@
#include <gtk/gtk.h>
#include "libgimpcolor-include.c"

View File

@ -0,0 +1 @@
libgimpcolor-unused.sgml

View File

@ -0,0 +1,16 @@
<!-- ##### SECTION Title ##### -->
gimpcolor
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>

View File

@ -10,7 +10,6 @@ When programming pixel data manipulation functions you will often use
algorithms operating on a color model different from the one GIMP algorithms operating on a color model different from the one GIMP
uses. This file provides utility functions to concert colors between uses. This file provides utility functions to concert colors between
different color spaces. different color spaces.
</para> </para>
<!-- ##### SECTION See_Also ##### --> <!-- ##### SECTION See_Also ##### -->
@ -23,12 +22,74 @@ different color spaces.
</para> </para>
@rgb:
@hsv:
<!-- ##### FUNCTION gimp_rgb_to_hsl ##### -->
<para>
</para>
@rgb:
@hue:
@saturation:
@lightness:
<!-- ##### FUNCTION gimp_hsv_to_rgb ##### -->
<para>
</para>
@hsv:
@rgb:
<!-- ##### FUNCTION gimp_hsl_to_rgb ##### -->
<para>
</para>
@hue:
@saturation:
@lightness:
@rgb:
<!-- ##### FUNCTION gimp_rgb_to_hwb ##### -->
<para>
</para>
@rgb:
@hue:
@whiteness:
@blackness:
<!-- ##### FUNCTION gimp_hwb_to_rgb ##### -->
<para>
</para>
@hue:
@whiteness:
@blackness:
@rgb:
<!-- ##### FUNCTION gimp_rgb_to_hsv_int ##### -->
<para>
</para>
@red: @red:
@green: @green:
@blue: @blue:
<!-- ##### FUNCTION gimp_hsv_to_rgb ##### --> <!-- ##### FUNCTION gimp_hsv_to_rgb_int ##### -->
<para> <para>
</para> </para>
@ -38,7 +99,7 @@ different color spaces.
@value: @value:
<!-- ##### FUNCTION gimp_rgb_to_hls ##### --> <!-- ##### FUNCTION gimp_rgb_to_hls_int ##### -->
<para> <para>
</para> </para>
@ -48,7 +109,7 @@ different color spaces.
@blue: @blue:
<!-- ##### FUNCTION gimp_rgb_to_l ##### --> <!-- ##### FUNCTION gimp_rgb_to_l_int ##### -->
<para> <para>
</para> </para>
@ -59,7 +120,7 @@ different color spaces.
@Returns: @Returns:
<!-- ##### FUNCTION gimp_hls_to_rgb ##### --> <!-- ##### FUNCTION gimp_hls_to_rgb_int ##### -->
<para> <para>
</para> </para>
@ -111,34 +172,3 @@ different color spaces.
@value: @value:
<!-- ##### MACRO INTENSITY_RED ##### -->
<para>
</para>
<!-- ##### MACRO INTENSITY_GREEN ##### -->
<para>
</para>
<!-- ##### MACRO INTENSITY_BLUE ##### -->
<para>
</para>
<!-- ##### MACRO INTENSITY ##### -->
<para>
</para>
@r:
@g:
@b:

View File

@ -0,0 +1,36 @@
<!-- ##### SECTION Title ##### -->
gimpcolortypes
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### STRUCT GimpRGB ##### -->
<para>
</para>
@r:
@g:
@b:
@a:
<!-- ##### STRUCT GimpHSV ##### -->
<para>
</para>
@h:
@s:
@v:
@a:

View File

@ -1,5 +1,5 @@
<!-- ##### SECTION Title ##### --> <!-- ##### SECTION Title ##### -->
gimpchannelops gimphsv
<!-- ##### SECTION Short_Description ##### --> <!-- ##### SECTION Short_Description ##### -->
@ -14,25 +14,34 @@ gimpchannelops
</para> </para>
<!-- ##### FUNCTION gimp_channel_ops_offset ##### --> <!-- ##### FUNCTION gimp_hsv_set ##### -->
<para> <para>
</para> </para>
@drawable_ID: @hsv:
@wrap_around: @h:
@fill_type: @s:
@offset_x: @v:
@offset_y:
@Returns:
<!-- ##### FUNCTION gimp_channel_ops_duplicate ##### --> <!-- ##### FUNCTION gimp_hsv_clamp ##### -->
<para> <para>
</para> </para>
@image_ID: @hsv:
@Returns:
<!-- ##### FUNCTION gimp_hsva_set ##### -->
<para>
</para>
@hsva:
@h:
@s:
@v:
@a:

View File

@ -0,0 +1,271 @@
<!-- ##### SECTION Title ##### -->
gimprgb
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### ENUM GimpRGBCompositeMode ##### -->
<para>
</para>
@GIMP_RGB_COMPOSITE_NONE:
@GIMP_RGB_COMPOSITE_NORMAL:
@GIMP_RGB_COMPOSITE_BEHIND:
<!-- ##### FUNCTION gimp_rgb_set ##### -->
<para>
</para>
@rgb:
@r:
@g:
@b:
<!-- ##### FUNCTION gimp_rgb_set_alpha ##### -->
<para>
</para>
@rgb:
@a:
<!-- ##### FUNCTION gimp_rgb_set_uchar ##### -->
<para>
</para>
@rgb:
@r:
@g:
@b:
<!-- ##### FUNCTION gimp_rgb_get_uchar ##### -->
<para>
</para>
@rgb:
@r:
@g:
@b:
<!-- ##### FUNCTION gimp_rgb_add ##### -->
<para>
</para>
@rgb1:
@rgb2:
<!-- ##### FUNCTION gimp_rgb_subtract ##### -->
<para>
</para>
@rgb1:
@rgb2:
<!-- ##### FUNCTION gimp_rgb_multiply ##### -->
<para>
</para>
@rgb1:
@factor:
<!-- ##### FUNCTION gimp_rgb_distance ##### -->
<para>
</para>
@rgb1:
@rgb2:
@Returns:
<!-- ##### FUNCTION gimp_rgb_max ##### -->
<para>
</para>
@rgb:
@Returns:
<!-- ##### FUNCTION gimp_rgb_min ##### -->
<para>
</para>
@rgb:
@Returns:
<!-- ##### FUNCTION gimp_rgb_clamp ##### -->
<para>
</para>
@rgb:
<!-- ##### FUNCTION gimp_rgb_gamma ##### -->
<para>
</para>
@rgb:
@gamma:
<!-- ##### FUNCTION gimp_rgb_intensity ##### -->
<para>
</para>
@rgb:
@Returns:
<!-- ##### FUNCTION gimp_rgb_intensity_uchar ##### -->
<para>
</para>
@rgb:
@Returns:
<!-- ##### FUNCTION gimp_rgb_composite ##### -->
<para>
</para>
@color1:
@color2:
@mode:
<!-- ##### FUNCTION gimp_rgba_set ##### -->
<para>
</para>
@rgba:
@r:
@g:
@b:
@a:
<!-- ##### FUNCTION gimp_rgba_set_uchar ##### -->
<para>
</para>
@rgba:
@r:
@g:
@b:
@a:
<!-- ##### FUNCTION gimp_rgba_get_uchar ##### -->
<para>
</para>
@rgba:
@r:
@g:
@b:
@a:
<!-- ##### FUNCTION gimp_rgba_add ##### -->
<para>
</para>
@rgba1:
@rgba2:
<!-- ##### FUNCTION gimp_rgba_subtract ##### -->
<para>
</para>
@rgba1:
@rgba2:
<!-- ##### FUNCTION gimp_rgba_multiply ##### -->
<para>
</para>
@rgba:
@factor:
<!-- ##### FUNCTION gimp_rgba_distance ##### -->
<para>
</para>
@rgba1:
@rgba2:
@Returns:
<!-- ##### MACRO INTENSITY_RED ##### -->
<para>
</para>
<!-- ##### MACRO INTENSITY_GREEN ##### -->
<para>
</para>
<!-- ##### MACRO INTENSITY_BLUE ##### -->
<para>
</para>
<!-- ##### MACRO INTENSITY ##### -->
<para>
</para>
@r:
@g:
@b:

View File

@ -0,0 +1,7 @@
Makefile
Makefile.in
libgimpmath.html
libgimpmath-decl-list.txt
libgimpmath-unused.txt
html
sgml

View File

@ -0,0 +1,91 @@
## Process this file with automake to produce Makefile.in
# The name of the module.
DOC_MODULE=libgimpmath
# The top-level SGML file.
DOC_MAIN_SGML_FILE=libgimpmath-docs.sgml
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR=$(top_srcdir)/libgimpmath
CFLAGS=`gimptool-1.4 --cflags`
LDFLAGS=`gimptool-1.4 --libs`
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
libgimpmath_docdir = $(HTML_DIR)
EXTRA_DIST = \
$(DOC_MAIN_SGML_FILE) \
$(DOC_MODULE).hierarchy \
$(DOC_MODULE).signals \
$(DOC_MODULE).types \
$(DOC_MODULE)-include.c \
$(DOC_MODULE)-decl.txt \
$(DOC_MODULE)-sections.txt
if ENABLE_GTK_DOC
html/index.html: sgml/libgimpmath-doc.bottom
$(MAKE) html
else
html/index.html:
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
maintainer-clean-local: clean
cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
(installfiles=`echo $(srcdir)/html/*.html`; \
if test "$$installfiles" = '$(srcdir)/html/*.html'; \
then echo '-- Nothing to install' ; \
else \
for i in $$installfiles; do \
echo '-- Installing '$$i ; \
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
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
mkdir $(distdir)/tmpl
-cp $(srcdir)/html/*.html $(srcdir)/html/index.sgml $(distdir)/html
-cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
-cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
.PHONY : html sgml templates scan

View File

@ -0,0 +1,396 @@
<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>
<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>
<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>

View File

@ -0,0 +1,19 @@
<!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
<!entity libgimpmath-gimpmatht SYSTEM "sgml/gimpmatht.sgml">
<!entity libgimpmath-gimpmathtypes SYSTEM "sgml/gimpmathtypes.sgml">
<!entity libgimpmath-gimpmatrix SYSTEM "sgml/gimpmatrix.sgml">
<!entity libgimpmath-gimpvector SYSTEM "sgml/gimpvector.sgml">
]>
<book id="index">
<bookinfo>
<title>GIMP Math Library Reference Manual</title>
</bookinfo>
<chapter id="libgimpcolor">
<title>GIMP Math Library</title>
&libgimpmath-gimpmatht;
&libgimpmath-gimpmathtypes;
&libgimpmath-gimpmatrix;
&libgimpmath-gimpvector;
</chapter>
</book>

View File

@ -0,0 +1,15 @@
/*
* 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,
};

View File

@ -0,0 +1,92 @@
<SECTION>
<FILE>gimpmath</FILE>
G_PI
G_PI_2
G_PI_4
G_SQRT2
G_MAXRAND
RINT
ROUND
SQR
MAX255
CLAMP0255
gimp_deg_to_rad
gimp_rad_to_deg
FINITE
</SECTION>
<SECTION>
<FILE>gimpmathtypes</FILE>
GimpMatrix3[3][3]
GimpMatrix4[4][4]
GimpVector2
GimpVector3
GimpVector4
</SECTION>
<SECTION>
<FILE>gimpmatrix</FILE>
gimp_matrix3_transform_point
gimp_matrix3_mult
gimp_matrix3_identity
gimp_matrix3_translate
gimp_matrix3_scale
gimp_matrix3_rotate
gimp_matrix3_xshear
gimp_matrix3_yshear
gimp_matrix3_determinant
gimp_matrix3_invert
gimp_matrix3_duplicate
gimp_matrix3_is_diagonal
gimp_matrix3_is_identity
gimp_matrix3_is_simple
gimp_matrix4_to_deg
</SECTION>
<SECTION>
<FILE>gimpvector</FILE>
gimp_vector2_inner_product
gimp_vector2_inner_product_val
gimp_vector2_cross_product
gimp_vector2_cross_product_val
gimp_vector2_length
gimp_vector2_length_val
gimp_vector2_normalize
gimp_vector2_normalize_val
gimp_vector2_mul
gimp_vector2_mul_val
gimp_vector2_sub
gimp_vector2_sub_val
gimp_vector2_set
gimp_vector2_new_val
gimp_vector2_add
gimp_vector2_add_val
gimp_vector2_neg
gimp_vector2_neg_val
gimp_vector2_rotate
gimp_vector2_rotate_val
gimp_vector3_inner_product
gimp_vector3_inner_product_val
gimp_vector3_cross_product
gimp_vector3_cross_product_val
gimp_vector3_length
gimp_vector3_length_val
gimp_vector3_normalize
gimp_vector3_normalize_val
gimp_vector3_mul
gimp_vector3_mul_val
gimp_vector3_sub
gimp_vector3_sub_val
gimp_vector3_set
gimp_vector3_new
gimp_vector3_add
gimp_vector3_add_val
gimp_vector3_neg
gimp_vector3_neg_val
gimp_vector3_rotate
gimp_vector3_rotate_val
gimp_vector_2d_to_3d
gimp_vector_2d_to_3d_val
gimp_vector_3d_to_2d
</SECTION>

View File

View File

@ -0,0 +1 @@
GtkObject

View File

@ -0,0 +1,3 @@
#include <gtk/gtk.h>
#include "libgimpmath-include.c"

View File

@ -0,0 +1 @@
libgimpmath-unused.sgml

View File

@ -7,7 +7,6 @@ Mathematical definitions and macros.
<!-- ##### SECTION Long_Description ##### --> <!-- ##### SECTION Long_Description ##### -->
<para> <para>
Mathematical definitions and macros. Mathematical definitions and macros.
</para> </para>
<!-- ##### SECTION See_Also ##### --> <!-- ##### SECTION See_Also ##### -->
@ -15,14 +14,6 @@ Mathematical definitions and macros.
</para> </para>
<!-- ##### MACRO FINITE ##### -->
<para>
</para>
@x:
<!-- ##### MACRO G_PI ##### --> <!-- ##### MACRO G_PI ##### -->
<para> <para>
@ -114,3 +105,11 @@ Mathematical definitions and macros.
@angle: @angle:
<!-- ##### MACRO FINITE ##### -->
<para>
</para>
@x:

View File

@ -0,0 +1,55 @@
<!-- ##### SECTION Title ##### -->
gimpmathtypes
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### TYPEDEF GimpMatrix3[3][3] ##### -->
<para>
</para>
<!-- ##### TYPEDEF GimpMatrix4[4][4] ##### -->
<para>
</para>
<!-- ##### STRUCT GimpVector2 ##### -->
<para>
</para>
@x:
@y:
<!-- ##### STRUCT GimpVector3 ##### -->
<para>
</para>
@x:
@y:
@z:
<!-- ##### STRUCT GimpVector4 ##### -->
<para>
</para>
@x:
@y:
@z:
@w:

View File

@ -24,18 +24,6 @@ basic matrix manipulations and tests.
#GimpVector4 #GimpVector4
</para> </para>
<!-- ##### TYPEDEF GimpMatrix3[3][3] ##### -->
<para>
</para>
<!-- ##### TYPEDEF GimpMatrix4[4][4] ##### -->
<para>
</para>
<!-- ##### FUNCTION gimp_matrix3_transform_point ##### --> <!-- ##### FUNCTION gimp_matrix3_transform_point ##### -->
<para> <para>

View File

@ -18,71 +18,6 @@ Utilities to set up and manipulate vectors.
#GimpMatrix4 #GimpMatrix4
</para> </para>
<!-- ##### STRUCT GimpVector2 ##### -->
<para>
</para>
<!-- ##### STRUCT GimpVector3 ##### -->
<para>
</para>
<!-- ##### STRUCT GimpVector4 ##### -->
<para>
</para>
<!-- ##### FUNCTION gimp_vector2_set ##### -->
<para>
</para>
@vector:
@x:
@y:
<!-- ##### FUNCTION gimp_vector2_add ##### -->
<para>
</para>
@result:
@vector1:
@vector2:
<!-- ##### FUNCTION gimp_vector2_sub ##### -->
<para>
</para>
@result:
@vector1:
@vector2:
<!-- ##### FUNCTION gimp_vector2_neg ##### -->
<para>
</para>
@vector:
<!-- ##### FUNCTION gimp_vector2_mul ##### -->
<para>
</para>
@vector:
@factor:
<!-- ##### FUNCTION gimp_vector2_inner_product ##### --> <!-- ##### FUNCTION gimp_vector2_inner_product ##### -->
<para> <para>
@ -93,6 +28,16 @@ Utilities to set up and manipulate vectors.
@Returns: @Returns:
<!-- ##### FUNCTION gimp_vector2_inner_product_val ##### -->
<para>
</para>
@vector1:
@vector2:
@Returns:
<!-- ##### FUNCTION gimp_vector2_cross_product ##### --> <!-- ##### FUNCTION gimp_vector2_cross_product ##### -->
<para> <para>
@ -103,6 +48,34 @@ Utilities to set up and manipulate vectors.
@Returns: @Returns:
<!-- ##### FUNCTION gimp_vector2_cross_product_val ##### -->
<para>
</para>
@vector1:
@vector2:
@Returns:
<!-- ##### FUNCTION gimp_vector2_length ##### -->
<para>
</para>
@vector:
@Returns:
<!-- ##### FUNCTION gimp_vector2_length_val ##### -->
<para>
</para>
@vector:
@Returns:
<!-- ##### FUNCTION gimp_vector2_normalize ##### --> <!-- ##### FUNCTION gimp_vector2_normalize ##### -->
<para> <para>
@ -111,7 +84,103 @@ Utilities to set up and manipulate vectors.
@vector: @vector:
<!-- ##### FUNCTION gimp_vector2_length ##### --> <!-- ##### FUNCTION gimp_vector2_normalize_val ##### -->
<para>
</para>
@vector:
@Returns:
<!-- ##### FUNCTION gimp_vector2_mul ##### -->
<para>
</para>
@vector:
@factor:
<!-- ##### FUNCTION gimp_vector2_mul_val ##### -->
<para>
</para>
@vector:
@factor:
@Returns:
<!-- ##### FUNCTION gimp_vector2_sub ##### -->
<para>
</para>
@result:
@vector1:
@vector2:
<!-- ##### FUNCTION gimp_vector2_sub_val ##### -->
<para>
</para>
@vector1:
@vector2:
@Returns:
<!-- ##### FUNCTION gimp_vector2_set ##### -->
<para>
</para>
@vector:
@x:
@y:
<!-- ##### FUNCTION gimp_vector2_new_val ##### -->
<para>
</para>
@x:
@y:
@Returns:
<!-- ##### FUNCTION gimp_vector2_add ##### -->
<para>
</para>
@result:
@vector1:
@vector2:
<!-- ##### FUNCTION gimp_vector2_add_val ##### -->
<para>
</para>
@vector1:
@vector2:
@Returns:
<!-- ##### FUNCTION gimp_vector2_neg ##### -->
<para>
</para>
@vector:
<!-- ##### FUNCTION gimp_vector2_neg_val ##### -->
<para> <para>
</para> </para>
@ -129,52 +198,14 @@ Utilities to set up and manipulate vectors.
@alpha: @alpha:
<!-- ##### FUNCTION gimp_vector3_set ##### --> <!-- ##### FUNCTION gimp_vector2_rotate_val ##### -->
<para> <para>
</para> </para>
@vector: @vector:
@x: @alpha:
@y: @Returns:
@z:
<!-- ##### FUNCTION gimp_vector3_add ##### -->
<para>
</para>
@result:
@vector1:
@vector2:
<!-- ##### FUNCTION gimp_vector3_sub ##### -->
<para>
</para>
@result:
@vector1:
@vector2:
<!-- ##### FUNCTION gimp_vector3_neg ##### -->
<para>
</para>
@vector:
<!-- ##### FUNCTION gimp_vector3_mul ##### -->
<para>
</para>
@vector:
@factor:
<!-- ##### FUNCTION gimp_vector3_inner_product ##### --> <!-- ##### FUNCTION gimp_vector3_inner_product ##### -->
@ -187,6 +218,16 @@ Utilities to set up and manipulate vectors.
@Returns: @Returns:
<!-- ##### FUNCTION gimp_vector3_inner_product_val ##### -->
<para>
</para>
@vector1:
@vector2:
@Returns:
<!-- ##### FUNCTION gimp_vector3_cross_product ##### --> <!-- ##### FUNCTION gimp_vector3_cross_product ##### -->
<para> <para>
@ -197,6 +238,34 @@ Utilities to set up and manipulate vectors.
@Returns: @Returns:
<!-- ##### FUNCTION gimp_vector3_cross_product_val ##### -->
<para>
</para>
@vector1:
@vector2:
@Returns:
<!-- ##### FUNCTION gimp_vector3_length ##### -->
<para>
</para>
@vector:
@Returns:
<!-- ##### FUNCTION gimp_vector3_length_val ##### -->
<para>
</para>
@vector:
@Returns:
<!-- ##### FUNCTION gimp_vector3_normalize ##### --> <!-- ##### FUNCTION gimp_vector3_normalize ##### -->
<para> <para>
@ -205,7 +274,105 @@ Utilities to set up and manipulate vectors.
@vector: @vector:
<!-- ##### FUNCTION gimp_vector3_length ##### --> <!-- ##### FUNCTION gimp_vector3_normalize_val ##### -->
<para>
</para>
@vector:
@Returns:
<!-- ##### FUNCTION gimp_vector3_mul ##### -->
<para>
</para>
@vector:
@factor:
<!-- ##### FUNCTION gimp_vector3_mul_val ##### -->
<para>
</para>
@vector:
@factor:
@Returns:
<!-- ##### FUNCTION gimp_vector3_sub ##### -->
<para>
</para>
@result:
@vector1:
@vector2:
<!-- ##### FUNCTION gimp_vector3_sub_val ##### -->
<para>
</para>
@vector1:
@vector2:
@Returns:
<!-- ##### FUNCTION gimp_vector3_set ##### -->
<para>
</para>
@vector:
@x:
@y:
@z:
<!-- ##### FUNCTION gimp_vector3_new ##### -->
<para>
</para>
@x:
@y:
@z:
@Returns:
<!-- ##### FUNCTION gimp_vector3_add ##### -->
<para>
</para>
@result:
@vector1:
@vector2:
<!-- ##### FUNCTION gimp_vector3_add_val ##### -->
<para>
</para>
@vector1:
@vector2:
@Returns:
<!-- ##### FUNCTION gimp_vector3_neg ##### -->
<para>
</para>
@vector:
<!-- ##### FUNCTION gimp_vector3_neg_val ##### -->
<para> <para>
</para> </para>
@ -225,19 +392,16 @@ Utilities to set up and manipulate vectors.
@gamma: @gamma:
<!-- ##### FUNCTION gimp_vector_3d_to_2d ##### --> <!-- ##### FUNCTION gimp_vector3_rotate_val ##### -->
<para> <para>
</para> </para>
@sx: @vector:
@sy: @alpha:
@w: @beta:
@h: @gamma:
@x: @Returns:
@y:
@vp:
@p:
<!-- ##### FUNCTION gimp_vector_2d_to_3d ##### --> <!-- ##### FUNCTION gimp_vector_2d_to_3d ##### -->
@ -255,3 +419,34 @@ Utilities to set up and manipulate vectors.
@p: @p:
<!-- ##### FUNCTION gimp_vector_2d_to_3d_val ##### -->
<para>
</para>
@sx:
@sy:
@w:
@h:
@x:
@y:
@vp:
@p:
@Returns:
<!-- ##### FUNCTION gimp_vector_3d_to_2d ##### -->
<para>
</para>
@sx:
@sy:
@w:
@h:
@x:
@y:
@vp:
@p:

View File

@ -0,0 +1,7 @@
Makefile
Makefile.in
libgimpwidgets.html
libgimpwidgets-decl-list.txt
libgimpwidgets-unused.txt
html
sgml

View File

@ -0,0 +1,91 @@
## Process this file with automake to produce Makefile.in
# The name of the module.
DOC_MODULE=libgimpwidgets
# The top-level SGML file.
DOC_MAIN_SGML_FILE=libgimpwidgets-docs.sgml
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR=$(top_srcdir)/libgimpwidgets
CFLAGS=`gimptool-1.4 --cflags`
LDFLAGS=`gimptool-1.4 --libs`
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
libgimpwidgets_docdir = $(HTML_DIR)
EXTRA_DIST = \
$(DOC_MAIN_SGML_FILE) \
$(DOC_MODULE).hierarchy \
$(DOC_MODULE).signals \
$(DOC_MODULE).types \
$(DOC_MODULE)-include.c \
$(DOC_MODULE)-decl.txt \
$(DOC_MODULE)-sections.txt
if ENABLE_GTK_DOC
html/index.html: sgml/libgimpwidgets-doc.bottom
$(MAKE) html
else
html/index.html:
endif
sgml/libgimpwidgets-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
maintainer-clean-local: clean
cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
(installfiles=`echo $(srcdir)/html/*.html`; \
if test "$$installfiles" = '$(srcdir)/html/*.html'; \
then echo '-- Nothing to install' ; \
else \
for i in $$installfiles; do \
echo '-- Installing '$$i ; \
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
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
mkdir $(distdir)/tmpl
-cp $(srcdir)/html/*.html $(srcdir)/html/index.sgml $(distdir)/html
-cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
-cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
.PHONY : html sgml templates scan

View File

@ -0,0 +1,893 @@
<MACRO>
<NAME>GIMP_TYPE_CHAIN_BUTTON</NAME>
#define GIMP_TYPE_CHAIN_BUTTON (gimp_chain_button_get_type ())
</MACRO>
<MACRO>
<NAME>GIMP_CHAIN_BUTTON</NAME>
#define GIMP_CHAIN_BUTTON(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CHAIN_BUTTON, GimpChainButton))
</MACRO>
<MACRO>
<NAME>GIMP_CHAIN_BUTTON_CLASS</NAME>
#define GIMP_CHAIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CHAIN_BUTTON, GimpChainButtonClass))
</MACRO>
<MACRO>
<NAME>GIMP_IS_CHAIN_BUTTON</NAME>
#define GIMP_IS_CHAIN_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CHAIN_BUTTON))
</MACRO>
<MACRO>
<NAME>GIMP_IS_CHAIN_BUTTON_CLASS</NAME>
#define GIMP_IS_CHAIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CHAIN_BUTTON))
</MACRO>
<STRUCT>
<NAME>GimpChainButton</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpChainButtonClass</NAME>
</STRUCT>
<ENUM>
<NAME>GimpChainPosition</NAME>
typedef enum
{
GIMP_CHAIN_TOP,
GIMP_CHAIN_LEFT,
GIMP_CHAIN_BOTTOM,
GIMP_CHAIN_RIGHT
} GimpChainPosition;
</ENUM>
<STRUCT>
<NAME>GimpChainButton</NAME>
struct GimpChainButton
{
GtkTable table;
GimpChainPosition position;
GtkWidget *button;
GtkWidget *line1;
GtkWidget *line2;
GtkWidget *pixmap;
GdkPixmap *broken;
GdkBitmap *broken_mask;
GdkPixmap *chain;
GdkBitmap *chain_mask;
gboolean active;
};
</STRUCT>
<FUNCTION>
<NAME>gimp_chain_button_get_type</NAME>
<RETURNS>GtkType </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_chain_button_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
GimpChainPosition position
</FUNCTION>
<FUNCTION>
<NAME>gimp_chain_button_set_active</NAME>
<RETURNS>void </RETURNS>
GimpChainButton *gcb,gboolean is_active
</FUNCTION>
<FUNCTION>
<NAME>gimp_chain_button_get_active</NAME>
<RETURNS>gboolean </RETURNS>
GimpChainButton *gcb
</FUNCTION>
<MACRO>
<NAME>GIMP_TYPE_COLOR_AREA</NAME>
#define GIMP_TYPE_COLOR_AREA (gimp_color_area_get_type ())
</MACRO>
<MACRO>
<NAME>GIMP_COLOR_AREA</NAME>
#define GIMP_COLOR_AREA(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_COLOR_AREA, GimpColorArea))
</MACRO>
<MACRO>
<NAME>GIMP_COLOR_AREA_CLASS</NAME>
#define GIMP_COLOR_AREA_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_COLOR_AREA, GimpColorAreaClass))
</MACRO>
<MACRO>
<NAME>GIMP_IS_COLOR_AREA</NAME>
#define GIMP_IS_COLOR_AREA(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_COLOR_AREA))
</MACRO>
<MACRO>
<NAME>GIMP_IS_COLOR_AREA_CLASS</NAME>
#define GIMP_IS_COLOR_AREA_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_COLOR_AREA))
</MACRO>
<ENUM>
<NAME>GimpColorAreaType</NAME>
typedef enum
{
GIMP_COLOR_AREA_FLAT = 0,
GIMP_COLOR_AREA_SMALL_CHECKS,
GIMP_COLOR_AREA_LARGE_CHECKS
} GimpColorAreaType;
</ENUM>
<STRUCT>
<NAME>GimpColorAreaClass</NAME>
</STRUCT>
<FUNCTION>
<NAME>gimp_color_area_get_type</NAME>
<RETURNS>GtkType </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_area_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
const GimpRGB *color,GimpColorAreaType type,GdkModifierType drag_mask
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_area_set_color</NAME>
<RETURNS>void </RETURNS>
GimpColorArea *gca,const GimpRGB *color
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_area_get_color</NAME>
<RETURNS>void </RETURNS>
GimpColorArea *gca,GimpRGB *color
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_area_has_alpha</NAME>
<RETURNS>gboolean </RETURNS>
GimpColorArea *gca
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_area_set_type</NAME>
<RETURNS>void </RETURNS>
GimpColorArea *gca,GimpColorAreaType type
</FUNCTION>
<MACRO>
<NAME>GIMP_TYPE_COLOR_BUTTON</NAME>
#define GIMP_TYPE_COLOR_BUTTON (gimp_color_button_get_type ())
</MACRO>
<MACRO>
<NAME>GIMP_COLOR_BUTTON</NAME>
#define GIMP_COLOR_BUTTON(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_COLOR_BUTTON, GimpColorButton))
</MACRO>
<MACRO>
<NAME>GIMP_COLOR_BUTTON_CLASS</NAME>
#define GIMP_COLOR_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_COLOR_BUTTON, GimpColorButtonClass))
</MACRO>
<MACRO>
<NAME>GIMP_IS_COLOR_BUTTON</NAME>
#define GIMP_IS_COLOR_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_COLOR_BUTTON))
</MACRO>
<MACRO>
<NAME>GIMP_IS_COLOR_BUTTON_CLASS</NAME>
#define GIMP_IS_COLOR_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_COLOR_BUTTON))
</MACRO>
<STRUCT>
<NAME>GimpColorButtonClass</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpColorButton</NAME>
struct GimpColorButton
{
GtkButton button;
gchar *title;
GtkWidget *color_area;
GtkWidget *dialog;
GtkItemFactory *item_factory;
};
</STRUCT>
<FUNCTION>
<NAME>gimp_color_button_get_type</NAME>
<RETURNS>GtkType </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_button_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,gint width,gint height,const GimpRGB *color,GimpColorAreaType type
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_button_set_color</NAME>
<RETURNS>void </RETURNS>
GimpColorButton *gcb,const GimpRGB *color
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_button_get_color</NAME>
<RETURNS>void </RETURNS>
GimpColorButton *gcb,GimpRGB *color
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_button_has_alpha</NAME>
<RETURNS>gboolean </RETURNS>
GimpColorButton *gcb
</FUNCTION>
<FUNCTION>
<NAME>gimp_color_button_set_type</NAME>
<RETURNS>void </RETURNS>
GimpColorButton *gcb,GimpColorAreaType alpha
</FUNCTION>
<FUNCTION>
<NAME>gimp_dialog_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,const gchar *wmclass_name,GimpHelpFunc help_func,const gchar *help_data,GtkWindowPosition position,gint allow_shrink,gint allow_grow,gint auto_shrink,...
</FUNCTION>
<FUNCTION>
<NAME>gimp_dialog_newv</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,const gchar *wmclass_name,GimpHelpFunc help_func,const gchar *help_data,GtkWindowPosition position,gint allow_shrink,gint allow_grow,gint auto_shrink,va_list args
</FUNCTION>
<FUNCTION>
<NAME>gimp_dialog_set_icon</NAME>
<RETURNS>void </RETURNS>
GtkWindow *dialog
</FUNCTION>
<FUNCTION>
<NAME>gimp_dialog_create_action_area</NAME>
<RETURNS>void </RETURNS>
GtkDialog *dialog,...
</FUNCTION>
<FUNCTION>
<NAME>gimp_dialog_create_action_areav</NAME>
<RETURNS>void </RETURNS>
GtkDialog *dialog,va_list args
</FUNCTION>
<MACRO>
<NAME>GIMP_TYPE_FILE_SELECTION</NAME>
#define GIMP_TYPE_FILE_SELECTION (gimp_file_selection_get_type ())
</MACRO>
<MACRO>
<NAME>GIMP_FILE_SELECTION</NAME>
#define GIMP_FILE_SELECTION(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_FILE_SELECTION, GimpFileSelection))
</MACRO>
<MACRO>
<NAME>GIMP_FILE_SELECTION_CLASS</NAME>
#define GIMP_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_FILE_SELECTION, GimpFileSelectionClass))
</MACRO>
<MACRO>
<NAME>GIMP_IS_FILE_SELECTION</NAME>
#define GIMP_IS_FILE_SELECTION(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_FILE_SELECTION))
</MACRO>
<MACRO>
<NAME>GIMP_IS_FILE_SELECTION_CLASS</NAME>
#define GIMP_IS_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_FILE_SELECTION))
</MACRO>
<STRUCT>
<NAME>GimpFileSelection</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpFileSelectionClass</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpFileSelection</NAME>
struct GimpFileSelection
{
GtkHBox hbox;
GtkWidget *file_exists;
GtkWidget *entry;
GtkWidget *browse_button;
GtkWidget *file_selection;
GdkPixmap *yes_pixmap;
GdkBitmap *yes_mask;
GdkPixmap *no_pixmap;
GdkBitmap *no_mask;
gchar *title;
gboolean dir_only;
gboolean check_valid;
};
</STRUCT>
<FUNCTION>
<NAME>gimp_file_selection_get_type</NAME>
<RETURNS>GtkType </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_file_selection_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,const gchar *filename,gboolean dir_only,gboolean check_valid
</FUNCTION>
<FUNCTION>
<NAME>gimp_file_selection_get_filename</NAME>
<RETURNS>gchar *</RETURNS>
GimpFileSelection *gfs
</FUNCTION>
<FUNCTION>
<NAME>gimp_file_selection_set_filename</NAME>
<RETURNS>void </RETURNS>
GimpFileSelection *gfs,const gchar *filename
</FUNCTION>
<FUNCTION>
<NAME>gimp_help_init</NAME>
<RETURNS>void </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_help_free</NAME>
<RETURNS>void </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_help_enable_tooltips</NAME>
<RETURNS>void </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_help_disable_tooltips</NAME>
<RETURNS>void </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_standard_help_func</NAME>
<RETURNS>void </RETURNS>
const gchar *help_data
</FUNCTION>
<FUNCTION>
<NAME>gimp_help_connect_help_accel</NAME>
<RETURNS>void </RETURNS>
GtkWidget *widget,GimpHelpFunc help_func,const gchar *help_data
</FUNCTION>
<FUNCTION>
<NAME>gimp_help_set_help_data</NAME>
<RETURNS>void </RETURNS>
GtkWidget *widget,const gchar *tooltip,const gchar *help_data
</FUNCTION>
<FUNCTION>
<NAME>gimp_context_help</NAME>
<RETURNS>void </RETURNS>
void
</FUNCTION>
<MACRO>
<NAME>GIMP_TYPE_PATH_EDITOR</NAME>
#define GIMP_TYPE_PATH_EDITOR (gimp_path_editor_get_type ())
</MACRO>
<MACRO>
<NAME>GIMP_PATH_EDITOR</NAME>
#define GIMP_PATH_EDITOR(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PATH_EDITOR, GimpPathEditor))
</MACRO>
<MACRO>
<NAME>GIMP_PATH_EDITOR_CLASS</NAME>
#define GIMP_PATH_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PATH_EDITOR, GimpPathEditorClass))
</MACRO>
<MACRO>
<NAME>GIMP_IS_PATH_EDITOR</NAME>
#define GIMP_IS_PATH_EDITOR(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_PATH_EDITOR))
</MACRO>
<MACRO>
<NAME>GIMP_IS_PATH_EDITOR_CLASS</NAME>
#define GIMP_IS_PATH_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PATH_EDITOR))
</MACRO>
<STRUCT>
<NAME>GimpPathEditorClass</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpPathEditor</NAME>
struct GimpPathEditor
{
GtkVBox vbox;
GtkWidget *upper_hbox;
GtkWidget *new_button;
GtkWidget *up_button;
GtkWidget *down_button;
GtkWidget *delete_button;
GtkWidget *file_selection;
GtkWidget *dir_list;
GtkWidget *selected_item;
gint number_of_items;
};
</STRUCT>
<FUNCTION>
<NAME>gimp_path_editor_get_type</NAME>
<RETURNS>GtkType </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_path_editor_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *filesel_title,const gchar *path
</FUNCTION>
<FUNCTION>
<NAME>gimp_path_editor_get_path</NAME>
<RETURNS>gchar *</RETURNS>
GimpPathEditor *gpe
</FUNCTION>
<MACRO>
<NAME>GIMP_TYPE_PIXMAP</NAME>
#define GIMP_TYPE_PIXMAP (gimp_pixmap_get_type ())
</MACRO>
<MACRO>
<NAME>GIMP_PIXMAP</NAME>
#define GIMP_PIXMAP(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PIXMAP, GimpPixmap))
</MACRO>
<MACRO>
<NAME>GIMP_PIXMAP_CLASS</NAME>
#define GIMP_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PIXMAP, GimpPixmapClass))
</MACRO>
<MACRO>
<NAME>GIMP_IS_PIXMAP</NAME>
#define GIMP_IS_PIXMAP(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_PIXMAP))
</MACRO>
<MACRO>
<NAME>GIMP_IS_PIXMAP_CLASS</NAME>
#define GIMP_IS_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PIXMAP))
</MACRO>
<STRUCT>
<NAME>GimpPixmap</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpPixmapClass</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpPixmap</NAME>
struct GimpPixmap
{
GtkPixmap pixmap;
gchar **xpm_data;
};
</STRUCT>
<FUNCTION>
<NAME>gimp_pixmap_get_type</NAME>
<RETURNS>GtkType </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_pixmap_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
gchar **xpm_data
</FUNCTION>
<FUNCTION>
<NAME>gimp_pixmap_set</NAME>
<RETURNS>void </RETURNS>
GimpPixmap *pixmap,gchar **xpm_data
</FUNCTION>
<USER_FUNCTION>
<NAME>GimpQueryStringCallback</NAME>
<RETURNS>void </RETURNS>
GtkWidget *query_box,
gchar *string,
gpointer data
</USER_FUNCTION>
<USER_FUNCTION>
<NAME>GimpQueryIntCallback</NAME>
<RETURNS>void </RETURNS>
GtkWidget *query_box,
gint value,
gpointer data
</USER_FUNCTION>
<USER_FUNCTION>
<NAME>GimpQueryDoubleCallback</NAME>
<RETURNS>void </RETURNS>
GtkWidget *query_box,
gdouble value,
gpointer data
</USER_FUNCTION>
<USER_FUNCTION>
<NAME>GimpQuerySizeCallback</NAME>
<RETURNS>void </RETURNS>
GtkWidget *query_box,
gdouble size,
GimpUnit unit,
gpointer data
</USER_FUNCTION>
<USER_FUNCTION>
<NAME>GimpQueryBooleanCallback</NAME>
<RETURNS>void </RETURNS>
GtkWidget *query_box,
gboolean value,
gpointer data
</USER_FUNCTION>
<FUNCTION>
<NAME>gimp_query_string_box</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,GimpHelpFunc help_func,const gchar *help_data,const gchar *message,const gchar *initial,GtkObject *object,const gchar *signal,GimpQueryStringCallback callback,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_query_int_box</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,GimpHelpFunc help_func,const gchar *help_data,const gchar *message,gint initial,gint lower,gint upper,GtkObject *object,const gchar *signal,GimpQueryIntCallback callback,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_query_double_box</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,GimpHelpFunc help_func,const gchar *help_data,const gchar *message,gdouble initial,gdouble lower,gdouble upper,gint digits,GtkObject *object,const gchar *signal,GimpQueryDoubleCallback callback,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_query_size_box</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,GimpHelpFunc help_func,const gchar *help_data,const gchar *message,gdouble initial,gdouble lower,gdouble upper,gint digits,GimpUnit unit,gdouble resolution,gboolean dot_for_dot,GtkObject *object,const gchar *signal,GimpQuerySizeCallback callback,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_query_boolean_box</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *title,GimpHelpFunc help_func,const gchar *help_data,gboolean eek,const gchar *message,const gchar *true_button,const gchar *false_button,GtkObject *object,const gchar *signal,GimpQueryBooleanCallback callback,gpointer data
</FUNCTION>
<MACRO>
<NAME>GIMP_TYPE_SIZE_ENTRY</NAME>
#define GIMP_TYPE_SIZE_ENTRY (gimp_size_entry_get_type ())
</MACRO>
<MACRO>
<NAME>GIMP_SIZE_ENTRY</NAME>
#define GIMP_SIZE_ENTRY(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntry))
</MACRO>
<MACRO>
<NAME>GIMP_SIZE_ENTRY_CLASS</NAME>
#define GIMP_SIZE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntryClass))
</MACRO>
<MACRO>
<NAME>GIMP_IS_SIZE_ENTRY</NAME>
#define GIMP_IS_SIZE_ENTRY(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_SIZE_ENTRY))
</MACRO>
<MACRO>
<NAME>GIMP_IS_SIZE_ENTRY_CLASS</NAME>
#define GIMP_IS_SIZE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_SIZE_ENTRY))
</MACRO>
<STRUCT>
<NAME>GimpSizeEntryClass</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpSizeEntryField</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpSizeEntry</NAME>
struct GimpSizeEntry
{
GtkTable table;
GSList *fields;
gint number_of_fields;
GtkWidget *unitmenu;
GimpUnit unit;
gboolean menu_show_pixels;
gboolean menu_show_percent;
gboolean show_refval;
GimpSizeEntryUpdatePolicy update_policy;
};
</STRUCT>
<FUNCTION>
<NAME>gimp_size_entry_get_type</NAME>
<RETURNS>GtkType </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
gint number_of_fields,GimpUnit unit,const gchar *unit_format,gboolean menu_show_pixels,gboolean menu_show_percent,gboolean show_refval,gint spinbutton_usize,GimpSizeEntryUpdatePolicy update_policy
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_add_field</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,GtkSpinButton *value_spinbutton,GtkSpinButton *refval_spinbutton
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_attach_label</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,const gchar *text,gint row,gint column,gfloat alignment
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_set_resolution</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,gint field,gdouble resolution,gboolean keep_size
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_set_size</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_set_value_boundaries</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_get_value</NAME>
<RETURNS>gdouble </RETURNS>
GimpSizeEntry *gse,gint field
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_set_value</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,gint field,gdouble value
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_set_refval_boundaries</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_set_refval_digits</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,gint field,gint digits
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_get_refval</NAME>
<RETURNS>gdouble </RETURNS>
GimpSizeEntry *gse,gint field
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_set_refval</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,gint field,gdouble refval
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_get_unit</NAME>
<RETURNS>GimpUnit </RETURNS>
GimpSizeEntry *gse
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_set_unit</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse,GimpUnit unit
</FUNCTION>
<FUNCTION>
<NAME>gimp_size_entry_grab_focus</NAME>
<RETURNS>void </RETURNS>
GimpSizeEntry *gse
</FUNCTION>
<MACRO>
<NAME>GIMP_TYPE_UNIT_MENU</NAME>
#define GIMP_TYPE_UNIT_MENU (gimp_unit_menu_get_type ())
</MACRO>
<MACRO>
<NAME>GIMP_UNIT_MENU</NAME>
#define GIMP_UNIT_MENU(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_UNIT_MENU, GimpUnitMenu))
</MACRO>
<MACRO>
<NAME>GIMP_UNIT_MENU_CLASS</NAME>
#define GIMP_UNIT_MENU_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_UNIT_MENU, GimpUnitMenuClass))
</MACRO>
<MACRO>
<NAME>GIMP_IS_UNIT_MENU</NAME>
#define GIMP_IS_UNIT_MENU(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_UNIT_MENU))
</MACRO>
<MACRO>
<NAME>GIMP_IS_UNIT_MENU_CLASS</NAME>
#define GIMP_IS_UNIT_MENU_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_UNIT_MENU))
</MACRO>
<STRUCT>
<NAME>GimpUnitMenuClass</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpUnitMenu</NAME>
struct GimpUnitMenu
{
GtkOptionMenu optionmenu;
/* public (read only) */
gchar *format;
GimpUnit unit;
gboolean show_pixels;
gboolean show_percent;
/* private */
GtkWidget *selection;
GtkWidget *clist;
};
</STRUCT>
<FUNCTION>
<NAME>gimp_unit_menu_get_type</NAME>
<RETURNS>GtkType </RETURNS>
void
</FUNCTION>
<FUNCTION>
<NAME>gimp_unit_menu_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
const gchar *format,GimpUnit unit,gboolean show_pixels,gboolean show_percent,gboolean show_custom
</FUNCTION>
<FUNCTION>
<NAME>gimp_unit_menu_set_unit</NAME>
<RETURNS>void </RETURNS>
GimpUnitMenu *gum,GimpUnit unit
</FUNCTION>
<FUNCTION>
<NAME>gimp_unit_menu_get_unit</NAME>
<RETURNS>GimpUnit </RETURNS>
GimpUnitMenu *gum
</FUNCTION>
<FUNCTION>
<NAME>gimp_option_menu_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
gboolean menu_only,...
</FUNCTION>
<FUNCTION>
<NAME>gimp_option_menu_new2</NAME>
<RETURNS>GtkWidget *</RETURNS>
gboolean menu_only,GtkSignalFunc menu_item_callback,gpointer data,gpointer initial,...
</FUNCTION>
<FUNCTION>
<NAME>gimp_option_menu_set_history</NAME>
<RETURNS>void </RETURNS>
GtkOptionMenu *option_menu,gpointer user_data
</FUNCTION>
<FUNCTION>
<NAME>gimp_radio_group_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
gboolean in_frame,const gchar *frame_title,...
</FUNCTION>
<FUNCTION>
<NAME>gimp_radio_group_new2</NAME>
<RETURNS>GtkWidget *</RETURNS>
gboolean in_frame,const gchar *frame_title,GtkSignalFunc radio_button_callback,gpointer data,gpointer initial,...
</FUNCTION>
<FUNCTION>
<NAME>gimp_spin_button_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
GtkObject **adjustment,gfloat value,gfloat lower,gfloat upper,gfloat step_increment,gfloat page_increment,gfloat page_size,gfloat climb_rate,guint digits
</FUNCTION>
<MACRO>
<NAME>GIMP_SCALE_ENTRY_LABEL</NAME>
#define GIMP_SCALE_ENTRY_LABEL(adj) \
GTK_LABEL (gtk_object_get_data (GTK_OBJECT(adj), "label"))
</MACRO>
<MACRO>
<NAME>GIMP_SCALE_ENTRY_SCALE</NAME>
#define GIMP_SCALE_ENTRY_SCALE(adj) \
GTK_HSCALE (gtk_object_get_data (GTK_OBJECT(adj), "scale"))
</MACRO>
<MACRO>
<NAME>GIMP_SCALE_ENTRY_SCALE_ADJ</NAME>
#define GIMP_SCALE_ENTRY_SCALE_ADJ(adj) \
gtk_range_get_adjustment \
(GTK_RANGE (gtk_object_get_data (GTK_OBJECT (adj), "scale")))
</MACRO>
<MACRO>
<NAME>GIMP_SCALE_ENTRY_SPINBUTTON</NAME>
#define GIMP_SCALE_ENTRY_SPINBUTTON(adj) \
GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (adj), "spinbutton"))
</MACRO>
<MACRO>
<NAME>GIMP_SCALE_ENTRY_SPINBUTTON_ADJ</NAME>
#define GIMP_SCALE_ENTRY_SPINBUTTON_ADJ(adj) \
gtk_spin_button_get_adjustment \
(GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (adj), "spinbutton")))
</MACRO>
<FUNCTION>
<NAME>gimp_scale_entry_new</NAME>
<RETURNS>GtkObject *</RETURNS>
GtkTable *table,gint column,gint row,const gchar *text,gint scale_usize,gint spinbutton_usize,gfloat value,gfloat lower,gfloat upper,gfloat step_increment,gfloat page_increment,guint digits,gboolean constrain,gfloat unconstrained_lower,gfloat unconstrained_upper,const gchar *tooltip,const gchar *help_data
</FUNCTION>
<MACRO>
<NAME>GIMP_RANDOM_SEED_SPINBUTTON</NAME>
#define GIMP_RANDOM_SEED_SPINBUTTON(hbox) \
GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT( hbox), "spinbutton"))
</MACRO>
<MACRO>
<NAME>GIMP_RANDOM_SEED_SPINBUTTON_ADJ</NAME>
#define GIMP_RANDOM_SEED_SPINBUTTON_ADJ(hbox) \
gtk_spin_button_get_adjustment \
(GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (hbox), "spinbutton")))
</MACRO>
<MACRO>
<NAME>GIMP_RANDOM_SEED_TOGGLEBUTTON</NAME>
#define GIMP_RANDOM_SEED_TOGGLEBUTTON(hbox) \
GTK_TOGGLE_BUTTON (gtk_object_get_data (GTK_OBJECT (hbox), \
"togglebutton"))
</MACRO>
<FUNCTION>
<NAME>gimp_random_seed_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
gint *seed,gint *use_time,gint time_true,gint time_false
</FUNCTION>
<MACRO>
<NAME>GIMP_COORDINATES_CHAINBUTTON</NAME>
#define GIMP_COORDINATES_CHAINBUTTON(sizeentry) \
GIMP_CHAIN_BUTTON (gtk_object_get_data (GTK_OBJECT (sizeentry), \
"chainbutton"))
</MACRO>
<FUNCTION>
<NAME>gimp_coordinates_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
GimpUnit unit,const gchar *unit_format,gboolean menu_show_pixels,gboolean menu_show_percent,gint spinbutton_usize,GimpSizeEntryUpdatePolicy update_policy,gboolean chainbutton_active,gboolean chain_constrains_ratio,const gchar *xlabel,gdouble x,gdouble xres,gdouble lower_boundary_x,gdouble upper_boundary_x,gdouble xsize_0,gdouble xsize_100,const gchar *ylabel,gdouble y,gdouble yres,gdouble lower_boundary_y,gdouble upper_boundary_y,gdouble ysize_0,gdouble ysize_100
</FUNCTION>
<MACRO>
<NAME>GIMP_MEM_SIZE_ENTRY_SPINBUTTON</NAME>
#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON(memsize) \
GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (memsize), \
"spinbutton"))
</MACRO>
<MACRO>
<NAME>GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ</NAME>
#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ(memsize) \
gtk_spin_button_get_adjustment \
(GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (memsize), \
"spinbutton")))
</MACRO>
<MACRO>
<NAME>GIMP_MEM_SIZE_ENTRY_OPTIONMENU</NAME>
#define GIMP_MEM_SIZE_ENTRY_OPTIONMENU(memsize) \
GTK_OPTION_MENU (gtk_object_get_data (GTK_OBJECT (memsize), \
"optionmenu"))
</MACRO>
<FUNCTION>
<NAME>gimp_mem_size_entry_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
GtkAdjustment *adjustment
</FUNCTION>
<FUNCTION>
<NAME>gimp_pixmap_button_new</NAME>
<RETURNS>GtkWidget *</RETURNS>
gchar **xpm_data,const gchar *text
</FUNCTION>
<FUNCTION>
<NAME>gimp_toggle_button_sensitive_update</NAME>
<RETURNS>void </RETURNS>
GtkToggleButton *toggle_button
</FUNCTION>
<FUNCTION>
<NAME>gimp_toggle_button_update</NAME>
<RETURNS>void </RETURNS>
GtkWidget *widget,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_radio_button_update</NAME>
<RETURNS>void </RETURNS>
GtkWidget *widget,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_menu_item_update</NAME>
<RETURNS>void </RETURNS>
GtkWidget *widget,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_int_adjustment_update</NAME>
<RETURNS>void </RETURNS>
GtkAdjustment *adjustment,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_uint_adjustment_update</NAME>
<RETURNS>void </RETURNS>
GtkAdjustment *adjustment,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_float_adjustment_update</NAME>
<RETURNS>void </RETURNS>
GtkAdjustment *adjustment,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_double_adjustment_update</NAME>
<RETURNS>void </RETURNS>
GtkAdjustment *adjustment,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_unit_menu_update</NAME>
<RETURNS>void </RETURNS>
GtkWidget *widget,gpointer data
</FUNCTION>
<FUNCTION>
<NAME>gimp_table_attach_aligned</NAME>
<RETURNS>void </RETURNS>
GtkTable *table,gint column,gint row,const gchar *label_text,gfloat xalign,gfloat yalign,GtkWidget *widget,gint colspan,gboolean left_align
</FUNCTION>
<ENUM>
<NAME>GimpSizeEntryUpdatePolicy</NAME>
typedef enum
{
GIMP_SIZE_ENTRY_UPDATE_NONE = 0,
GIMP_SIZE_ENTRY_UPDATE_SIZE = 1,
GIMP_SIZE_ENTRY_UPDATE_RESOLUTION = 2
} GimpSizeEntryUpdatePolicy;
</ENUM>
<STRUCT>
<NAME>GimpColorArea</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpColorButton</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpPathEditor</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpSizeEntry</NAME>
</STRUCT>
<STRUCT>
<NAME>GimpUnitMenu</NAME>
</STRUCT>
<USER_FUNCTION>
<NAME>GimpHelpFunc</NAME>
<RETURNS>void </RETURNS>
const gchar *help_data
</USER_FUNCTION>

View File

@ -0,0 +1,35 @@
<!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
<!entity libgimpwidgets-gimpwidgetstypes SYSTEM "sgml/gimpwidgetstypes.sgml">
<!entity GimpChainButton SYSTEM "sgml/gimpchainbutton.sgml">
<!entity GimpColorButton SYSTEM "sgml/gimpcolorbutton.sgml">
<!entity GimpFileSelection SYSTEM "sgml/gimpfileselection.sgml">
<!entity GimpPathEditor SYSTEM "sgml/gimppatheditor.sgml">
<!entity GimpPixmap SYSTEM "sgml/gimppixmap.sgml">
<!entity GimpSizeEntry SYSTEM "sgml/gimpsizeentry.sgml">
<!entity GimpUnitMenu SYSTEM "sgml/gimpunitmenu.sgml">
<!entity libgimpwidgets-gimpdialog SYSTEM "sgml/gimpdialog.sgml">
<!entity libgimpwidgets-gimphelpui SYSTEM "sgml/gimphelpui.sgml">
<!entity libgimpwidgets-gimpquerybox SYSTEM "sgml/gimpquerybox.sgml">
<!entity libgimpwidgets-gimpwidgets SYSTEM "sgml/gimpwidgets.sgml">
]>
<book id="index">
<bookinfo>
<title>GIMP Widgets Library Reference Manual</title>
</bookinfo>
<chapter id="libgimpwidgets">
<title>GIMP Widgets Library</title>
&libgimpwidgets-gimpwidgetstypes;
&GimpChainButton;
&GimpColorButton;
&GimpFileSelection;
&GimpPathEditor;
&GimpPixmap;
&GimpSizeEntry;
&GimpUnitMenu;
&libgimpwidgets-gimpdialog;
&libgimpwidgets-gimphelpui;
&libgimpwidgets-gimpquerybox;
&libgimpwidgets-gimpwidgets;
</chapter>
</book>

View File

@ -0,0 +1,15 @@
/*
* gtk-doc can't build libgimpwidgets-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,
};

View File

@ -0,0 +1,223 @@
<SECTION>
<FILE>gimpchainbutton</FILE>
GimpChainPosition
<TITLE>GimpChainButton</TITLE>
gimp_chain_button_new
gimp_chain_button_set_active
gimp_chain_button_get_active
<SUBSECTION Standard>
GIMP_CHAIN_BUTTON
GIMP_IS_CHAIN_BUTTON
GIMP_TYPE_CHAIN_BUTTON
gimp_chain_button_get_type
GIMP_CHAIN_BUTTON_CLASS
GIMP_IS_CHAIN_BUTTON_CLASS
</SECTION>
<SECTION>
<FILE>gimpcolorarea</FILE>
GimpColorAreaType
<TITLE>GimpColorArea</TITLE>
gimp_color_area_new
gimp_color_area_set_color
gimp_color_area_get_color
gimp_color_area_has_alpha
gimp_color_area_set_type
<SUBSECTION Standard>
GIMP_COLOR_AREA
GIMP_IS_COLOR_AREA
GIMP_TYPE_COLOR_AREA
gimp_color_area_get_type
GIMP_COLOR_AREA_CLASS
GIMP_IS_COLOR_AREA_CLASS
</SECTION>
<SECTION>
<FILE>gimpcolorbutton</FILE>
<TITLE>GimpColorButton</TITLE>
gimp_color_button_new
gimp_color_button_set_color
gimp_color_button_get_color
gimp_color_button_has_alpha
gimp_color_button_set_type
<SUBSECTION Standard>
GIMP_COLOR_BUTTON
GIMP_IS_COLOR_BUTTON
GIMP_TYPE_COLOR_BUTTON
gimp_color_button_get_type
GIMP_COLOR_BUTTON_CLASS
GIMP_IS_COLOR_BUTTON_CLASS
</SECTION>
<SECTION>
<FILE>gimpfileselection</FILE>
<TITLE>GimpFileSelection</TITLE>
gimp_file_selection_new
gimp_file_selection_get_filename
gimp_file_selection_set_filename
<SUBSECTION Standard>
GIMP_FILE_SELECTION
GIMP_IS_FILE_SELECTION
GIMP_TYPE_FILE_SELECTION
gimp_file_selection_get_type
GIMP_FILE_SELECTION_CLASS
GIMP_IS_FILE_SELECTION_CLASS
</SECTION>
<SECTION>
<FILE>gimppatheditor</FILE>
<TITLE>GimpPathEditor</TITLE>
gimp_path_editor_new
gimp_path_editor_get_path
<SUBSECTION Standard>
GIMP_PATH_EDITOR
GIMP_IS_PATH_EDITOR
GIMP_TYPE_PATH_EDITOR
gimp_path_editor_get_type
GIMP_PATH_EDITOR_CLASS
GIMP_IS_PATH_EDITOR_CLASS
</SECTION>
<SECTION>
<FILE>gimppixmap</FILE>
<TITLE>GimpPixmap</TITLE>
gimp_pixmap_new
gimp_pixmap_set
<SUBSECTION Standard>
GIMP_PIXMAP
GIMP_IS_PIXMAP
GIMP_TYPE_PIXMAP
gimp_pixmap_get_type
GIMP_PIXMAP_CLASS
GIMP_IS_PIXMAP_CLASS
</SECTION>
<SECTION>
<FILE>gimpsizeentry</FILE>
GimpSizeEntryField
<TITLE>GimpSizeEntry</TITLE>
gimp_size_entry_new
gimp_size_entry_add_field
gimp_size_entry_attach_label
gimp_size_entry_set_resolution
gimp_size_entry_set_size
gimp_size_entry_set_value_boundaries
gimp_size_entry_get_value
gimp_size_entry_set_value
gimp_size_entry_set_refval_boundaries
gimp_size_entry_set_refval_digits
gimp_size_entry_get_refval
gimp_size_entry_set_refval
gimp_size_entry_get_unit
gimp_size_entry_set_unit
gimp_size_entry_grab_focus
<SUBSECTION Standard>
GIMP_SIZE_ENTRY
GIMP_IS_SIZE_ENTRY
GIMP_TYPE_SIZE_ENTRY
gimp_size_entry_get_type
GIMP_SIZE_ENTRY_CLASS
GIMP_IS_SIZE_ENTRY_CLASS
</SECTION>
<SECTION>
<FILE>gimpunitmenu</FILE>
<TITLE>GimpUnitMenu</TITLE>
gimp_unit_menu_new
gimp_unit_menu_set_unit
gimp_unit_menu_get_unit
<SUBSECTION Standard>
GIMP_UNIT_MENU
GIMP_IS_UNIT_MENU
GIMP_TYPE_UNIT_MENU
gimp_unit_menu_get_type
GIMP_UNIT_MENU_CLASS
GIMP_IS_UNIT_MENU_CLASS
</SECTION>
<SECTION>
<FILE>gimpdialog</FILE>
gimp_dialog_new
gimp_dialog_newv
gimp_dialog_set_icon
gimp_dialog_create_action_area
gimp_dialog_create_action_areav
</SECTION>
<SECTION>
<FILE>gimphelpui</FILE>
gimp_help_init
gimp_help_free
gimp_help_enable_tooltips
gimp_help_disable_tooltips
gimp_standard_help_func
gimp_help_connect_help_accel
gimp_help_set_help_data
gimp_context_help
</SECTION>
<SECTION>
<FILE>gimpquerybox</FILE>
GimpQueryStringCallback
GimpQueryIntCallback
GimpQueryDoubleCallback
GimpQuerySizeCallback
GimpQueryBooleanCallback
gimp_query_string_box
gimp_query_int_box
gimp_query_double_box
gimp_query_size_box
gimp_query_boolean_box
</SECTION>
<SECTION>
<FILE>gimpwidgets</FILE>
gimp_option_menu_new
gimp_option_menu_new2
gimp_option_menu_set_history
gimp_radio_group_new
gimp_radio_group_new2
gimp_spin_button_new
GIMP_SCALE_ENTRY_LABEL
GIMP_SCALE_ENTRY_SCALE
GIMP_SCALE_ENTRY_SCALE_ADJ
GIMP_SCALE_ENTRY_SPINBUTTON
GIMP_SCALE_ENTRY_SPINBUTTON_ADJ
gimp_scale_entry_new
GIMP_RANDOM_SEED_SPINBUTTON
GIMP_RANDOM_SEED_SPINBUTTON_ADJ
GIMP_RANDOM_SEED_TOGGLEBUTTON
gimp_random_seed_new
GIMP_COORDINATES_CHAINBUTTON
gimp_coordinates_new
GIMP_MEM_SIZE_ENTRY_SPINBUTTON
GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ
GIMP_MEM_SIZE_ENTRY_OPTIONMENU
gimp_mem_size_entry_new
gimp_pixmap_button_new
gimp_toggle_button_sensitive_update
gimp_toggle_button_update
gimp_radio_button_update
gimp_menu_item_update
gimp_int_adjustment_update
gimp_uint_adjustment_update
gimp_float_adjustment_update
gimp_double_adjustment_update
gimp_unit_menu_update
gimp_table_attach_aligned
</SECTION>
<SECTION>
<FILE>gimpwidgetstypes</FILE>
GimpSizeEntryUpdatePolicy
GimpChainButton
GimpColorArea
GimpColorButton
GimpFileSelection
GimpPathEditor
GimpPixmap
GimpSizeEntry
GimpUnitMenu
GimpHelpFunc
</SECTION>

View File

@ -0,0 +1,19 @@
GtkObject
GtkWidget
GtkContainer
GtkTable
GimpChainButton
GimpSizeEntry
GtkBin
GtkButton
GimpColorButton
GtkOptionMenu
GimpUnitMenu
GtkBox
GtkHBox
GimpFileSelection
GtkVBox
GimpPathEditor
GtkMisc
GtkPixmap
GimpPixmap

View File

@ -0,0 +1,48 @@
<SIGNAL>
<NAME>GimpChainButton::toggled</NAME>
<RETURNS>void</RETURNS>
GimpChainButton *gimpchainbutton
</SIGNAL>
<SIGNAL>
<NAME>GimpColorButton::color-changed</NAME>
<RETURNS>void</RETURNS>
GimpColorButton *gimpcolorbutton
</SIGNAL>
<SIGNAL>
<NAME>GimpFileSelection::filename-changed</NAME>
<RETURNS>void</RETURNS>
GimpFileSelection *gimpfileselection
</SIGNAL>
<SIGNAL>
<NAME>GimpPathEditor::path-changed</NAME>
<RETURNS>void</RETURNS>
GimpPathEditor *gimppatheditor
</SIGNAL>
<SIGNAL>
<NAME>GimpSizeEntry::value-changed</NAME>
<RETURNS>void</RETURNS>
GimpSizeEntry *gimpsizeentry
</SIGNAL>
<SIGNAL>
<NAME>GimpSizeEntry::refval-changed</NAME>
<RETURNS>void</RETURNS>
GimpSizeEntry *gimpsizeentry
</SIGNAL>
<SIGNAL>
<NAME>GimpSizeEntry::unit-changed</NAME>
<RETURNS>void</RETURNS>
GimpSizeEntry *gimpsizeentry
</SIGNAL>
<SIGNAL>
<NAME>GimpUnitMenu::unit-changed</NAME>
<RETURNS>void</RETURNS>
GimpUnitMenu *gimpunitmenu
</SIGNAL>

View File

@ -0,0 +1,12 @@
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include "libgimpwidgets-include.c"
gimp_chain_button_get_type
gimp_color_button_get_type
gimp_file_selection_get_type
gimp_path_editor_get_type
gimp_pixmap_get_type
gimp_size_entry_get_type
gimp_unit_menu_get_type

View File

@ -0,0 +1 @@
libgimpwidgets-unused.sgml

View File

@ -26,26 +26,15 @@ You may want to use the convenience function gimp_coordinates_new() to set
up two GimpSizeEntries (see #GimpSizeEntry) linked with a #GimpChainButton. up two GimpSizeEntries (see #GimpSizeEntry) linked with a #GimpChainButton.
</para> </para>
<!-- ##### STRUCT GimpChainButton ##### -->
<para>
</para>
<!-- ##### MACRO GIMP_CHAIN_BUTTON ##### -->
<para>
Checks if the passed pointer is a pointer to a #GimpChainButton and
performs the cast if valid.
</para>
@obj: The pointer to cast.
<!-- ##### ENUM GimpChainPosition ##### --> <!-- ##### ENUM GimpChainPosition ##### -->
<para> <para>
</para> </para>
@GIMP_CHAIN_TOP:
@GIMP_CHAIN_LEFT:
@GIMP_CHAIN_BOTTOM:
@GIMP_CHAIN_RIGHT:
<!-- ##### FUNCTION gimp_chain_button_new ##### --> <!-- ##### FUNCTION gimp_chain_button_new ##### -->
<para> <para>

View File

@ -0,0 +1,72 @@
<!-- ##### SECTION Title ##### -->
GimpColorArea
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### ENUM GimpColorAreaType ##### -->
<para>
</para>
@GIMP_COLOR_AREA_FLAT:
@GIMP_COLOR_AREA_SMALL_CHECKS:
@GIMP_COLOR_AREA_LARGE_CHECKS:
<!-- ##### FUNCTION gimp_color_area_new ##### -->
<para>
</para>
@color:
@type:
@drag_mask:
@Returns:
<!-- ##### FUNCTION gimp_color_area_set_color ##### -->
<para>
</para>
@gca:
@color:
<!-- ##### FUNCTION gimp_color_area_get_color ##### -->
<para>
</para>
@gca:
@color:
<!-- ##### FUNCTION gimp_color_area_has_alpha ##### -->
<para>
</para>
@gca:
@Returns:
<!-- ##### FUNCTION gimp_color_area_set_type ##### -->
<para>
</para>
@gca:
@type:

View File

@ -15,30 +15,12 @@ supports Drag and Drop and has a right-click menu that allows to choose
the color from the current FG or BG color. If the user changes the the color from the current FG or BG color. If the user changes the
color, the "color_changed" signal is emitted. color, the "color_changed" signal is emitted.
</para> </para>
<para>
Note that the color is changed in place.
</para>
<!-- ##### SECTION See_Also ##### --> <!-- ##### SECTION See_Also ##### -->
<para> <para>
#libgimp-gimpcolorspace #libgimpcolor-gimpcolorspace
</para> </para>
<!-- ##### STRUCT GimpColorButton ##### -->
<para>
</para>
<!-- ##### MACRO GIMP_COLOR_BUTTON ##### -->
<para>
Checks if the passed pointer is a pointer to a #GimpColorButton and
performs the cast if valid.
</para>
@obj: The pointer to cast.
<!-- ##### FUNCTION gimp_color_button_new ##### --> <!-- ##### FUNCTION gimp_color_button_new ##### -->
<para> <para>
@ -48,29 +30,46 @@ performs the cast if valid.
@width: @width:
@height: @height:
@color: @color:
@bpp: @type:
@Returns: @Returns:
<!-- # Unused Parameters # -->
@alpha:
<!-- ##### FUNCTION gimp_color_button_double_new ##### --> <!-- ##### FUNCTION gimp_color_button_set_color ##### -->
<para>
</para>
@title:
@width:
@height:
@color:
@bpp:
@Returns:
<!-- ##### FUNCTION gimp_color_button_update ##### -->
<para> <para>
</para> </para>
@gcb: @gcb:
@color:
<!-- ##### FUNCTION gimp_color_button_get_color ##### -->
<para>
</para>
@gcb:
@color:
<!-- ##### FUNCTION gimp_color_button_has_alpha ##### -->
<para>
</para>
@gcb:
@Returns:
<!-- ##### FUNCTION gimp_color_button_set_type ##### -->
<para>
</para>
@gcb:
@alpha:
<!-- ##### SIGNAL GimpColorButton::color-changed ##### --> <!-- ##### SIGNAL GimpColorButton::color-changed ##### -->

View File

@ -31,21 +31,6 @@ will be emitted.
#GimpPathEditor #GimpPathEditor
</para> </para>
<!-- ##### STRUCT GimpFileSelection ##### -->
<para>
</para>
<!-- ##### MACRO GIMP_FILE_SELECTION ##### -->
<para>
Checks if the passed pointer is a pointer to a #GimpFileSelection and
performs the cast if valid.
</para>
@obj: The pointer to cast.
<!-- ##### FUNCTION gimp_file_selection_new ##### --> <!-- ##### FUNCTION gimp_file_selection_new ##### -->
<para> <para>

View File

@ -15,36 +15,6 @@ system.
</para> </para>
<!-- ##### USER_FUNCTION GimpHelpFunc ##### -->
<para>
This is the prototype for all functions you pass as @help_func to the
various GIMP dialog constructors like gimp_dialog_new(),
gimp_query_int_box() etc.
</para>
<para>
Note that all help paths are relative to the root of the help system
in the current language. So if your language is "C", a help path of
"filters/foo_bar.html" will expand to
"${gimp_data_dir}/help/C/filters/foo_bar.html".
</para>
<para>
All these functions finally call gimp_help_connect_help_accel() which
does the work of installing the "F1" accelerator.
</para>
<para>
In most cases it will be ok to use gimp_plugin_help_func() which does
nothing but passing the @help_data string to gimp_help(). If your
plug-in needs some more sophisticated help handling you can provide
your own @help_func which has to call gimp_help() to actually display
the help.
</para>
@help_data: A string containing the path to a HTML page.
<!-- ##### FUNCTION gimp_help_init ##### --> <!-- ##### FUNCTION gimp_help_init ##### -->
<para> <para>

View File

@ -30,21 +30,6 @@ the search path, the "path_changed" signal will be emitted.
#G_SEARCHPATH_SEPARATOR #G_SEARCHPATH_SEPARATOR
</para> </para>
<!-- ##### STRUCT GimpPathEditor ##### -->
<para>
</para>
<!-- ##### MACRO GIMP_PATH_EDITOR ##### -->
<para>
Checks if the passed pointer is a pointer to a #GimpPathEditor and
performs the cast if valid.
</para>
@obj: The pointer to cast.
<!-- ##### FUNCTION gimp_path_editor_new ##### --> <!-- ##### FUNCTION gimp_path_editor_new ##### -->
<para> <para>

View File

@ -26,21 +26,6 @@ gimp_pixmap_button_new()
#GtkPixmap #GtkPixmap
</para> </para>
<!-- ##### STRUCT GimpPixmap ##### -->
<para>
</para>
<!-- ##### MACRO GIMP_PIXMAP ##### -->
<para>
Checks if the passed pointer is a pointer to a #GimpPixmap and
performs the cast if valid.
</para>
@obj: The pointer to cast.
<!-- ##### FUNCTION gimp_pixmap_new ##### --> <!-- ##### FUNCTION gimp_pixmap_new ##### -->
<para> <para>

View File

@ -38,28 +38,10 @@ real-world-unit.
<para> <para>
#GimpUnitMenu #GimpUnitMenu
</para> </para>
<!-- ##### STRUCT GimpSizeEntry ##### -->
<para> <para>
gimp_coordinates_new()
</para> </para>
<!-- ##### MACRO GIMP_SIZE_ENTRY ##### -->
<para>
Checks if the passed pointer is a pointer to a #GimpSizeEntry and
performs the cast if valid.
</para>
@obj: The pointer to cast.
<!-- ##### ENUM GimpSizeEntryUpdatePolicy ##### -->
<para>
</para>
<!-- ##### STRUCT GimpSizeEntryField ##### --> <!-- ##### STRUCT GimpSizeEntryField ##### -->
<para> <para>

View File

@ -29,22 +29,10 @@ Whenever the user selects a unit from the menu or the dialog, the
<para> <para>
#GimpSizeEntry #GimpSizeEntry
</para> </para>
<!-- ##### STRUCT GimpUnitMenu ##### -->
<para> <para>
gimp_coordinates_new()
</para> </para>
<!-- ##### MACRO GIMP_UNIT_MENU ##### -->
<para>
Checks if the passed pointer is a pointer to a #GimpUnitMenu and
performs the cast if valid.
</para>
@obj: The pointer to cast.
<!-- ##### FUNCTION gimp_unit_menu_new ##### --> <!-- ##### FUNCTION gimp_unit_menu_new ##### -->
<para> <para>

View File

@ -217,33 +217,6 @@ gtk_object_set_user_data().</entry>
@Returns: @Returns:
<!-- ##### FUNCTION gimp_scale_entry_new ##### -->
<para>
</para>
@table:
@column:
@row:
@text:
@scale_usize:
@spinbutton_usize:
@value:
@lower:
@upper:
@step_increment:
@page_increment:
@digits:
@constrain:
@unconstrained_lower:
@unconstrained_upper:
@tooltip:
@help_data:
@Returns:
<!-- # Unused Parameters # -->
@private_tip:
<!-- ##### MACRO GIMP_SCALE_ENTRY_LABEL ##### --> <!-- ##### MACRO GIMP_SCALE_ENTRY_LABEL ##### -->
<para> <para>
Returns the scale_entry's #GtkLabel. Returns the scale_entry's #GtkLabel.
@ -284,15 +257,28 @@ Returns the #GtkAdjustment of the scale_entry's #GtkSpinButton.
@adj: The #GtkAdjustment returned by gimp_scale_entry_new(). @adj: The #GtkAdjustment returned by gimp_scale_entry_new().
<!-- ##### FUNCTION gimp_random_seed_new ##### --> <!-- ##### FUNCTION gimp_scale_entry_new ##### -->
<para> <para>
</para> </para>
@seed: @table:
@use_time: @column:
@time_true: @row:
@time_false: @text:
@scale_usize:
@spinbutton_usize:
@value:
@lower:
@upper:
@step_increment:
@page_increment:
@digits:
@constrain:
@unconstrained_lower:
@unconstrained_upper:
@tooltip:
@help_data:
@Returns: @Returns:
@ -320,6 +306,26 @@ Returns the random_seed's #GtkToggleButton.
@hbox: The #GtkHBox returned by gimp_random_seed_new(). @hbox: The #GtkHBox returned by gimp_random_seed_new().
<!-- ##### FUNCTION gimp_random_seed_new ##### -->
<para>
</para>
@seed:
@use_time:
@time_true:
@time_false:
@Returns:
<!-- ##### MACRO GIMP_COORDINATES_CHAINBUTTON ##### -->
<para>
Returns the #GimpChainButton which is attached to the #GimpSizeEntry.
</para>
@sizeentry: The #GimpSizeEntry returned by gimp_coordinates_new().
<!-- ##### FUNCTION gimp_coordinates_new ##### --> <!-- ##### FUNCTION gimp_coordinates_new ##### -->
<para> <para>
@ -350,23 +356,6 @@ Returns the random_seed's #GtkToggleButton.
@Returns: @Returns:
<!-- ##### MACRO GIMP_COORDINATES_CHAINBUTTON ##### -->
<para>
Returns the #GimpChainButton which is attached to the #GimpSizeEntry.
</para>
@sizeentry: The #GimpSizeEntry returned by gimp_coordinates_new().
<!-- ##### FUNCTION gimp_mem_size_entry_new ##### -->
<para>
</para>
@adjustment:
@Returns:
<!-- ##### MACRO GIMP_MEM_SIZE_ENTRY_SPINBUTTON ##### --> <!-- ##### MACRO GIMP_MEM_SIZE_ENTRY_SPINBUTTON ##### -->
<para> <para>
@ -391,6 +380,15 @@ Returns the #GimpChainButton which is attached to the #GimpSizeEntry.
@memsize: @memsize:
<!-- ##### FUNCTION gimp_mem_size_entry_new ##### -->
<para>
</para>
@adjustment:
@Returns:
<!-- ##### FUNCTION gimp_pixmap_button_new ##### --> <!-- ##### FUNCTION gimp_pixmap_button_new ##### -->
<para> <para>

View File

@ -0,0 +1,103 @@
<!-- ##### SECTION Title ##### -->
gimpwidgetstypes
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### ENUM GimpSizeEntryUpdatePolicy ##### -->
<para>
</para>
@GIMP_SIZE_ENTRY_UPDATE_NONE:
@GIMP_SIZE_ENTRY_UPDATE_SIZE:
@GIMP_SIZE_ENTRY_UPDATE_RESOLUTION:
<!-- ##### STRUCT GimpChainButton ##### -->
<para>
</para>
<!-- ##### STRUCT GimpColorArea ##### -->
<para>
</para>
<!-- ##### STRUCT GimpColorButton ##### -->
<para>
</para>
<!-- ##### STRUCT GimpFileSelection ##### -->
<para>
</para>
<!-- ##### STRUCT GimpPathEditor ##### -->
<para>
</para>
<!-- ##### STRUCT GimpPixmap ##### -->
<para>
</para>
<!-- ##### STRUCT GimpSizeEntry ##### -->
<para>
</para>
<!-- ##### STRUCT GimpUnitMenu ##### -->
<para>
</para>
<!-- ##### USER_FUNCTION GimpHelpFunc ##### -->
<para>
This is the prototype for all functions you pass as @help_func to the
various GIMP dialog constructors like gimp_dialog_new(),
gimp_query_int_box() etc.
</para>
<para>
Note that all help paths are relative to the root of the help system
in the current language. So if your language is "C", a help path of
"filters/foo_bar.html" will expand to
"${gimp_data_dir}/help/C/filters/foo_bar.html".
</para>
<para>
All these functions finally call gimp_help_connect_help_accel() which
does the work of installing the "F1" accelerator.
</para>
<para>
In most cases it will be ok to use gimp_plugin_help_func() which does
nothing but passing the @help_data string to gimp_help(). If your
plug-in needs some more sophisticated help handling you can provide
your own @help_func which has to call gimp_help() to actually display
the help.
</para>
@help_data: A string containing the path to a HTML page.

View File

@ -173,8 +173,8 @@ gimp_color_area_destroy (GtkObject *object)
/** /**
* gimp_color_area_new: * gimp_color_area_new:
* @color: A pointer to a #GimpRGB struct. * @color: A pointer to a #GimpRGB struct.
* @alpha: If the color_area should show alpha. * @type: The type of color area to create.
* @drag_mask: The event_mask that should trigger drags. * @drag_mask: The event_mask that should trigger drags.
* *
* Creates a new #GimpColorArea widget. * Creates a new #GimpColorArea widget.

View File

@ -254,6 +254,7 @@ gimp_color_button_set_color (GimpColorButton *gcb,
/** /**
* gimp_color_button_get_color: * gimp_color_button_get_color:
* @gcb: Pointer to a #GimpColorButton. * @gcb: Pointer to a #GimpColorButton.
* @color:
* *
**/ **/
void void
@ -271,7 +272,9 @@ gimp_color_button_get_color (GimpColorButton *gcb,
/** /**
* gimp_color_button_has_alpha: * gimp_color_button_has_alpha:
* @gcb: Pointer to a #GimpColorButton. * @gcb: Pointer to a #GimpColorButton.
* *
*
* Returns:
**/ **/
gboolean gboolean
gimp_color_button_has_alpha (GimpColorButton *gcb) gimp_color_button_has_alpha (GimpColorButton *gcb)

View File

@ -71,7 +71,7 @@ GtkWidget * gimp_color_button_new (const gchar *title,
gint width, gint width,
gint height, gint height,
const GimpRGB *color, const GimpRGB *color,
GimpColorAreaType alpha); GimpColorAreaType type);
void gimp_color_button_set_color (GimpColorButton *gcb, void gimp_color_button_set_color (GimpColorButton *gcb,
const GimpRGB *color); const GimpRGB *color);
void gimp_color_button_get_color (GimpColorButton *gcb, void gimp_color_button_get_color (GimpColorButton *gcb,
@ -85,4 +85,4 @@ void gimp_color_button_set_type (GimpColorButton *gcb,
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __COLOR_BUTTON_H__ */ #endif /* __GIMP_COLOR_BUTTON_H__ */

View File

@ -1,12 +1,12 @@
# Makefile for program source directory in GNU NLS utilities package. # Makefile for program source directory in GNU NLS utilities package.
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> # Copyright (C) 1995-1997, 2000, 2001 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
# #
# This file file be copied and used freely without restrictions. It can # This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License # be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality. # but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available. # Please note that the actual code is *not* freely available.
PACKAGE = gimp-libgimp PACKAGE = @PACKAGE@
VERSION = @VERSION@ VERSION = @VERSION@
SHELL = /bin/sh SHELL = /bin/sh
@ -14,26 +14,26 @@ SHELL = /bin/sh
srcdir = @srcdir@ srcdir = @srcdir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
top_builddir = ..
VPATH = @srcdir@ VPATH = @srcdir@
prefix = @prefix@ prefix = @prefix@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
datadir = $(prefix)/@DATADIRNAME@ datadir = @datadir@
localedir = $(datadir)/locale localedir = $(datadir)/locale
gnulocaledir = $(prefix)/share/locale gettextsrcdir = $(datadir)/gettext/po
gettextsrcdir = $(prefix)/share/gettext/po subdir = po
subdir = po-libgimp
INSTALL = @INSTALL@ INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@ INSTALL_DATA = @INSTALL_DATA@
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
CC = @CC@ CC = @CC@
GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@
GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
XGETTEXT = PATH=../src:$$PATH @XGETTEXT@ XGETTEXT = @XGETTEXT@
MSGMERGE = PATH=../src:$$PATH msgmerge MSGMERGE = msgmerge
DEFS = @DEFS@ DEFS = @DEFS@
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
@ -43,20 +43,17 @@ INCLUDES = -I.. -I$(top_srcdir)/intl
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
SOURCES = cat-id-tbl.c
POFILES = @POFILES@ POFILES = @POFILES@
GMOFILES = @GMOFILES@ GMOFILES = @GMOFILES@
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) $(POFILES) $(GMOFILES)
POTFILES = \ POTFILES = \
CATALOGS = @CATALOGS@ CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
INSTOBJEXT = @INSTOBJEXT@
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat .SUFFIXES: .c .o .po .pox .gmo .mo
.c.o: .c.o:
$(COMPILE) $< $(COMPILE) $<
@ -70,19 +67,19 @@ INSTOBJEXT = @INSTOBJEXT@
.po.gmo: .po.gmo:
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $< && rm -f $$file && $(GMSGFMT) --statistics -o $$file $<
.po.cat:
sed -f ../intl/po2msg.sed < $< > $*.msg \
&& rm -f $@ && $(GENCAT) $@ $*.msg
all: all-@USE_NLS@ all: all-@USE_NLS@
all-yes: cat-id-tbl.c $(CATALOGS) all-yes: $(CATALOGS)
all-no: all-no:
$(srcdir)/$(PACKAGE).pot: $(POTFILES) # Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot',
# otherwise packages like GCC can not be built if only parts of the source
# have been downloaded.
$(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in
$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
--add-comments --keyword=_ --keyword=N_ \ --add-comments --keyword=_ --keyword=N_ \
--files-from=$(srcdir)/POTFILES.in \ --files-from=$(srcdir)/POTFILES.in \
@ -90,78 +87,35 @@ $(srcdir)/$(PACKAGE).pot: $(POTFILES)
|| ( rm -f $(srcdir)/$(PACKAGE).pot \ || ( rm -f $(srcdir)/$(PACKAGE).pot \
&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
$(srcdir)/stamp-cat-id: $(PACKAGE).pot
rm -f cat-id-tbl.tmp
sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
| sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
rm cat-id-tbl.tmp; \
else \
echo cat-id-tbl.c changed; \
rm -f $(srcdir)/cat-id-tbl.c; \
mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
fi
cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
install: install-exec install-data install: install-exec install-data
install-exec: install-exec:
install-data: install-data-@USE_NLS@ install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
if test -r "$(MKINSTALLDIRS)"; then \
$(MKINSTALLDIRS) $(datadir); \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
fi
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
case "$$cat" in \
*.gmo) destdir=$(gnulocaledir);; \
*) destdir=$(localedir);; \
esac; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
dir=$$destdir/$$lang/LC_MESSAGES; \
if test -r "$(MKINSTALLDIRS)"; then \
$(MKINSTALLDIRS) $$dir; \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
fi; \
if test -r $$cat; then \
$(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
else \
$(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
echo "installing $(srcdir)/$$cat as" \
"$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
fi; \
if test -r $$cat.m; then \
$(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
else \
if test -r $(srcdir)/$$cat.m ; then \
$(INSTALL_DATA) $(srcdir)/$$cat.m \
$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
echo "installing $(srcdir)/$$cat as" \
"$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
else \
true; \
fi; \
fi; \
done
if test "$(PACKAGE)" = "gettext"; then \ if test "$(PACKAGE)" = "gettext"; then \
if test -r "$(MKINSTALLDIRS)"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
$(MKINSTALLDIRS) $(gettextsrcdir); \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
fi; \
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
$(gettextsrcdir)/Makefile.in.in; \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
else \ else \
: ; \ : ; \
fi fi
install-data-no: all
install-data-yes: all
$(mkinstalldirs) $(DESTDIR)$(datadir)
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
dir=$(localedir)/$$lang/LC_MESSAGES; \
$(mkinstalldirs) $(DESTDIR)$$dir; \
if test -r $$cat; then \
$(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE).mo"; \
else \
$(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
echo "installing $(srcdir)/$$cat as" \
"$(DESTDIR)$$dir/$(PACKAGE).mo"; \
fi; \
done
# Define this as empty until I found a useful application. # Define this as empty until I found a useful application.
installcheck: installcheck:
@ -170,28 +124,27 @@ uninstall:
catalogs='$(CATALOGS)'; \ catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \ for cat in $$catalogs; do \
cat=`basename $$cat`; \ cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
done done
rm -f $(gettextsrcdir)/po-Makefile.in.in if test "$(PACKAGE)" = "gettext"; then \
rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
else \
: ; \
fi
check: all check: all
cat-id-tbl.o: ../intl/libgettext.h
dvi info tags TAGS ID: dvi info tags TAGS ID:
mostlyclean: mostlyclean:
rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp rm -f core core.* *.pox $(PACKAGE).po *.new.po
rm -fr *.o rm -fr *.o
clean: mostlyclean clean: mostlyclean
distclean: clean distclean: clean
rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m rm -f Makefile Makefile.in POTFILES *.mo
maintainer-clean: distclean maintainer-clean: distclean
@echo "This command is intended for maintainers to use;" @echo "This command is intended for maintainers to use;"
@ -199,31 +152,36 @@ maintainer-clean: distclean
rm -f $(GMOFILES) rm -f $(GMOFILES)
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
dist distdir: update-po $(DISTFILES) dist distdir:
$(MAKE) update-po
@$(MAKE) dist2
# This is a separate target because 'update-po' must be executed before.
dist2: $(DISTFILES)
dists="$(DISTFILES)"; \ dists="$(DISTFILES)"; \
for file in $$dists; do \ for file in $$dists; do \
ln $(srcdir)/$$file $(distdir) 2> /dev/null \ cp -p $(srcdir)/$$file $(distdir); \
|| cp -p $(srcdir)/$$file $(distdir); \
done done
update-po: Makefile update-po: Makefile
$(MAKE) $(PACKAGE).pot $(MAKE) $(PACKAGE).pot
PATH=`pwd`/../src:$$PATH; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \
cd $(srcdir); \ cd $(srcdir); \
catalogs='$(CATALOGS)'; \ catalogs='$(GMOFILES)'; \
for cat in $$catalogs; do \ for cat in $$catalogs; do \
cat=`basename $$cat`; \ cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \
mv $$lang.po $$lang.old.po; \
echo "$$lang:"; \ echo "$$lang:"; \
if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \ if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \
rm -f $$lang.old.po; \ mv -f $$lang.new.po $$lang.po; \
else \ else \
echo "msgmerge for $$cat failed!"; \ echo "msgmerge for $$cat failed!"; \
rm -f $$lang.po; \ rm -f $$lang.new.po; \
mv $$lang.old.po $$lang.po; \
fi; \ fi; \
done done
$(MAKE) update-gmo
update-gmo: Makefile $(GMOFILES)
@:
POTFILES: POTFILES.in POTFILES: POTFILES.in
( if test 'x$(srcdir)' != 'x.'; then \ ( if test 'x$(srcdir)' != 'x.'; then \

View File

@ -1,12 +1,12 @@
# Makefile for program source directory in GNU NLS utilities package. # Makefile for program source directory in GNU NLS utilities package.
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> # Copyright (C) 1995-1997, 2000, 2001 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
# #
# This file file be copied and used freely without restrictions. It can # This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License # be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality. # but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available. # Please note that the actual code is *not* freely available.
PACKAGE = gimp-std-plugins PACKAGE = @PACKAGE@
VERSION = @VERSION@ VERSION = @VERSION@
SHELL = /bin/sh SHELL = /bin/sh
@ -14,26 +14,26 @@ SHELL = /bin/sh
srcdir = @srcdir@ srcdir = @srcdir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
top_builddir = ..
VPATH = @srcdir@ VPATH = @srcdir@
prefix = @prefix@ prefix = @prefix@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
datadir = $(prefix)/@DATADIRNAME@ datadir = @datadir@
localedir = $(datadir)/locale localedir = $(datadir)/locale
gnulocaledir = $(prefix)/share/locale gettextsrcdir = $(datadir)/gettext/po
gettextsrcdir = $(prefix)/share/gettext/po subdir = po
subdir = po-plug-ins
INSTALL = @INSTALL@ INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@ INSTALL_DATA = @INSTALL_DATA@
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
CC = @CC@ CC = @CC@
GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@
GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
XGETTEXT = PATH=../src:$$PATH @XGETTEXT@ XGETTEXT = @XGETTEXT@
MSGMERGE = PATH=../src:$$PATH msgmerge MSGMERGE = msgmerge
DEFS = @DEFS@ DEFS = @DEFS@
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
@ -43,20 +43,17 @@ INCLUDES = -I.. -I$(top_srcdir)/intl
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
SOURCES = cat-id-tbl.c
POFILES = @POFILES@ POFILES = @POFILES@
GMOFILES = @GMOFILES@ GMOFILES = @GMOFILES@
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) $(POFILES) $(GMOFILES)
POTFILES = \ POTFILES = \
CATALOGS = @CATALOGS@ CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
INSTOBJEXT = @INSTOBJEXT@
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat .SUFFIXES: .c .o .po .pox .gmo .mo
.c.o: .c.o:
$(COMPILE) $< $(COMPILE) $<
@ -70,19 +67,19 @@ INSTOBJEXT = @INSTOBJEXT@
.po.gmo: .po.gmo:
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $< && rm -f $$file && $(GMSGFMT) --statistics -o $$file $<
.po.cat:
sed -f ../intl/po2msg.sed < $< > $*.msg \
&& rm -f $@ && $(GENCAT) $@ $*.msg
all: all-@USE_NLS@ all: all-@USE_NLS@
all-yes: cat-id-tbl.c $(CATALOGS) all-yes: $(CATALOGS)
all-no: all-no:
$(srcdir)/$(PACKAGE).pot: $(POTFILES) # Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot',
# otherwise packages like GCC can not be built if only parts of the source
# have been downloaded.
$(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in
$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
--add-comments --keyword=_ --keyword=N_ \ --add-comments --keyword=_ --keyword=N_ \
--files-from=$(srcdir)/POTFILES.in \ --files-from=$(srcdir)/POTFILES.in \
@ -90,78 +87,35 @@ $(srcdir)/$(PACKAGE).pot: $(POTFILES)
|| ( rm -f $(srcdir)/$(PACKAGE).pot \ || ( rm -f $(srcdir)/$(PACKAGE).pot \
&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
$(srcdir)/stamp-cat-id: $(PACKAGE).pot
rm -f cat-id-tbl.tmp
sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
| sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
rm cat-id-tbl.tmp; \
else \
echo cat-id-tbl.c changed; \
rm -f $(srcdir)/cat-id-tbl.c; \
mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
fi
cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
install: install-exec install-data install: install-exec install-data
install-exec: install-exec:
install-data: install-data-@USE_NLS@ install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
if test -r "$(MKINSTALLDIRS)"; then \
$(MKINSTALLDIRS) $(datadir); \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
fi
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
case "$$cat" in \
*.gmo) destdir=$(gnulocaledir);; \
*) destdir=$(localedir);; \
esac; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
if test -r "$(MKINSTALLDIRS)"; then \
$(MKINSTALLDIRS) $$dir; \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
fi; \
if test -r $$cat; then \
$(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
else \
$(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
echo "installing $(srcdir)/$$cat as" \
"$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
fi; \
if test -r $$cat.m; then \
$(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
else \
if test -r $(srcdir)/$$cat.m ; then \
$(INSTALL_DATA) $(srcdir)/$$cat.m \
$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
echo "installing $(srcdir)/$$cat as" \
"$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
else \
true; \
fi; \
fi; \
done
if test "$(PACKAGE)" = "gettext"; then \ if test "$(PACKAGE)" = "gettext"; then \
if test -r "$(MKINSTALLDIRS)"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
$(MKINSTALLDIRS) $(gettextsrcdir); \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
fi; \
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
$(gettextsrcdir)/Makefile.in.in; \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
else \ else \
: ; \ : ; \
fi fi
install-data-no: all
install-data-yes: all
$(mkinstalldirs) $(DESTDIR)$(datadir)
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
dir=$(localedir)/$$lang/LC_MESSAGES; \
$(mkinstalldirs) $(DESTDIR)$$dir; \
if test -r $$cat; then \
$(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE).mo"; \
else \
$(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
echo "installing $(srcdir)/$$cat as" \
"$(DESTDIR)$$dir/$(PACKAGE).mo"; \
fi; \
done
# Define this as empty until I found a useful application. # Define this as empty until I found a useful application.
installcheck: installcheck:
@ -170,28 +124,27 @@ uninstall:
catalogs='$(CATALOGS)'; \ catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \ for cat in $$catalogs; do \
cat=`basename $$cat`; \ cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
done done
rm -f $(gettextsrcdir)/po-Makefile.in.in if test "$(PACKAGE)" = "gettext"; then \
rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
else \
: ; \
fi
check: all check: all
cat-id-tbl.o: ../intl/libgettext.h
dvi info tags TAGS ID: dvi info tags TAGS ID:
mostlyclean: mostlyclean:
rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp rm -f core core.* *.pox $(PACKAGE).po *.new.po
rm -fr *.o rm -fr *.o
clean: mostlyclean clean: mostlyclean
distclean: clean distclean: clean
rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m rm -f Makefile Makefile.in POTFILES *.mo
maintainer-clean: distclean maintainer-clean: distclean
@echo "This command is intended for maintainers to use;" @echo "This command is intended for maintainers to use;"
@ -199,31 +152,36 @@ maintainer-clean: distclean
rm -f $(GMOFILES) rm -f $(GMOFILES)
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
dist distdir: update-po $(DISTFILES) dist distdir:
$(MAKE) update-po
@$(MAKE) dist2
# This is a separate target because 'update-po' must be executed before.
dist2: $(DISTFILES)
dists="$(DISTFILES)"; \ dists="$(DISTFILES)"; \
for file in $$dists; do \ for file in $$dists; do \
ln $(srcdir)/$$file $(distdir) 2> /dev/null \ cp -p $(srcdir)/$$file $(distdir); \
|| cp -p $(srcdir)/$$file $(distdir); \
done done
update-po: Makefile update-po: Makefile
$(MAKE) $(PACKAGE).pot $(MAKE) $(PACKAGE).pot
PATH=`pwd`/../src:$$PATH; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \
cd $(srcdir); \ cd $(srcdir); \
catalogs='$(CATALOGS)'; \ catalogs='$(GMOFILES)'; \
for cat in $$catalogs; do \ for cat in $$catalogs; do \
cat=`basename $$cat`; \ cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \
mv $$lang.po $$lang.old.po; \
echo "$$lang:"; \ echo "$$lang:"; \
if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \ if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \
rm -f $$lang.old.po; \ mv -f $$lang.new.po $$lang.po; \
else \ else \
echo "msgmerge for $$cat failed!"; \ echo "msgmerge for $$cat failed!"; \
rm -f $$lang.po; \ rm -f $$lang.new.po; \
mv $$lang.old.po $$lang.po; \
fi; \ fi; \
done done
$(MAKE) update-gmo
update-gmo: Makefile $(GMOFILES)
@:
POTFILES: POTFILES.in POTFILES: POTFILES.in
( if test 'x$(srcdir)' != 'x.'; then \ ( if test 'x$(srcdir)' != 'x.'; then \

View File

@ -1,12 +1,12 @@
# Makefile for program source directory in GNU NLS utilities package. # Makefile for program source directory in GNU NLS utilities package.
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> # Copyright (C) 1995-1997, 2000, 2001 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
# #
# This file file be copied and used freely without restrictions. It can # This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License # be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality. # but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available. # Please note that the actual code is *not* freely available.
PACKAGE = gimp-script-fu PACKAGE = @PACKAGE@
VERSION = @VERSION@ VERSION = @VERSION@
SHELL = /bin/sh SHELL = /bin/sh
@ -14,27 +14,26 @@ SHELL = /bin/sh
srcdir = @srcdir@ srcdir = @srcdir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
top_builddir = ..
VPATH = @srcdir@ VPATH = @srcdir@
prefix = @prefix@ prefix = @prefix@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
datadir = $(prefix)/@DATADIRNAME@ datadir = @datadir@
localedir = $(datadir)/locale localedir = $(datadir)/locale
gnulocaledir = $(prefix)/share/locale gettextsrcdir = $(datadir)/gettext/po
gettextsrcdir = $(prefix)/share/gettext/po subdir = po
subdir = po-script-fu
INSTALL = @INSTALL@ INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@ INSTALL_DATA = @INSTALL_DATA@
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
CC = @CC@ CC = @CC@
GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@
GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
XGETTEXT = PATH=../src:$$PATH @XGETTEXT@ XGETTEXT = @XGETTEXT@
SXGETTEXT = $(srcdir)/script-fu-xgettext MSGMERGE = msgmerge
MSGMERGE = PATH=../src:$$PATH msgmerge
DEFS = @DEFS@ DEFS = @DEFS@
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
@ -44,25 +43,17 @@ INCLUDES = -I.. -I$(top_srcdir)/intl
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
SOURCES = cat-id-tbl.c
POFILES = @POFILES@ POFILES = @POFILES@
GMOFILES = @GMOFILES@ GMOFILES = @GMOFILES@
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) $(SXGETTEXT) $(POFILES) $(GMOFILES)
POTFILES = \ POTFILES = \
POTSCRIPTS = \
$(top_srcdir)/plug-ins/script-fu/scripts/*.scm \
$(top_srcdir)/plug-ins/gap/sel-to-anim-img.scm \
$(top_srcdir)/plug-ins/webbrowser/web-browser.scm
CATALOGS = @CATALOGS@ CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
INSTOBJEXT = @INSTOBJEXT@
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat .SUFFIXES: .c .o .po .pox .gmo .mo
.c.o: .c.o:
$(COMPILE) $< $(COMPILE) $<
@ -76,99 +67,55 @@ INSTOBJEXT = @INSTOBJEXT@
.po.gmo: .po.gmo:
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $< && rm -f $$file && $(GMSGFMT) --statistics -o $$file $<
.po.cat:
sed -f ../intl/po2msg.sed < $< > $*.msg \
&& rm -f $@ && $(GENCAT) $@ $*.msg
all: all-@USE_NLS@ all: all-@USE_NLS@
all-yes: cat-id-tbl.c $(CATALOGS) all-yes: $(CATALOGS)
all-no: all-no:
$(srcdir)/$(PACKAGE).pot: $(POTFILES) $(POTSCRIPTS) # Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot',
# otherwise packages like GCC can not be built if only parts of the source
# have been downloaded.
$(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in
$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
--add-comments --keyword=_ --keyword=N_ \ --add-comments --keyword=_ --keyword=N_ \
--files-from=$(srcdir)/POTFILES.in \ --files-from=$(srcdir)/POTFILES.in \
&& $(SXGETTEXT) $(POTSCRIPTS) >> $(PACKAGE).po \
&& test ! -f $(PACKAGE).po \ && test ! -f $(PACKAGE).po \
|| ( rm -f $(srcdir)/$(PACKAGE).pot \ || ( rm -f $(srcdir)/$(PACKAGE).pot \
&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
$(srcdir)/stamp-cat-id: $(PACKAGE).pot
rm -f cat-id-tbl.tmp
sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
| sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
rm cat-id-tbl.tmp; \
else \
echo cat-id-tbl.c changed; \
rm -f $(srcdir)/cat-id-tbl.c; \
mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
fi
cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
install: install-exec install-data install: install-exec install-data
install-exec: install-exec:
install-data: install-data-@USE_NLS@ install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
if test -r "$(MKINSTALLDIRS)"; then \
$(MKINSTALLDIRS) $(datadir); \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
fi
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
case "$$cat" in \
*.gmo) destdir=$(gnulocaledir);; \
*) destdir=$(localedir);; \
esac; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
dir=$$destdir/$$lang/LC_MESSAGES; \
if test -r "$(MKINSTALLDIRS)"; then \
$(MKINSTALLDIRS) $$dir; \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
fi; \
if test -r $$cat; then \
$(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
else \
$(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
echo "installing $(srcdir)/$$cat as" \
"$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
fi; \
if test -r $$cat.m; then \
$(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
else \
if test -r $(srcdir)/$$cat.m ; then \
$(INSTALL_DATA) $(srcdir)/$$cat.m \
$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
echo "installing $(srcdir)/$$cat as" \
"$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
else \
true; \
fi; \
fi; \
done
if test "$(PACKAGE)" = "gettext"; then \ if test "$(PACKAGE)" = "gettext"; then \
if test -r "$(MKINSTALLDIRS)"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
$(MKINSTALLDIRS) $(gettextsrcdir); \
else \
$(SHELL) $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
fi; \
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
$(gettextsrcdir)/Makefile.in.in; \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
else \ else \
: ; \ : ; \
fi fi
install-data-no: all
install-data-yes: all
$(mkinstalldirs) $(DESTDIR)$(datadir)
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
dir=$(localedir)/$$lang/LC_MESSAGES; \
$(mkinstalldirs) $(DESTDIR)$$dir; \
if test -r $$cat; then \
$(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE).mo"; \
else \
$(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
echo "installing $(srcdir)/$$cat as" \
"$(DESTDIR)$$dir/$(PACKAGE).mo"; \
fi; \
done
# Define this as empty until I found a useful application. # Define this as empty until I found a useful application.
installcheck: installcheck:
@ -177,28 +124,27 @@ uninstall:
catalogs='$(CATALOGS)'; \ catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \ for cat in $$catalogs; do \
cat=`basename $$cat`; \ cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
done done
rm -f $(gettextsrcdir)/po-Makefile.in.in if test "$(PACKAGE)" = "gettext"; then \
rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
else \
: ; \
fi
check: all check: all
cat-id-tbl.o: ../intl/libgettext.h
dvi info tags TAGS ID: dvi info tags TAGS ID:
mostlyclean: mostlyclean:
rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp rm -f core core.* *.pox $(PACKAGE).po *.new.po
rm -fr *.o rm -fr *.o
clean: mostlyclean clean: mostlyclean
distclean: clean distclean: clean
rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m rm -f Makefile Makefile.in POTFILES *.mo
maintainer-clean: distclean maintainer-clean: distclean
@echo "This command is intended for maintainers to use;" @echo "This command is intended for maintainers to use;"
@ -206,31 +152,36 @@ maintainer-clean: distclean
rm -f $(GMOFILES) rm -f $(GMOFILES)
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
dist distdir: update-po $(DISTFILES) dist distdir:
$(MAKE) update-po
@$(MAKE) dist2
# This is a separate target because 'update-po' must be executed before.
dist2: $(DISTFILES)
dists="$(DISTFILES)"; \ dists="$(DISTFILES)"; \
for file in $$dists; do \ for file in $$dists; do \
ln $(srcdir)/$$file $(distdir) 2> /dev/null \ cp -p $(srcdir)/$$file $(distdir); \
|| cp -p $(srcdir)/$$file $(distdir); \
done done
update-po: Makefile update-po: Makefile
$(MAKE) $(PACKAGE).pot $(MAKE) $(PACKAGE).pot
PATH=`pwd`/../src:$$PATH; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \
cd $(srcdir); \ cd $(srcdir); \
catalogs='$(CATALOGS)'; \ catalogs='$(GMOFILES)'; \
for cat in $$catalogs; do \ for cat in $$catalogs; do \
cat=`basename $$cat`; \ cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \
mv $$lang.po $$lang.old.po; \
echo "$$lang:"; \ echo "$$lang:"; \
if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \ if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \
rm -f $$lang.old.po; \ mv -f $$lang.new.po $$lang.po; \
else \ else \
echo "msgmerge for $$cat failed!"; \ echo "msgmerge for $$cat failed!"; \
rm -f $$lang.po; \ rm -f $$lang.new.po; \
mv $$lang.old.po $$lang.po; \
fi; \ fi; \
done done
$(MAKE) update-gmo
update-gmo: Makefile $(GMOFILES)
@:
POTFILES: POTFILES.in POTFILES: POTFILES.in
( if test 'x$(srcdir)' != 'x.'; then \ ( if test 'x$(srcdir)' != 'x.'; then \