diff --git a/ChangeLog b/ChangeLog index 861e1d1fc7..be0c517d4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-02-18 Michael Natterer + + * libgimp/gimpchainbutton.c + * libgimp/gimpcolorbutton.c: documentation updates. + Fri Feb 18 16:20:25 CET 2000 Sven Neumann * libgimp/gimppatheditor.c diff --git a/devel-docs/ChangeLog b/devel-docs/ChangeLog index a8e34b249c..949843c58d 100644 --- a/devel-docs/ChangeLog +++ b/devel-docs/ChangeLog @@ -1,3 +1,29 @@ +2000-02-18 Michael Natterer + + * libgimp/Makefile.am + * libgimp/tmpl/gimpvector.sgml + * libgimp/tmpl/gimppixmap.sgml: new files. + + * libgimp/libgimp-decl.txt + * libgimp/libgimp-docs.sgml + * libgimp/libgimp-sections.txt + * libgimp/libgimp.hierarchy + * libgimp/libgimp.types + * libgimp/tmpl/gimpchainbutton.sgml + * libgimp/tmpl/gimpcolorbutton.sgml + * libgimp/tmpl/gimpdialog.sgml + * libgimp/tmpl/gimpfileselection.sgml + * libgimp/tmpl/gimphelpui.sgml + * libgimp/tmpl/gimpmath.sgml + * libgimp/tmpl/gimpmatrix.sgml + * libgimp/tmpl/gimpmenu.sgml + * libgimp/tmpl/gimppatheditor.sgml + * libgimp/tmpl/gimpsizeentry.sgml + * libgimp/tmpl/gimpunitmenu.sgml + * libgimp/tmpl/gimpwidgets.sgml + * libgimp/tmpl/libgimp-unused.sgml: various minor updates. Added + short descriptions for all libgimpui sections. + Mon Feb 14 16:41:31 CET 2000 Sven Neumann * libgimp/Makefile.am: there was a slash missing in EXTRA_DIST diff --git a/devel-docs/libgimp/Makefile.am b/devel-docs/libgimp/Makefile.am index 781838908e..c6526e61b0 100644 --- a/devel-docs/libgimp/Makefile.am +++ b/devel-docs/libgimp/Makefile.am @@ -35,12 +35,14 @@ tmpl_sources = \ tmpl/gimpmenu.sgml \ tmpl/gimpmodule.sgml \ tmpl/gimppatheditor.sgml \ + tmpl/gimppixmap.sgml \ tmpl/gimpprotocol.sgml \ tmpl/gimpquerybox.sgml \ tmpl/gimpsizeentry.sgml \ tmpl/gimpui.sgml \ tmpl/gimpunit.sgml \ tmpl/gimpunitmenu.sgml \ + tmpl/gimpvector.sgml \ tmpl/gimpwidgets.sgml \ tmpl/gimpwire.sgml \ tmpl/libgimp-unused.sgml \ diff --git a/devel-docs/libgimp/libgimp-decl.txt b/devel-docs/libgimp/libgimp-decl.txt index f3f8e75b19..d71b645399 100644 --- a/devel-docs/libgimp/libgimp-decl.txt +++ b/devel-docs/libgimp/libgimp-decl.txt @@ -1,3 +1,142 @@ + +GimpColorDisplayInit +void +void + + +GimpColorDisplayNew +gpointer +int type + + +GimpColorDisplayClone +gpointer +gpointer cd_ID + + +GimpColorDisplayConvert +void +gpointer cd_ID, + guchar *buf, + int width, + int height, + int bpp, + int bpl + + +GimpColorDisplayDestroy +void +gpointer cd_ID + + +GimpColorDisplayFinalize +void +void + + +GimpColorDisplayLoadState +void +gpointer cd_ID, + Parasite *state + + +GimpColorDisplaySaveState +Parasite * +gpointer cd_ID + + +GimpColorDisplayConfigure +void +gpointer cd_ID, + GFunc ok_func, + gpointer ok_data, + GFunc cancel_func, + gpointer cancel_data + + +GimpColorDisplayConfigureCancel +void +gpointer cd_ID + + +GimpColorDisplayMethods + + +GimpColorDisplayMethods +struct GimpColorDisplayMethods +{ + GimpColorDisplayInit init; + GimpColorDisplayNew new; + GimpColorDisplayClone clone; + GimpColorDisplayConvert convert; + GimpColorDisplayDestroy destroy; + GimpColorDisplayFinalize finalize; + GimpColorDisplayLoadState load; + GimpColorDisplaySaveState save; + GimpColorDisplayConfigure configure; + GimpColorDisplayConfigureCancel cancel; +}; + + +gimp_color_display_register +gboolean +const char *name,GimpColorDisplayMethods *methods + + +gimp_color_display_unregister +gboolean +const char *name + + +GimpColorSelector_Callback +void +void *data, int r, int g, int b + + +GimpColorSelector_NewFunc +GtkWidget * +int r, int g, int b, + GimpColorSelector_Callback cb, + void *data, + void **selector_data + + +GimpColorSelector_FreeFunc +void +void *selector_data + + +GimpColorSelector_SetColorFunc +void +void *selector_data, + int r, int g, int b, + int set_current + + +GimpColorSelectorMethods + + +GimpColorSelectorMethods +struct GimpColorSelectorMethods { + GimpColorSelector_NewFunc new; + GimpColorSelector_FreeFunc free; + GimpColorSelector_SetColorFunc setcolor; +}; + + +GimpColorSelectorID +typedef void *GimpColorSelectorID; + + +gimp_color_selector_register +GimpColorSelectorID +const char *name,const char *help_page,GimpColorSelectorMethods *methods + + +gimp_color_selector_unregister +gboolean +GimpColorSelectorID id,void (*callback)(void *data),void *data + GIMPVAR # define GIMPVAR __declspec(dllexport) @@ -1299,6 +1438,80 @@ gchar *help_data void gchar *help_data + +GIMP_TYPE_CHAIN_BUTTON +#define GIMP_TYPE_CHAIN_BUTTON (gimp_chain_button_get_type ()) + + +GIMP_CHAIN_BUTTON +#define GIMP_CHAIN_BUTTON(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CHAIN_BUTTON, GimpChainButton)) + + +GIMP_CHAIN_BUTTON_CLASS +#define GIMP_CHAIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CHAIN_BUTTON, GimpChainButtonClass)) + + +GIMP_IS_CHAIN_BUTTON +#define GIMP_IS_CHAIN_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CHAIN_BUTTON)) + + +GIMP_IS_CHAIN_BUTTON_CLASS +#define GIMP_IS_CHAIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CHAIN_BUTTON)) + + +GimpChainButton + + +GimpChainButtonClass + + +GimpChainPosition +typedef enum +{ + GIMP_CHAIN_TOP, + GIMP_CHAIN_LEFT, + GIMP_CHAIN_BOTTOM, + GIMP_CHAIN_RIGHT +} GimpChainPosition; + + +GimpChainButton +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; +}; + + +gimp_chain_button_get_type +GtkType +void + + +gimp_chain_button_new +GtkWidget * +GimpChainPosition position + + +gimp_chain_button_set_active +void +GimpChainButton *gcb,gboolean is_active + + +gimp_chain_button_get_active +gboolean +GimpChainButton *gcb + GimpAddMaskType typedef enum @@ -1983,6 +2196,287 @@ typedef GimpPDBStatusType GStatusType; RUN_WITH_LAST_VALS #define RUN_WITH_LAST_VALS GIMP_RUN_WITH_LAST_VALS + +gimp_directory +gchar * +void + + +gimp_personal_rc_file +gchar * +gchar *basename + + +gimp_data_directory +gchar * +void + + +gimp_gtkrc +gchar * +void + + +GimpExportCapabilities +typedef enum { + CAN_HANDLE_RGB = 1 << 0, + CAN_HANDLE_GRAY = 1 << 1, + CAN_HANDLE_INDEXED = 1 << 2, + CAN_HANDLE_ALPHA = 1 << 3, + CAN_HANDLE_LAYERS = 1 << 4, + CAN_HANDLE_LAYERS_AS_ANIMATION = 1 << 5, + NEEDS_ALPHA = 1 << 6 +} GimpExportCapabilities; + + +GimpExportReturnType +typedef enum +{ + EXPORT_CANCEL, + EXPORT_IGNORE, + EXPORT_EXPORT +} GimpExportReturnType; + + +gimp_export_image +GimpExportReturnType +gint32 *image_ID,gint32 *drawable_ID,gchar *format_name,GimpExportCapabilities capabilities + + +GIMP_TYPE_FILE_SELECTION +#define GIMP_TYPE_FILE_SELECTION (gimp_file_selection_get_type ()) + + +GIMP_FILE_SELECTION +#define GIMP_FILE_SELECTION(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_FILE_SELECTION, GimpFileSelection)) + + +GIMP_FILE_SELECTION_CLASS +#define GIMP_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_FILE_SELECTION, GimpFileSelectionClass)) + + +GIMP_IS_FILE_SELECTION +#define GIMP_IS_FILE_SELECTION(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_FILE_SELECTION)) + + +GIMP_IS_FILE_SELECTION_CLASS +#define GIMP_IS_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_FILE_SELECTION)) + + +GimpFileSelection + + +GimpFileSelectionClass + + +GimpFileSelection +struct GimpFileSelection +{ + GtkHBox hbox; + + GtkWidget *yes_pixmap; + GtkWidget *no_pixmap; + GtkWidget *entry; + GtkWidget *browse_button; + + GtkWidget *file_selection; + + gchar *title; + gboolean dir_only; + gboolean check_valid; +}; + + +gimp_file_selection_get_type +GtkType +void + + +gimp_file_selection_new +GtkWidget * +gchar *title,gchar *filename,gboolean dir_only,gboolean check_valid + + +gimp_file_selection_get_filename +gchar * +GimpFileSelection *gfs + + +gimp_file_selection_set_filename +void +GimpFileSelection *gfs,gchar *filename + + +GIMP_MIN_IMAGE_SIZE +#define GIMP_MIN_IMAGE_SIZE 1 + + +GIMP_MAX_IMAGE_SIZE +#define GIMP_MAX_IMAGE_SIZE 16777216 + + +GIMP_MIN_RESOLUTION +#define GIMP_MIN_RESOLUTION (1.0 / 65536.0) + + +GIMP_MAX_RESOLUTION +#define GIMP_MAX_RESOLUTION 65536.0 + + +GIMP_CHECK_SIZE +#define GIMP_CHECK_SIZE 8 + + +GIMP_CHECK_SIZE_SM +#define GIMP_CHECK_SIZE_SM 4 + + +GIMP_CHECK_DARK +#define GIMP_CHECK_DARK (1.0 / 3.0) + + +GIMP_CHECK_LIGHT +#define GIMP_CHECK_LIGHT (2.0 / 3.0) + + +G_PI +#define G_PI 3.14159265358979323846 + + +G_PI_2 +#define G_PI_2 1.57079632679489661923 + + +G_PI_4 +#define G_PI_4 0.78539816339744830962 + + +G_SQRT2 +#define G_SQRT2 1.4142135623730951 + + +G_MAXRAND +#define G_MAXRAND G_MAXINT + + +G_MAXRAND +#define G_MAXRAND RAND_MAX + + +RINT +#define RINT(x) rint(x) + + +RINT +#define RINT(x) floor ((x) + 0.5) + + +ROUND +#define ROUND(x) ((int) ((x) + 0.5)) + + +SQR +#define SQR(x) ((x) * (x)) + + +MAX255 +#define MAX255(a) ((a) | (((a) & 256) - (((a) & 256) >> 8))) + + +CLAMP0255 +#define CLAMP0255(a) CLAMP(a,0,255) + + +gimp_deg_to_rad +#define gimp_deg_to_rad(angle) ((angle) * (2.0 * G_PI) / 360.0) + + +gimp_rad_to_deg +#define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI)) + + +GimpMatrix3[3][3] +typedef gdouble GimpMatrix3[3][3]; + + +GimpMatrix4[4][4] +typedef gdouble GimpMatrix4[4][4]; + + +gimp_matrix3_transform_point +void +GimpMatrix3 matrix,gdouble x,gdouble y,gdouble *newx,gdouble *newy + + +gimp_matrix3_mult +void +GimpMatrix3 matrix1,GimpMatrix3 matrix2 + + +gimp_matrix3_identity +void +GimpMatrix3 matrix + + +gimp_matrix3_translate +void +GimpMatrix3 matrix,gdouble x,gdouble y + + +gimp_matrix3_scale +void +GimpMatrix3 matrix,gdouble x,gdouble y + + +gimp_matrix3_rotate +void +GimpMatrix3 matrix,gdouble theta + + +gimp_matrix3_xshear +void +GimpMatrix3 matrix,gdouble amount + + +gimp_matrix3_yshear +void +GimpMatrix3 matrix,gdouble amount + + +gimp_matrix3_determinant +gdouble +GimpMatrix3 matrix + + +gimp_matrix3_invert +void +GimpMatrix3 matrix,GimpMatrix3 matrix_inv + + +gimp_matrix3_duplicate +void +GimpMatrix3 src,GimpMatrix3 target + + +gimp_matrix3_is_diagonal +gboolean +GimpMatrix3 matrix + + +gimp_matrix3_is_identity +gboolean +GimpMatrix3 matrix + + +gimp_matrix3_is_simple +gboolean +GimpMatrix3 matrix + + +gimp_matrix4_to_deg +void +GimpMatrix4 matrix,gdouble *a,gdouble *b,gdouble *c + GimpConstraintFunc gint @@ -2154,6 +2648,86 @@ void * popup_pnt, gchar * pname gint void * popup_pnt + +GimpModuleStatus +typedef enum { + GIMP_MODULE_OK, + GIMP_MODULE_UNLOAD +} GimpModuleStatus; + + +GimpModuleInfo +typedef struct { + void *shutdown_data; + const char *purpose; + const char *author; + const char *version; + const char *copyright; + const char *date; +} GimpModuleInfo; + + +GIMP_TYPE_PATH_EDITOR +#define GIMP_TYPE_PATH_EDITOR (gimp_path_editor_get_type ()) + + +GIMP_PATH_EDITOR +#define GIMP_PATH_EDITOR(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PATH_EDITOR, GimpPathEditor)) + + +GIMP_PATH_EDITOR_CLASS +#define GIMP_PATH_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PATH_EDITOR, GimpPathEditorClass)) + + +GIMP_IS_PATH_EDITOR +#define GIMP_IS_PATH_EDITOR(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_PATH_EDITOR)) + + +GIMP_IS_PATH_EDITOR_CLASS +#define GIMP_IS_PATH_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PATH_EDITOR)) + + +GimpPathEditor + + +GimpPathEditorClass + + +GimpPathEditor +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; +}; + + +gimp_path_editor_get_type +GtkType +void + + +gimp_path_editor_new +GtkWidget * +gchar *filesel_title,gchar *path + + +gimp_path_editor_get_path +gchar * +GimpPathEditor *gpe + GP_VERSION #define GP_VERSION 0x0003 @@ -2396,6 +2970,282 @@ GIOChannel *channel int GIOChannel *channel + +GIMP_TYPE_SIZE_ENTRY +#define GIMP_TYPE_SIZE_ENTRY (gimp_size_entry_get_type ()) + + +GIMP_SIZE_ENTRY +#define GIMP_SIZE_ENTRY(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntry)) + + +GIMP_SIZE_ENTRY_CLASS +#define GIMP_SIZE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntryClass)) + + +GIMP_IS_SIZE_ENTRY +#define GIMP_IS_SIZE_ENTRY(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_SIZE_ENTRY)) + + +GIMP_IS_SIZE_ENTRY_CLASS +#define GIMP_IS_SIZE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_SIZE_ENTRY)) + + +GimpSizeEntry + + +GimpSizeEntryClass + + +GimpSizeEntryUpdatePolicy +typedef enum +{ + GIMP_SIZE_ENTRY_UPDATE_NONE = 0, + GIMP_SIZE_ENTRY_UPDATE_SIZE = 1, + GIMP_SIZE_ENTRY_UPDATE_RESOLUTION = 2 +} GimpSizeEntryUpdatePolicy; + + +GimpSizeEntryField + + +GimpSizeEntry +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; +}; + + +gimp_size_entry_get_type +GtkType +void + + +gimp_size_entry_new +GtkWidget * +gint number_of_fields,GimpUnit unit,gchar *unit_format,gboolean menu_show_pixels,gboolean menu_show_percent,gboolean show_refval,gint spinbutton_usize,GimpSizeEntryUpdatePolicy update_policy + + +gimp_size_entry_add_field +void +GimpSizeEntry *gse,GtkSpinButton *value_spinbutton,GtkSpinButton *refval_spinbutton + + +gimp_size_entry_attach_label +void +GimpSizeEntry *gse,gchar *text,gint row,gint column,gfloat alignment + + +gimp_size_entry_set_resolution +void +GimpSizeEntry *gse,gint field,gdouble resolution,gboolean keep_size + + +gimp_size_entry_set_size +void +GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper + + +gimp_size_entry_set_value_boundaries +void +GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper + + +gimp_size_entry_get_value +gdouble +GimpSizeEntry *gse,gint field + + +gimp_size_entry_set_value +void +GimpSizeEntry *gse,gint field,gdouble value + + +gimp_size_entry_set_refval_boundaries +void +GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper + + +gimp_size_entry_set_refval_digits +void +GimpSizeEntry *gse,gint field,gint digits + + +gimp_size_entry_get_refval +gdouble +GimpSizeEntry *gse,gint field + + +gimp_size_entry_set_refval +void +GimpSizeEntry *gse,gint field,gdouble refval + + +gimp_size_entry_get_unit +GimpUnit +GimpSizeEntry *gse + + +gimp_size_entry_set_unit +void +GimpSizeEntry *gse,GimpUnit unit + + +gimp_size_entry_grab_focus +void +GimpSizeEntry *gse + + +GimpUnit +typedef enum +{ + GIMP_UNIT_PIXEL = 0, + + GIMP_UNIT_INCH = 1, + GIMP_UNIT_MM = 2, + GIMP_UNIT_POINT = 3, + GIMP_UNIT_PICA = 4, + + GIMP_UNIT_END = 5, + + GIMP_UNIT_PERCENT = 65536 +} GimpUnit; + + +gimp_unit_get_number_of_units +gint +void + + +gimp_unit_get_number_of_built_in_units +gint +void + + +gimp_unit_new +GimpUnit +gchar *identifier,gdouble factor,gint digits,gchar *symbol,gchar *abbreviation,gchar *singular,gchar *plural + + +gimp_unit_get_deletion_flag +gboolean +GimpUnit unit + + +gimp_unit_set_deletion_flag +void +GimpUnit unit,gboolean deletion_flag + + +gimp_unit_get_factor +gdouble +GimpUnit unit + + +gimp_unit_get_digits +gint +GimpUnit unit + + +gimp_unit_get_identifier +gchar * +GimpUnit unit + + +gimp_unit_get_symbol +gchar * +GimpUnit unit + + +gimp_unit_get_abbreviation +gchar * +GimpUnit unit + + +gimp_unit_get_singular +gchar * +GimpUnit unit + + +gimp_unit_get_plural +gchar * +GimpUnit unit + + +GIMP_TYPE_UNIT_MENU +#define GIMP_TYPE_UNIT_MENU (gimp_unit_menu_get_type ()) + + +GIMP_UNIT_MENU +#define GIMP_UNIT_MENU(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_UNIT_MENU, GimpUnitMenu)) + + +GIMP_UNIT_MENU_CLASS +#define GIMP_UNIT_MENU_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_UNIT_MENU, GimpUnitMenuClass)) + + +GIMP_IS_UNIT_MENU +#define GIMP_IS_UNIT_MENU(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_UNIT_MENU)) + + +GIMP_IS_UNIT_MENU_CLASS +#define GIMP_IS_UNIT_MENU_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_UNIT_MENU)) + + +GimpUnitMenu + + +GimpUnitMenuClass + + +GimpUnitMenu +struct GimpUnitMenu +{ + GtkOptionMenu optionmenu; + + /* public (read only) */ + gchar *format; + GimpUnit unit; + + gboolean show_pixels; + gboolean show_percent; + + /* private */ + GtkWidget *selection; + GtkWidget *clist; +}; + + +gimp_unit_menu_get_type +GtkType +void + + +gimp_unit_menu_new +GtkWidget * +gchar *format,GimpUnit unit,gboolean show_pixels,gboolean show_percent,gboolean show_custom + + +gimp_unit_menu_set_unit +void +GimpUnitMenu *gum,GimpUnit unit + + +gimp_unit_menu_get_unit +GimpUnit +GimpUnitMenu *gum + WireMessage @@ -2542,80 +3392,6 @@ GIOChannel *channel,gdouble *data,gint count int GIOChannel *channel,gchar **data,gint count - -GimpMatrix[3][3] -typedef gdouble GimpMatrix[3][3]; - - -gimp_matrix_transform_point -void -GimpMatrix matrix,gdouble x,gdouble y,gdouble *newx,gdouble *newy - - -gimp_matrix_mult -void -GimpMatrix matrix1,GimpMatrix matrix2 - - -gimp_matrix_identity -void -GimpMatrix matrix - - -gimp_matrix_translate -void -GimpMatrix matrix,gdouble x,gdouble y - - -gimp_matrix_scale -void -GimpMatrix matrix,gdouble x,gdouble y - - -gimp_matrix_rotate -void -GimpMatrix matrix,gdouble theta - - -gimp_matrix_xshear -void -GimpMatrix matrix,gdouble amount - - -gimp_matrix_yshear -void -GimpMatrix matrix,gdouble amount - - -gimp_matrix_determinant -gdouble -GimpMatrix matrix - - -gimp_matrix_invert -void -GimpMatrix matrix,GimpMatrix matrix_inv - - -gimp_matrix_duplicate -void -GimpMatrix src,GimpMatrix target - - -gimp_matrix_is_diagonal -gboolean -GimpMatrix matrix - - -gimp_matrix_is_identity -gboolean -GimpMatrix matrix - - -gimp_matrix_is_simple -gboolean -GimpMatrix matrix - PARASITE_PERSISTENT #define PARASITE_PERSISTENT 1 @@ -2710,6 +3486,9 @@ const Parasite *p Parasite + + +Parasite struct Parasite { char *name; /* The name of the parasite. USE A UNIQUE PREFIX! */ @@ -2719,669 +3498,6 @@ struct Parasite * responsible for tracking byte order */ }; - -GimpColorSelector_Callback -void -void *data, int r, int g, int b - - -GimpColorSelector_NewFunc -GtkWidget * -int r, int g, int b, - GimpColorSelector_Callback cb, - void *data, - void **selector_data - - -GimpColorSelector_FreeFunc -void -void *selector_data - - -GimpColorSelector_SetColorFunc -void -void *selector_data, - int r, int g, int b, - int set_current - - -GimpColorSelectorMethods - - -GimpColorSelectorMethods -struct GimpColorSelectorMethods { - GimpColorSelector_NewFunc new; - GimpColorSelector_FreeFunc free; - GimpColorSelector_SetColorFunc setcolor; -}; - - -GimpColorSelectorID -typedef void *GimpColorSelectorID; - - -gimp_color_selector_register -GimpColorSelectorID -const char *name,const char *help_page,GimpColorSelectorMethods *methods - - -gimp_color_selector_unregister -gboolean -GimpColorSelectorID id,void (*callback)(void *data),void *data - - -GimpModuleStatus -typedef enum { - GIMP_MODULE_OK, - GIMP_MODULE_UNLOAD -} GimpModuleStatus; - - -GimpModuleInfo -typedef struct { - void *shutdown_data; - const char *purpose; - const char *author; - const char *version; - const char *copyright; - const char *date; -} GimpModuleInfo; - - -GimpUnit -typedef enum -{ - GIMP_UNIT_PIXEL = 0, - - GIMP_UNIT_INCH = 1, - GIMP_UNIT_MM = 2, - GIMP_UNIT_POINT = 3, - GIMP_UNIT_PICA = 4, - - GIMP_UNIT_END = 5, - - GIMP_UNIT_PERCENT = 65536 -} GimpUnit; - - -gimp_unit_get_number_of_units -gint -void - - -gimp_unit_get_number_of_built_in_units -gint -void - - -gimp_unit_new -GimpUnit -gchar *identifier,gdouble factor,gint digits,gchar *symbol,gchar *abbreviation,gchar *singular,gchar *plural - - -gimp_unit_get_deletion_flag -gboolean -GimpUnit unit - - -gimp_unit_set_deletion_flag -void -GimpUnit unit,gboolean deletion_flag - - -gimp_unit_get_factor -gdouble -GimpUnit unit - - -gimp_unit_get_digits -gint -GimpUnit unit - - -gimp_unit_get_identifier -gchar * -GimpUnit unit - - -gimp_unit_get_symbol -gchar * -GimpUnit unit - - -gimp_unit_get_abbreviation -gchar * -GimpUnit unit - - -gimp_unit_get_singular -gchar * -GimpUnit unit - - -gimp_unit_get_plural -gchar * -GimpUnit unit - - -GIMP_TYPE_UNIT_MENU -#define GIMP_TYPE_UNIT_MENU (gimp_unit_menu_get_type ()) - - -GIMP_UNIT_MENU -#define GIMP_UNIT_MENU(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_UNIT_MENU, GimpUnitMenu)) - - -GIMP_UNIT_MENU_CLASS -#define GIMP_UNIT_MENU_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_UNIT_MENU, GimpUnitMenuClass)) - - -GIMP_IS_UNIT_MENU -#define GIMP_IS_UNIT_MENU(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_UNIT_MENU)) - - -GIMP_IS_UNIT_MENU_CLASS -#define GIMP_IS_UNIT_MENU_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_UNIT_MENU)) - - -GimpUnitMenu - - -GimpUnitMenuClass - - -GimpUnitMenu -struct GimpUnitMenu -{ - GtkOptionMenu optionmenu; - - /* public (read only) */ - gchar *format; - GimpUnit unit; - - gboolean show_pixels; - gboolean show_percent; - - /* private */ - GtkWidget *selection; - GtkWidget *clist; -}; - - -gimp_unit_menu_get_type -GtkType -void - - -gimp_unit_menu_new -GtkWidget * -gchar *format,GimpUnit unit,gboolean show_pixels,gboolean show_percent,gboolean show_custom - - -gimp_unit_menu_set_unit -void -GimpUnitMenu *gum,GimpUnit unit - - -gimp_unit_menu_get_unit -GimpUnit -GimpUnitMenu *gum - - -GIMP_TYPE_SIZE_ENTRY -#define GIMP_TYPE_SIZE_ENTRY (gimp_size_entry_get_type ()) - - -GIMP_SIZE_ENTRY -#define GIMP_SIZE_ENTRY(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntry)) - - -GIMP_SIZE_ENTRY_CLASS -#define GIMP_SIZE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntryClass)) - - -GIMP_IS_SIZE_ENTRY -#define GIMP_IS_SIZE_ENTRY(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_SIZE_ENTRY)) - - -GIMP_IS_SIZE_ENTRY_CLASS -#define GIMP_IS_SIZE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_SIZE_ENTRY)) - - -GimpSizeEntry - - -GimpSizeEntryClass - - -GimpSizeEntryUpdatePolicy -typedef enum -{ - GIMP_SIZE_ENTRY_UPDATE_NONE = 0, - GIMP_SIZE_ENTRY_UPDATE_SIZE = 1, - GIMP_SIZE_ENTRY_UPDATE_RESOLUTION = 2 -} GimpSizeEntryUpdatePolicy; - - -GimpSizeEntryField - - -GimpSizeEntry -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; -}; - - -gimp_size_entry_get_type -GtkType -void - - -gimp_size_entry_new -GtkWidget * -gint number_of_fields,GimpUnit unit,gchar *unit_format,gboolean menu_show_pixels,gboolean menu_show_percent,gboolean show_refval,gint spinbutton_usize,GimpSizeEntryUpdatePolicy update_policy - - -gimp_size_entry_add_field -void -GimpSizeEntry *gse,GtkSpinButton *value_spinbutton,GtkSpinButton *refval_spinbutton - - -gimp_size_entry_attach_label -void -GimpSizeEntry *gse,gchar *text,gint row,gint column,gfloat alignment - - -gimp_size_entry_set_resolution -void -GimpSizeEntry *gse,gint field,gdouble resolution,gboolean keep_size - - -gimp_size_entry_set_size -void -GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper - - -gimp_size_entry_set_value_boundaries -void -GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper - - -gimp_size_entry_get_value -gdouble -GimpSizeEntry *gse,gint field - - -gimp_size_entry_set_value -void -GimpSizeEntry *gse,gint field,gdouble value - - -gimp_size_entry_set_refval_boundaries -void -GimpSizeEntry *gse,gint field,gdouble lower,gdouble upper - - -gimp_size_entry_set_refval_digits -void -GimpSizeEntry *gse,gint field,gint digits - - -gimp_size_entry_get_refval -gdouble -GimpSizeEntry *gse,gint field - - -gimp_size_entry_set_refval -void -GimpSizeEntry *gse,gint field,gdouble refval - - -gimp_size_entry_get_unit -GimpUnit -GimpSizeEntry *gse - - -gimp_size_entry_set_unit -void -GimpSizeEntry *gse,GimpUnit unit - - -gimp_size_entry_grab_focus -void -GimpSizeEntry *gse - - -G_PI -#define G_PI 3.14159265358979323846 - - -G_PI_2 -#define G_PI_2 1.57079632679489661923 - - -G_PI_4 -#define G_PI_4 0.78539816339744830962 - - -G_SQRT2 -#define G_SQRT2 1.4142135623730951 - - -G_MAXRAND -#define G_MAXRAND G_MAXINT - - -G_MAXRAND -#define G_MAXRAND RAND_MAX - - -RINT -#define RINT(x) rint(x) - - -RINT -#define RINT(x) floor ((x) + 0.5) - - -ROUND -#define ROUND(x) ((int) ((x) + 0.5)) - - -SQR -#define SQR(x) ((x) * (x)) - - -MAX255 -#define MAX255(a) ((a) | (((a) & 256) - (((a) & 256) >> 8))) - - -CLAMP0255 -#define CLAMP0255(a) CLAMP(a,0,255) - - -gimp_directory -gchar * -void - - -gimp_personal_rc_file -gchar * -gchar *basename - - -gimp_data_directory -gchar * -void - - -gimp_gtkrc -gchar * -void - - -GimpColorDisplayInit -void -void - - -GimpColorDisplayNew -gpointer -int type - - -GimpColorDisplayClone -gpointer -gpointer cd_ID - - -GimpColorDisplayConvert -void -gpointer cd_ID, - guchar *buf, - int width, - int height, - int bpp, - int bpl - - -GimpColorDisplayDestroy -void -gpointer cd_ID - - -GimpColorDisplayFinalize -void -void - - -GimpColorDisplayLoadState -void -gpointer cd_ID, - Parasite *state - - -GimpColorDisplaySaveState -Parasite * -gpointer cd_ID - - -GimpColorDisplayConfigure -void -gpointer cd_ID, - GFunc ok_func, - gpointer ok_data, - GFunc cancel_func, - gpointer cancel_data - - -GimpColorDisplayConfigureCancel -void -gpointer cd_ID - - -GimpColorDisplayMethods - - -GimpColorDisplayMethods -struct GimpColorDisplayMethods -{ - GimpColorDisplayInit init; - GimpColorDisplayNew new; - GimpColorDisplayClone clone; - GimpColorDisplayConvert convert; - GimpColorDisplayDestroy destroy; - GimpColorDisplayFinalize finalize; - GimpColorDisplayLoadState load; - GimpColorDisplaySaveState save; - GimpColorDisplayConfigure configure; - GimpColorDisplayConfigureCancel cancel; -}; - - -gimp_color_display_register -gboolean -const char *name,GimpColorDisplayMethods *methods - - -gimp_color_display_unregister -gboolean -const char *name - - -GIMP_MIN_IMAGE_SIZE -#define GIMP_MIN_IMAGE_SIZE 1 - - -GIMP_MAX_IMAGE_SIZE -#define GIMP_MAX_IMAGE_SIZE 16777216 - - -GIMP_MIN_RESOLUTION -#define GIMP_MIN_RESOLUTION (1.0 / 65536.0) - - -GIMP_MAX_RESOLUTION -#define GIMP_MAX_RESOLUTION 65536.0 - - -GIMP_CHECK_SIZE -#define GIMP_CHECK_SIZE 8 - - -GIMP_CHECK_SIZE_SM -#define GIMP_CHECK_SIZE_SM 4 - - -GIMP_CHECK_DARK -#define GIMP_CHECK_DARK (1.0 / 3.0) - - -GIMP_CHECK_LIGHT -#define GIMP_CHECK_LIGHT (2.0 / 3.0) - - -GIMP_TYPE_FILE_SELECTION -#define GIMP_TYPE_FILE_SELECTION (gimp_file_selection_get_type ()) - - -GIMP_FILE_SELECTION -#define GIMP_FILE_SELECTION(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_FILE_SELECTION, GimpFileSelection)) - - -GIMP_FILE_SELECTION_CLASS -#define GIMP_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_FILE_SELECTION, GimpFileSelectionClass)) - - -GIMP_IS_FILE_SELECTION -#define GIMP_IS_FILE_SELECTION(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_FILE_SELECTION)) - - -GIMP_IS_FILE_SELECTION_CLASS -#define GIMP_IS_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_FILE_SELECTION)) - - -GimpFileSelection - - -GimpFileSelectionClass - - -GimpFileSelection -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; -}; - - -gimp_file_selection_get_type -GtkType -void - - -gimp_file_selection_new -GtkWidget * -gchar *title,gchar *filename,gboolean dir_only,gboolean check_valid - - -gimp_file_selection_get_filename -gchar * -GimpFileSelection *gfs - - -gimp_file_selection_set_filename -void -GimpFileSelection *gfs,gchar *filename - - -GIMP_TYPE_PATH_EDITOR -#define GIMP_TYPE_PATH_EDITOR (gimp_path_editor_get_type ()) - - -GIMP_PATH_EDITOR -#define GIMP_PATH_EDITOR(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PATH_EDITOR, GimpPathEditor)) - - -GIMP_PATH_EDITOR_CLASS -#define GIMP_PATH_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PATH_EDITOR, GimpPathEditorClass)) - - -GIMP_IS_PATH_EDITOR -#define GIMP_IS_PATH_EDITOR(obj) (GTK_CHECK_TYPE (obj, GIMP_TYPE_PATH_EDITOR)) - - -GIMP_IS_PATH_EDITOR_CLASS -#define GIMP_IS_PATH_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PATH_EDITOR)) - - -GimpPathEditor - - -GimpPathEditorClass - - -GimpPathEditor -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; -}; - - -gimp_path_editor_get_type -GtkType -void - - -gimp_path_editor_new -GtkWidget * -gchar *filesel_title,gchar *path - - -gimp_path_editor_get_path -gchar * -GimpPathEditor *gpe - PIXPIPE_MAXDIM #define PIXPIPE_MAXDIM 4 @@ -3418,32 +3534,6 @@ gchar *parameters,PixPipeParams *params gchar * PixPipeParams *params - -GimpExportCapabilities -typedef enum { - CAN_HANDLE_RGB = 1 << 0, - CAN_HANDLE_GRAY = 1 << 1, - CAN_HANDLE_INDEXED = 1 << 2, - CAN_HANDLE_ALPHA = 1 << 3, - CAN_HANDLE_LAYERS = 1 << 4, - CAN_HANDLE_LAYERS_AS_ANIMATION = 1 << 5, - NEEDS_ALPHA = 1 << 6 -} GimpExportCapabilities; - - -GimpExportReturnType -typedef enum -{ - EXPORT_CANCEL, - EXPORT_IGNORE, - EXPORT_EXPORT -} GimpExportReturnType; - - -gimp_export_image -GimpExportReturnType -gint32 *image_ID,gint32 *drawable_ID,gchar *format_name,GimpExportCapabilities capabilities - GIMP_MAJOR_VERSION #define GIMP_MAJOR_VERSION (1) @@ -3617,6 +3707,11 @@ void gchar *title,gint width,gint height,guchar *color,gint bpp +gimp_color_button_double_new +GtkWidget * +gchar *title,gint width,gint height,gdouble *color,gint bpp + + gimp_color_button_update void GimpColorButton *gcb @@ -3684,30 +3779,145 @@ guchar *rgb,gdouble hue,gdouble saturation,gdouble value (g) * INTENSITY_GREEN + \ (b) * INTENSITY_BLUE + 0.001) + +GimpVector2 + + +GimpVector3 + + +GimpVector4 + + +GimpVector2 +struct GimpVector2 +{ + gdouble x, y; +}; + + +GimpVector3 +struct GimpVector3 +{ + gdouble x, y, z; +}; + + +GimpVector4 +struct GimpVector4 +{ + gdouble x, y, z, w; +}; + -gimp_dialog_new -GtkWidget * -const gchar *title,const gchar *wmclass_name,GimpHelpFunc help_func,gchar *help_data,GtkWindowPosition position,gint allow_shrink,gint allow_grow,gint auto_shrink,... +gimp_vector2_inner_product +gdouble +GimpVector2 *vector1,GimpVector2 *vector2 -gimp_dialog_newv -GtkWidget * -const gchar *title,const gchar *wmclass_name,GimpHelpFunc help_func,gchar *help_data,GtkWindowPosition position,gint allow_shrink,gint allow_grow,gint auto_shrink,va_list args +gimp_vector2_cross_product +GimpVector2 +GimpVector2 *vector1,GimpVector2 *vector2 -gimp_dialog_set_icon +gimp_vector2_length +gdouble +GimpVector2 *vector + + +gimp_vector2_normalize void -GtkWindow *dialog +GimpVector2 *vector -gimp_dialog_create_action_area +gimp_vector2_mul void -GtkDialog *dialog,... +GimpVector2 *vector,gdouble factor -gimp_dialog_create_action_areav +gimp_vector2_sub void -GtkDialog *dialog,va_list args +GimpVector2 *result,GimpVector2 *vector1,GimpVector2 *vector2 + + +gimp_vector2_set +void +GimpVector2 *vector,gdouble x,gdouble y + + +gimp_vector2_add +void +GimpVector2 *result,GimpVector2 *vector1,GimpVector2 *vector2 + + +gimp_vector2_neg +void +GimpVector2 *vector + + +gimp_vector2_rotate +void +GimpVector2 *vector,gdouble alpha + + +gimp_vector3_inner_product +gdouble +GimpVector3 *vector1,GimpVector3 *vector2 + + +gimp_vector3_cross_product +GimpVector3 +GimpVector3 *vector1,GimpVector3 *vector2 + + +gimp_vector3_length +gdouble +GimpVector3 *vector + + +gimp_vector3_normalize +void +GimpVector3 *vector + + +gimp_vector3_mul +void +GimpVector3 *vector,gdouble factor + + +gimp_vector3_sub +void +GimpVector3 *result,GimpVector3 *vector1,GimpVector3 *vector2 + + +gimp_vector3_set +void +GimpVector3 *vector,gdouble x,gdouble y,gdouble z + + +gimp_vector3_add +void +GimpVector3 *result,GimpVector3 *vector1,GimpVector3 *vector2 + + +gimp_vector3_neg +void +GimpVector3 *vector + + +gimp_vector3_rotate +void +GimpVector3 *vector,gdouble alpha,gdouble beta,gdouble gamma + + +gimp_vector_2d_to_3d +void +gint sx,gint sy,gint w,gint h,gint x,gint y,GimpVector3 *vp,GimpVector3 *p + + +gimp_vector_3d_to_2d +void +gint sx,gint sy,gint w,gint h,gdouble *x,gdouble *y,GimpVector3 *vp,GimpVector3 *p GimpHelpFunc @@ -3754,9 +3964,31 @@ GtkWidget *widget,const gchar *tool_tip,gchar *help_data void void - -Parasite - + +gimp_dialog_new +GtkWidget * +const gchar *title,const gchar *wmclass_name,GimpHelpFunc help_func,gchar *help_data,GtkWindowPosition position,gint allow_shrink,gint allow_grow,gint auto_shrink,... + + +gimp_dialog_newv +GtkWidget * +const gchar *title,const gchar *wmclass_name,GimpHelpFunc help_func,gchar *help_data,GtkWindowPosition position,gint allow_shrink,gint allow_grow,gint auto_shrink,va_list args + + +gimp_dialog_set_icon +void +GtkWindow *dialog + + +gimp_dialog_create_action_area +void +GtkDialog *dialog,... + + +gimp_dialog_create_action_areav +void +GtkDialog *dialog,va_list args + gimp_option_menu_new GtkWidget * @@ -3787,6 +4019,33 @@ gboolean in_frame,gchar *frame_title,GtkSignalFunc GtkWidget * GtkObject **adjustment,gfloat value,gfloat lower,gfloat upper,gfloat step_increment,gfloat page_increment,gfloat page_size,gfloat climb_rate,guint digits + +GIMP_SCALE_ENTRY_LABEL +#define GIMP_SCALE_ENTRY_LABEL(adj) \ + GTK_LABEL (gtk_object_get_data (GTK_OBJECT(adj), "label")) + + +GIMP_SCALE_ENTRY_SCALE +#define GIMP_SCALE_ENTRY_SCALE(adj) \ + GTK_HSCALE (gtk_object_get_data (GTK_OBJECT(adj), "scale")) + + +GIMP_SCALE_ENTRY_SCALE_ADJ +#define GIMP_SCALE_ENTRY_SCALE_ADJ(adj) \ + gtk_range_get_adjustment \ + (GTK_RANGE (gtk_object_get_data (GTK_OBJECT(adj), "scale"))) + + +GIMP_SCALE_ENTRY_SPINBUTTON +#define GIMP_SCALE_ENTRY_SPINBUTTON(adj) \ + GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT(adj), "spinbutton")) + + +GIMP_SCALE_ENTRY_SPINBUTTON_ADJ +#define GIMP_SCALE_ENTRY_SPINBUTTON_ADJ(adj) \ + gtk_spin_button_get_adjustment \ + (GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT(adj), "spinbutton"))) + gimp_scale_entry_new GtkObject * @@ -3803,6 +4062,11 @@ gint *seed,GtkWidget **seed_spinbutton,gint GimpUnit unit,gchar *unit_format,gboolean menu_show_pixels,gboolean menu_show_percent,gint spinbutton_usize,GimpSizeEntryUpdatePolicy update_policy,gboolean chainbutton_active,gboolean chain_constrains_ratio,GtkWidget **chainbutton,gchar *xlabel,gdouble x,gdouble xres,gdouble lower_boundary_x,gdouble upper_boundary_x,gdouble xsize_0,gdouble xsize_100,gchar *ylabel,gdouble y,gdouble yres,gdouble lower_boundary_y,gdouble upper_boundary_y,gdouble ysize_0,gdouble ysize_100 +gimp_pixmap_button_new +GtkWidget * +gchar **xpm_data + + gimp_toggle_button_update void GtkWidget *widget,gpointer data @@ -3904,76 +4168,38 @@ gchar *title,GimpHelpFunc help_func,gchar gchar *title,GimpHelpFunc help_func,gchar *help_data,gboolean eek,gchar *message,gchar *true_button,gchar *false_button,GtkObject *object,gchar *signal,GimpQueryBooleanCallback callback,gpointer data -GIMP_TYPE_CHAIN_BUTTON -#define GIMP_TYPE_CHAIN_BUTTON (gimp_chain_button_get_type ()) +GIMP_TYPE_PIXMAP +#define GIMP_TYPE_PIXMAP (gimp_pixmap_get_type ()) -GIMP_CHAIN_BUTTON -#define GIMP_CHAIN_BUTTON(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CHAIN_BUTTON, GimpChainButton)) +GIMP_PIXMAP +#define GIMP_PIXMAP(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PIXMAP, GimpPixmap)) -GIMP_CHAIN_BUTTON_CLASS -#define GIMP_CHAIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CHAIN_BUTTON, GimpChainButtonClass)) +GIMP_PIXMAP_CLASS +#define GIMP_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PIXMAP, GimpPixmapClass)) -GIMP_IS_CHAIN_BUTTON -#define GIMP_IS_CHAIN_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CHAIN_BUTTON)) +GIMP_IS_PIXMAP +#define GIMP_IS_PIXMAP(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_PIXMAP)) -GIMP_IS_CHAIN_BUTTON_CLASS -#define GIMP_IS_CHAIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CHAIN_BUTTON)) +GIMP_IS_PIXMAP_CLASS +#define GIMP_IS_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PIXMAP)) -GimpChainButton +GimpPixmap -GimpChainButtonClass - - -GimpChainPosition -typedef enum -{ - GIMP_CHAIN_TOP, - GIMP_CHAIN_LEFT, - GIMP_CHAIN_BOTTOM, - GIMP_CHAIN_RIGHT -} GimpChainPosition; - - -GimpChainButton -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; -}; +GimpPixmapClass -gimp_chain_button_get_type +gimp_pixmap_get_type GtkType void -gimp_chain_button_new -GtkWidget * -GimpChainPosition position - - -gimp_chain_button_set_active -void -GimpChainButton *gcb,gboolean is_active - - -gimp_chain_button_get_active -gboolean -GimpChainButton *gcb +gimp_pixmap_new +GtkWidget * +gchar **xpm_data diff --git a/devel-docs/libgimp/libgimp-docs.sgml b/devel-docs/libgimp/libgimp-docs.sgml index 1937a8d29c..cdf586a01b 100644 --- a/devel-docs/libgimp/libgimp-docs.sgml +++ b/devel-docs/libgimp/libgimp-docs.sgml @@ -22,6 +22,7 @@ + @@ -29,6 +30,7 @@ + ]> @@ -52,6 +54,7 @@ &libgimp-gimpenv; &libgimp-gimpmatrix; &libgimp-gimpprotocol; + &libgimp-gimpvector; &libgimp-gimpwire; &libgimp-parasite; &libgimp-parasiteio; @@ -65,6 +68,7 @@ &GimpColorButton; &GimpFileSelection; &GimpPathEditor; + &GimpPixmap; &GimpSizeEntry; &GimpUnitMenu; &libgimp-gimpdialog; @@ -83,9 +87,3 @@ &libgimp-color-selector; - - - - - - diff --git a/devel-docs/libgimp/libgimp-sections.txt b/devel-docs/libgimp/libgimp-sections.txt index fa5dfff5a7..3315ff806a 100644 --- a/devel-docs/libgimp/libgimp-sections.txt +++ b/devel-docs/libgimp/libgimp-sections.txt @@ -433,21 +433,52 @@ wire_write_string
gimpmatrix -GimpMatrix[3][3] -gimp_matrix_transform_point -gimp_matrix_mult -gimp_matrix_identity -gimp_matrix_translate -gimp_matrix_scale -gimp_matrix_rotate -gimp_matrix_xshear -gimp_matrix_yshear -gimp_matrix_determinant -gimp_matrix_invert -gimp_matrix_duplicate -gimp_matrix_is_diagonal -gimp_matrix_is_identity -gimp_matrix_is_simple +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 +
+ +
+gimpvector +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
@@ -514,6 +545,8 @@ ROUND SQR MAX255 CLAMP0255 +gimp_deg_to_rad +gimp_rad_to_deg
@@ -610,8 +643,6 @@ GIMP_HAVE_NEW_ENUMS GIMP_HAVE_EXPORT
- -
gimpchainbutton GimpChainButton @@ -635,6 +666,7 @@ GimpColorButton GIMP_COLOR_BUTTON GimpColorButton gimp_color_button_new +gimp_color_button_double_new gimp_color_button_update GIMP_TYPE_COLOR_BUTTON @@ -675,6 +707,20 @@ GIMP_PATH_EDITOR_CLASS GIMP_IS_PATH_EDITOR_CLASS
+
+gimppixmap +GimpPixmap +GIMP_PIXMAP +GimpPixmap +gimp_pixmap_new + +GIMP_TYPE_PIXMAP +GIMP_IS_PIXMAP +gimp_pixmap_get_type +GIMP_PIXMAP_CLASS +GIMP_IS_PIXMAP_CLASS +
+
gimpquerybox GimpQueryStringCallback @@ -818,8 +864,14 @@ 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_coordinates_new +gimp_pixmap_button_new gimp_toggle_button_update gimp_menu_item_update gimp_radio_button_update diff --git a/devel-docs/libgimp/libgimp.hierarchy b/devel-docs/libgimp/libgimp.hierarchy index fc971a87f5..bb0a7b689b 100644 --- a/devel-docs/libgimp/libgimp.hierarchy +++ b/devel-docs/libgimp/libgimp.hierarchy @@ -14,3 +14,6 @@ GtkObject GimpFileSelection GtkVBox GimpPathEditor + GtkMisc + GtkPixmap + GimpPixmap diff --git a/devel-docs/libgimp/libgimp.types b/devel-docs/libgimp/libgimp.types index 49050e432f..049d8de7b0 100644 --- a/devel-docs/libgimp/libgimp.types +++ b/devel-docs/libgimp/libgimp.types @@ -6,5 +6,6 @@ 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 \ No newline at end of file +gimp_unit_menu_get_type diff --git a/devel-docs/libgimp/tmpl/gimpchainbutton.sgml b/devel-docs/libgimp/tmpl/gimpchainbutton.sgml index b62f50d0ca..9e64406dde 100644 --- a/devel-docs/libgimp/tmpl/gimpchainbutton.sgml +++ b/devel-docs/libgimp/tmpl/gimpchainbutton.sgml @@ -23,7 +23,7 @@ necessary. 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. @@ -35,7 +35,7 @@ up two GimpSizeEntries (see #GimpSizeEntry) linked with a #GimpChainbutton. Checks if the passed pointer is a pointer to a #GimpChainButton and -performes the cast if valid. +performs the cast if valid. @obj: The pointer to cast. diff --git a/devel-docs/libgimp/tmpl/gimpcolorbutton.sgml b/devel-docs/libgimp/tmpl/gimpcolorbutton.sgml index 89b3e3e83b..1c2f273023 100644 --- a/devel-docs/libgimp/tmpl/gimpcolorbutton.sgml +++ b/devel-docs/libgimp/tmpl/gimpcolorbutton.sgml @@ -33,7 +33,7 @@ Note that the color is changed in place. Checks if the passed pointer is a pointer to a #GimpColorButton and -performes the cast if valid. +performs the cast if valid. @obj: The pointer to cast. @@ -52,6 +52,19 @@ performes the cast if valid. @Returns: + + + + + +@title: +@width: +@height: +@color: +@bpp: +@Returns: + + diff --git a/devel-docs/libgimp/tmpl/gimpdialog.sgml b/devel-docs/libgimp/tmpl/gimpdialog.sgml index 192dd937b9..f414cd06ef 100644 --- a/devel-docs/libgimp/tmpl/gimpdialog.sgml +++ b/devel-docs/libgimp/tmpl/gimpdialog.sgml @@ -2,7 +2,8 @@ gimpdialog - +Constructors for #GtkDialog's and action_areas as well as other +dialog-related stuff. diff --git a/devel-docs/libgimp/tmpl/gimpfileselection.sgml b/devel-docs/libgimp/tmpl/gimpfileselection.sgml index 5258d19433..f49ff7f431 100644 --- a/devel-docs/libgimp/tmpl/gimpfileselection.sgml +++ b/devel-docs/libgimp/tmpl/gimpfileselection.sgml @@ -40,7 +40,7 @@ will be emitted. Checks if the passed pointer is a pointer to a #GimpFileSelection and -performes the cast if valid. +performs the cast if valid. @obj: The pointer to cast. diff --git a/devel-docs/libgimp/tmpl/gimphelpui.sgml b/devel-docs/libgimp/tmpl/gimphelpui.sgml index c54b421e37..580d3883c5 100644 --- a/devel-docs/libgimp/tmpl/gimphelpui.sgml +++ b/devel-docs/libgimp/tmpl/gimphelpui.sgml @@ -2,7 +2,8 @@ gimphelpui - +Functions for setting #GtkTooltips and HTML links into the GIMP help +system. @@ -20,8 +21,6 @@ gimphelpui @help_data: - -@Param1: diff --git a/devel-docs/libgimp/tmpl/gimpmatrix.sgml b/devel-docs/libgimp/tmpl/gimpmatrix.sgml index a4155766b7..58d86cefd5 100644 --- a/devel-docs/libgimp/tmpl/gimpmatrix.sgml +++ b/devel-docs/libgimp/tmpl/gimpmatrix.sgml @@ -18,13 +18,19 @@ basic matrix manipulations and tests. - + - + + + + + + + @@ -36,7 +42,7 @@ basic matrix manipulations and tests. @newy: - + @@ -45,7 +51,7 @@ basic matrix manipulations and tests. @matrix2: - + @@ -53,7 +59,7 @@ basic matrix manipulations and tests. @matrix: - + @@ -63,7 +69,7 @@ basic matrix manipulations and tests. @y: - + @@ -73,7 +79,7 @@ basic matrix manipulations and tests. @y: - + @@ -82,7 +88,7 @@ basic matrix manipulations and tests. @theta: - + @@ -91,7 +97,7 @@ basic matrix manipulations and tests. @amount: - + @@ -100,7 +106,7 @@ basic matrix manipulations and tests. @amount: - + @@ -109,7 +115,7 @@ basic matrix manipulations and tests. @Returns: - + @@ -118,7 +124,7 @@ basic matrix manipulations and tests. @matrix_inv: - + @@ -127,7 +133,7 @@ basic matrix manipulations and tests. @target: - + @@ -136,7 +142,7 @@ basic matrix manipulations and tests. @Returns: - + @@ -145,7 +151,7 @@ basic matrix manipulations and tests. @Returns: - + @@ -154,3 +160,14 @@ basic matrix manipulations and tests. @Returns: + + + + + +@matrix: +@a: +@b: +@c: + + diff --git a/devel-docs/libgimp/tmpl/gimpmenu.sgml b/devel-docs/libgimp/tmpl/gimpmenu.sgml index 5fd86f451d..aa8b9ff794 100644 --- a/devel-docs/libgimp/tmpl/gimpmenu.sgml +++ b/devel-docs/libgimp/tmpl/gimpmenu.sgml @@ -2,7 +2,7 @@ gimpmenu - +Widgets and functions for selecting images, layers, brushes, patterns etc. diff --git a/devel-docs/libgimp/tmpl/gimppatheditor.sgml b/devel-docs/libgimp/tmpl/gimppatheditor.sgml index eab0671710..f9bcedc275 100644 --- a/devel-docs/libgimp/tmpl/gimppatheditor.sgml +++ b/devel-docs/libgimp/tmpl/gimppatheditor.sgml @@ -39,7 +39,7 @@ the search path, the "path_changed" signal will be emitted. Checks if the passed pointer is a pointer to a #GimpPathEditor and -performes the cast if valid. +performs the cast if valid. @obj: The pointer to cast. diff --git a/devel-docs/libgimp/tmpl/gimppixmap.sgml b/devel-docs/libgimp/tmpl/gimppixmap.sgml new file mode 100644 index 0000000000..2465d4e981 --- /dev/null +++ b/devel-docs/libgimp/tmpl/gimppixmap.sgml @@ -0,0 +1,40 @@ + +GimpPixmap + + +Widget which creates a #GtkPixmap from XPM data. + + + + + + + + +gimp_pixmap_button_new() + + + + + + + + + + +Checks if the passed pointer is a pointer to a #GimpPixmap and +performs the cast if valid. + + +@obj: The pointer to cast. + + + + + + + +@xpm_data: +@Returns: + + diff --git a/devel-docs/libgimp/tmpl/gimpsizeentry.sgml b/devel-docs/libgimp/tmpl/gimpsizeentry.sgml index 7b4bd181ba..f4b675f985 100644 --- a/devel-docs/libgimp/tmpl/gimpsizeentry.sgml +++ b/devel-docs/libgimp/tmpl/gimpsizeentry.sgml @@ -48,7 +48,7 @@ real-world-unit. Checks if the passed pointer is a pointer to a #GimpSizeEntry and -performes the cast if valid. +performs the cast if valid. @obj: The pointer to cast. diff --git a/devel-docs/libgimp/tmpl/gimpunitmenu.sgml b/devel-docs/libgimp/tmpl/gimpunitmenu.sgml index 741eebb722..740b98c82a 100644 --- a/devel-docs/libgimp/tmpl/gimpunitmenu.sgml +++ b/devel-docs/libgimp/tmpl/gimpunitmenu.sgml @@ -39,7 +39,7 @@ Whenever the user selects a unit from the menu or the dialog, the Checks if the passed pointer is a pointer to a #GimpUnitMenu and -performes the cast if valid. +performs the cast if valid. @obj: The pointer to cast. diff --git a/devel-docs/libgimp/tmpl/gimpvector.sgml b/devel-docs/libgimp/tmpl/gimpvector.sgml new file mode 100644 index 0000000000..387d1a3dad --- /dev/null +++ b/devel-docs/libgimp/tmpl/gimpvector.sgml @@ -0,0 +1,262 @@ + +gimpvector + + + + + + + + + + + + + + + + + + + +@x: +@y: + + + + + + +@x: +@y: +@z: + + + + + + +@x: +@y: +@z: +@w: + + + + + + +@vector: +@x: +@y: + + + + + + + +@result: +@vector1: +@vector2: + + + + + + + +@result: +@vector1: +@vector2: + + + + + + + +@vector: + + + + + + + +@vector: +@factor: + + + + + + + +@vector1: +@vector2: +@Returns: + + + + + + + +@vector1: +@vector2: +@Returns: + + + + + + + +@vector: + + + + + + + +@vector: +@Returns: + + + + + + + +@vector: +@alpha: + + + + + + + +@vector: +@x: +@y: +@z: + + + + + + + +@result: +@vector1: +@vector2: + + + + + + + +@result: +@vector1: +@vector2: + + + + + + + +@vector: + + + + + + + +@vector: +@factor: + + + + + + + +@vector1: +@vector2: +@Returns: + + + + + + + +@vector1: +@vector2: +@Returns: + + + + + + + +@vector: + + + + + + + +@vector: +@Returns: + + + + + + + +@vector: +@alpha: +@beta: +@gamma: + + + + + + + +@sx: +@sy: +@w: +@h: +@x: +@y: +@vp: +@p: + + + + + + + +@sx: +@sy: +@w: +@h: +@x: +@y: +@vp: +@p: + + diff --git a/devel-docs/libgimp/tmpl/gimpwidgets.sgml b/devel-docs/libgimp/tmpl/gimpwidgets.sgml index 637b29d3c1..b3eb0738aa 100644 --- a/devel-docs/libgimp/tmpl/gimpwidgets.sgml +++ b/devel-docs/libgimp/tmpl/gimpwidgets.sgml @@ -2,7 +2,8 @@ gimpwidgets - +A collection of convenient widget constructors, standard callbacks and +helper functions. @@ -113,6 +114,46 @@ gimpwidgets @Returns: + + + + + +@adj: + + + + + + + +@adj: + + + + + + + +@adj: + + + + + + + +@adj: + + + + + + + +@adj: + + @@ -158,6 +199,15 @@ gimpwidgets @Returns: + + + + + +@xpm_data: +@Returns: + + diff --git a/devel-docs/libgimp/tmpl/libgimp-unused.sgml b/devel-docs/libgimp/tmpl/libgimp-unused.sgml index e69de29bb2..57b76022fa 100644 --- a/devel-docs/libgimp/tmpl/libgimp-unused.sgml +++ b/devel-docs/libgimp/tmpl/libgimp-unused.sgml @@ -0,0 +1,122 @@ + + + + + +@matrix: +@amount: + + + + + + +@matrix: + + + + + + +@matrix: +@Returns: + + + + + + +@matrix1: +@matrix2: + + + + + + +@matrix: +@Returns: + + + + + + +@matrix: +@x: +@y: + + + + + + +@src: +@target: + + + + + + +@matrix: +@x: +@y: + + + + + + +@matrix: +@matrix_inv: + + + + + + +@matrix: +@Returns: + + + + + + +@matrix: +@x: +@y: +@newx: +@newy: + + + + + + +@matrix: +@amount: + + + + + + +@matrix: +@theta: + + + + + + + + + + + + +@matrix: +@Returns: + diff --git a/libgimp/gimpchainbutton.c b/libgimp/gimpchainbutton.c index f233d26a47..3195b4de86 100644 --- a/libgimp/gimpchainbutton.c +++ b/libgimp/gimpchainbutton.c @@ -134,9 +134,10 @@ gimp_chain_button_get_type (void) * @position: The position you are going to use for the button * with respect to the widgets you want to chain. * - * Creates a new #GimpChainButton widget. This returns a button - * showing either a broken or a linked chain and small clamps - * attached to both sides that visually group the two widgets + * Creates a new #GimpChainButton widget. + * + * This returns a button showing either a broken or a linked chain and + * small clamps attached to both sides that visually group the two widgets * you want to connect. This widget looks best when attached * to a table taking up two columns (or rows respectively) next * to the widgets that it is supposed to connect. It may work diff --git a/libgimp/gimpcolorbutton.c b/libgimp/gimpcolorbutton.c index 39ba3e8705..804a6b9421 100644 --- a/libgimp/gimpcolorbutton.c +++ b/libgimp/gimpcolorbutton.c @@ -317,19 +317,21 @@ _gimp_color_button_new (gboolean double_color, /** * gimp_color_button_new: - * @title: String that wil be used as title for the color_selector. + * @title: String that will be used as title for the color_selector. * @width: Width of the colorpreview in pixels. * @height: Height of the colorpreview in pixels. * @color: An array of guchar holding the color (RGB or RGBA) * @bpp: May be 3 for RGB or 4 for RGBA. * - * Creates a new GimpColorbutton widget. This returns a button with - * a preview showing the color. When the button is clicked a - * GtkColorSelectionDialog is opened. If the user changes the color - * the new color is written into the array that was used to pass - * the initial color and the "color_changed" signal is emitted. + * Creates a new #GimpColorButton widget. + * + * This returns a button with a preview showing the color. + * When the button is clicked a GtkColorSelectionDialog is opened. + * If the user changes the color the new color is written into the + * array that was used to pass the initial color and the "color_changed" + * signal is emitted. * - * Returns: Pointer to the new GimpColorButton widget. + * Returns: Pointer to the new #GimpColorButton widget. */ GtkWidget * gimp_color_button_new (gchar *title, @@ -350,11 +352,13 @@ gimp_color_button_new (gchar *title, * @color: An array of gdouble holding the color (RGB or RGBA) * @bpp: May be 3 for RGB or 4 for RGBA. * - * Creates a new GimpColorbutton widget. This returns a button with - * a preview showing the color. When the button is clicked a - * GtkColorSelectionDialog is opened. If the user changes the color - * the new color is written into the array that was used to pass - * the initial color and the "color_changed" signal is emitted. + * Creates a new #GimpColorButton widget. + * + * This returns a button with a preview showing the color. + * When the button is clicked a GtkColorSelectionDialog is opened. + * If the user changes the color the new color is written into the + * array that was used to pass the initial color and the "color_changed" + * signal is emitted. * * Returns: Pointer to the new GimpColorButton widget. */ diff --git a/libgimpwidgets/gimpchainbutton.c b/libgimpwidgets/gimpchainbutton.c index f233d26a47..3195b4de86 100644 --- a/libgimpwidgets/gimpchainbutton.c +++ b/libgimpwidgets/gimpchainbutton.c @@ -134,9 +134,10 @@ gimp_chain_button_get_type (void) * @position: The position you are going to use for the button * with respect to the widgets you want to chain. * - * Creates a new #GimpChainButton widget. This returns a button - * showing either a broken or a linked chain and small clamps - * attached to both sides that visually group the two widgets + * Creates a new #GimpChainButton widget. + * + * This returns a button showing either a broken or a linked chain and + * small clamps attached to both sides that visually group the two widgets * you want to connect. This widget looks best when attached * to a table taking up two columns (or rows respectively) next * to the widgets that it is supposed to connect. It may work diff --git a/libgimpwidgets/gimpcolorbutton.c b/libgimpwidgets/gimpcolorbutton.c index 39ba3e8705..804a6b9421 100644 --- a/libgimpwidgets/gimpcolorbutton.c +++ b/libgimpwidgets/gimpcolorbutton.c @@ -317,19 +317,21 @@ _gimp_color_button_new (gboolean double_color, /** * gimp_color_button_new: - * @title: String that wil be used as title for the color_selector. + * @title: String that will be used as title for the color_selector. * @width: Width of the colorpreview in pixels. * @height: Height of the colorpreview in pixels. * @color: An array of guchar holding the color (RGB or RGBA) * @bpp: May be 3 for RGB or 4 for RGBA. * - * Creates a new GimpColorbutton widget. This returns a button with - * a preview showing the color. When the button is clicked a - * GtkColorSelectionDialog is opened. If the user changes the color - * the new color is written into the array that was used to pass - * the initial color and the "color_changed" signal is emitted. + * Creates a new #GimpColorButton widget. + * + * This returns a button with a preview showing the color. + * When the button is clicked a GtkColorSelectionDialog is opened. + * If the user changes the color the new color is written into the + * array that was used to pass the initial color and the "color_changed" + * signal is emitted. * - * Returns: Pointer to the new GimpColorButton widget. + * Returns: Pointer to the new #GimpColorButton widget. */ GtkWidget * gimp_color_button_new (gchar *title, @@ -350,11 +352,13 @@ gimp_color_button_new (gchar *title, * @color: An array of gdouble holding the color (RGB or RGBA) * @bpp: May be 3 for RGB or 4 for RGBA. * - * Creates a new GimpColorbutton widget. This returns a button with - * a preview showing the color. When the button is clicked a - * GtkColorSelectionDialog is opened. If the user changes the color - * the new color is written into the array that was used to pass - * the initial color and the "color_changed" signal is emitted. + * Creates a new #GimpColorButton widget. + * + * This returns a button with a preview showing the color. + * When the button is clicked a GtkColorSelectionDialog is opened. + * If the user changes the color the new color is written into the + * array that was used to pass the initial color and the "color_changed" + * signal is emitted. * * Returns: Pointer to the new GimpColorButton widget. */