gimpmenu

gimpmenu — Widgets and functions for selecting images, layers, brushes, patterns etc.

Synopsis




gint        (*GimpConstraintFunc)           (gint32 image_id,
                                             gint32 drawable_id,
                                             gpointer data);
void        (*GimpMenuCallback)             (gint32 any_id,
                                             gpointer data);
GtkWidget*  gimp_image_menu_new             (GimpConstraintFunc constraint,
                                             GimpMenuCallback callback,
                                             gpointer data,
                                             gint32 active_image);
GtkWidget*  gimp_layer_menu_new             (GimpConstraintFunc constraint,
                                             GimpMenuCallback callback,
                                             gpointer data,
                                             gint32 active_layer);
GtkWidget*  gimp_channel_menu_new           (GimpConstraintFunc constraint,
                                             GimpMenuCallback callback,
                                             gpointer data,
                                             gint32 active_channel);
GtkWidget*  gimp_drawable_menu_new          (GimpConstraintFunc constraint,
                                             GimpMenuCallback callback,
                                             gpointer data,
                                             gint32 active_drawable);

gchar*      gimp_interactive_selection_brush
                                            (const gchar *title,
                                             const gchar *brush_name,
                                             gdouble opacity,
                                             gint spacing,
                                             GimpLayerModeEffects paint_mode,
                                             GimpRunBrushCallback callback,
                                             gpointer data);
GtkWidget*  gimp_brush_select_widget        (const gchar *title,
                                             const gchar *brush_name,
                                             gdouble opacity,
                                             gint spacing,
                                             GimpLayerModeEffects paint_mode,
                                             GimpRunBrushCallback callback,
                                             gpointer data);
void        (*GimpRunBrushCallback)         (const gchar *name,
                                             gdouble opacity,
                                             gint spacing,
                                             GimpLayerModeEffects paint_mode,
                                             gint width,
                                             gint height,
                                             const guchar *mask_data,
                                             gboolean dialog_closing,
                                             gpointer user_data);
void        gimp_brush_select_widget_set_popup
                                            (GtkWidget *widget,
                                             const gchar *brush_name,
                                             gdouble opacity,
                                             gint spacing,
                                             GimpLayerModeEffects paint_mode);
void        gimp_brush_select_widget_close_popup
                                            (GtkWidget *widget);

gchar*      gimp_interactive_selection_font (const gchar *title,
                                             const gchar *font_name,
                                             GimpRunFontCallback callback,
                                             gpointer data);
GtkWidget*  gimp_font_select_widget         (const gchar *title,
                                             const gchar *font_name,
                                             GimpRunFontCallback callback,
                                             gpointer data);
void        (*GimpRunFontCallback)          (const gchar *name,
                                             gboolean dialog_closing,
                                             gpointer user_data);
void        gimp_font_select_widget_set_popup
                                            (GtkWidget *widget,
                                             const gchar *font_name);
void        gimp_font_select_widget_close_popup
                                            (GtkWidget *widget);

gchar*      gimp_interactive_selection_gradient
                                            (const gchar *title,
                                             const gchar *gradient_name,
                                             gint sample_size,
                                             GimpRunGradientCallback callback,
                                             gpointer data);
GtkWidget*  gimp_gradient_select_widget     (const gchar *title,
                                             const gchar *gradient_name,
                                             GimpRunGradientCallback callback,
                                             gpointer data);
void        (*GimpRunGradientCallback)      (const gchar *name,
                                             gint width,
                                             const gdouble *grad_data,
                                             gboolean dialog_closing,
                                             gpointer user_data);
void        gimp_gradient_select_widget_close_popup
                                            (GtkWidget *widget);
void        gimp_gradient_select_widget_set_popup
                                            (GtkWidget *widget,
                                             const gchar *gradient_name);

gchar*      gimp_interactive_selection_pattern
                                            (const gchar *title,
                                             const gchar *pattern_name,
                                             GimpRunPatternCallback callback,
                                             gpointer data);
GtkWidget*  gimp_pattern_select_widget      (const gchar *title,
                                             const gchar *pattern_name,
                                             GimpRunPatternCallback callback,
                                             gpointer data);
void        (*GimpRunPatternCallback)       (const gchar *name,
                                             gint width,
                                             gint height,
                                             gint bpp,
                                             const guchar *mask_data,
                                             gboolean dialog_closing,
                                             gpointer user_data);
void        gimp_pattern_select_widget_close_popup
                                            (GtkWidget *widget);
void        gimp_pattern_select_widget_set_popup
                                            (GtkWidget *widget,
                                             const gchar *pattern_name);

Description

Details

GimpConstraintFunc ()

gint        (*GimpConstraintFunc)           (gint32 image_id,
                                             gint32 drawable_id,
                                             gpointer data);

image_id :
drawable_id :
data :
Returns :

GimpMenuCallback ()

void        (*GimpMenuCallback)             (gint32 any_id,
                                             gpointer data);

any_id :
data :

gimp_image_menu_new ()

GtkWidget*  gimp_image_menu_new             (GimpConstraintFunc constraint,
                                             GimpMenuCallback callback,
                                             gpointer data,
                                             gint32 active_image);

constraint :
callback :
data :
active_image :
Returns :

gimp_layer_menu_new ()

GtkWidget*  gimp_layer_menu_new             (GimpConstraintFunc constraint,
                                             GimpMenuCallback callback,
                                             gpointer data,
                                             gint32 active_layer);

constraint :
callback :
data :
active_layer :
Returns :

gimp_channel_menu_new ()

GtkWidget*  gimp_channel_menu_new           (GimpConstraintFunc constraint,
                                             GimpMenuCallback callback,
                                             gpointer data,
                                             gint32 active_channel);

constraint :
callback :
data :
active_channel :
Returns :

gimp_drawable_menu_new ()

GtkWidget*  gimp_drawable_menu_new          (GimpConstraintFunc constraint,
                                             GimpMenuCallback callback,
                                             gpointer data,
                                             gint32 active_drawable);

constraint :
callback :
data :
active_drawable :
Returns :

gimp_interactive_selection_brush ()

gchar*      gimp_interactive_selection_brush
                                            (const gchar *title,
                                             const gchar *brush_name,
                                             gdouble opacity,
                                             gint spacing,
                                             GimpLayerModeEffects paint_mode,
                                             GimpRunBrushCallback callback,
                                             gpointer data);

title :
brush_name :
opacity :
spacing :
paint_mode :
callback :
data :
Returns :

gimp_brush_select_widget ()

GtkWidget*  gimp_brush_select_widget        (const gchar *title,
                                             const gchar *brush_name,
                                             gdouble opacity,
                                             gint spacing,
                                             GimpLayerModeEffects paint_mode,
                                             GimpRunBrushCallback callback,
                                             gpointer data);

Creates a new GtkWidget that completely controls the selection of a GimpBrush. This widget is suitable for placement in a table in a plug-in dialog.

title : Title of the dialog to use or NULL to use the default title.
brush_name : Initial brush name or NULL to use current selection.
opacity : Initial opacity. -1 means to use current opacity.
spacing : Initial spacing. -1 means to use current spacing.
paint_mode : Initial paint mode. -1 means to use current paint mode.
callback : a function to call when the selected brush changes.
data : a pointer to arbitary data to be used in the call to callback.
Returns : A GtkWidget that you can use in your UI.

GimpRunBrushCallback ()

void        (*GimpRunBrushCallback)         (const gchar *name,
                                             gdouble opacity,
                                             gint spacing,
                                             GimpLayerModeEffects paint_mode,
                                             gint width,
                                             gint height,
                                             const guchar *mask_data,
                                             gboolean dialog_closing,
                                             gpointer user_data);

name :
opacity :
spacing :
paint_mode :
width :
height :
mask_data :
dialog_closing :
user_data :

gimp_brush_select_widget_set_popup ()

void        gimp_brush_select_widget_set_popup
                                            (GtkWidget *widget,
                                             const gchar *brush_name,
                                             gdouble opacity,
                                             gint spacing,
                                             GimpLayerModeEffects paint_mode);

Sets the current brush and other values for the brush select widget. Calls the callback function if one was supplied in the call to gimp_brush_select_widget().

widget : A brush select widget.
brush_name : Brush name to set; NULL means no change.
opacity : Opacity to set. -1 means no change.
spacing : Spacing to set. -1 means no change.
paint_mode : Paint mode to set. -1 means no change.

gimp_brush_select_widget_close_popup ()

void        gimp_brush_select_widget_close_popup
                                            (GtkWidget *widget);

Closes the popup window associated with widget.

widget : A brush select widget.

gimp_interactive_selection_font ()

gchar*      gimp_interactive_selection_font (const gchar *title,
                                             const gchar *font_name,
                                             GimpRunFontCallback callback,
                                             gpointer data);

title :
font_name :
callback :
data :
Returns :

gimp_font_select_widget ()

GtkWidget*  gimp_font_select_widget         (const gchar *title,
                                             const gchar *font_name,
                                             GimpRunFontCallback callback,
                                             gpointer data);

Creates a new GtkWidget that completely controls the selection of a font. This widget is suitable for placement in a table in a plug-in dialog.

title : Title of the dialog to use or NULL means to use the default title.
font_name : Initial font name.
callback : a function to call when the selected font changes.
data : a pointer to arbitary data to be used in the call to callback.
Returns :A GtkWidget that you can use in your UI.

GimpRunFontCallback ()

void        (*GimpRunFontCallback)          (const gchar *name,
                                             gboolean dialog_closing,
                                             gpointer user_data);

name :
dialog_closing :
user_data :

gimp_font_select_widget_set_popup ()

void        gimp_font_select_widget_set_popup
                                            (GtkWidget *widget,
                                             const gchar *font_name);

Sets the current font for the font select widget. Calls the callback function if one was supplied in the call to gimp_font_select_widget().

widget : A font select widget.
font_name : Font name to set; NULL means no change.

gimp_font_select_widget_close_popup ()

void        gimp_font_select_widget_close_popup
                                            (GtkWidget *widget);

Closes the popup window associated with widget.

widget : A font select widget.

gimp_interactive_selection_gradient ()

gchar*      gimp_interactive_selection_gradient
                                            (const gchar *title,
                                             const gchar *gradient_name,
                                             gint sample_size,
                                             GimpRunGradientCallback callback,
                                             gpointer data);

title :
gradient_name :
sample_size :
callback :
data :
Returns :

gimp_gradient_select_widget ()

GtkWidget*  gimp_gradient_select_widget     (const gchar *title,
                                             const gchar *gradient_name,
                                             GimpRunGradientCallback callback,
                                             gpointer data);

Creates a new GtkWidget that completely controls the selection of a gradient. This widget is suitable for placement in a table in a plug-in dialog.

title : Title of the dialog to use or NULL to use the default title.
gradient_name : Initial gradient name or NULL to use current selection.
callback : a function to call when the selected gradient changes.
data : a pointer to arbitary data to be used in the call to callback.
Returns :A GtkWidget that you can use in your UI.

GimpRunGradientCallback ()

void        (*GimpRunGradientCallback)      (const gchar *name,
                                             gint width,
                                             const gdouble *grad_data,
                                             gboolean dialog_closing,
                                             gpointer user_data);

name :
width :
grad_data :
dialog_closing :
user_data :

gimp_gradient_select_widget_close_popup ()

void        gimp_gradient_select_widget_close_popup
                                            (GtkWidget *widget);

Closes the popup window associated with widget.

widget : A gradient select widget.

gimp_gradient_select_widget_set_popup ()

void        gimp_gradient_select_widget_set_popup
                                            (GtkWidget *widget,
                                             const gchar *gradient_name);

Sets the current gradient for the gradient select widget. Calls the callback function if one was supplied in the call to gimp_gradient_select_widget().

widget : A gradient select widget.
gradient_name : gradient name to set.

gimp_interactive_selection_pattern ()

gchar*      gimp_interactive_selection_pattern
                                            (const gchar *title,
                                             const gchar *pattern_name,
                                             GimpRunPatternCallback callback,
                                             gpointer data);

title :
pattern_name :
callback :
data :
Returns :

gimp_pattern_select_widget ()

GtkWidget*  gimp_pattern_select_widget      (const gchar *title,
                                             const gchar *pattern_name,
                                             GimpRunPatternCallback callback,
                                             gpointer data);

Creates a new GtkWidget that completely controls the selection of a pattern. This widget is suitable for placement in a table in a plug-in dialog.

title : Title of the dialog to use or NULL to use the default title.
pattern_name : Initial pattern name or NULL to use current selection.
callback : a function to call when the selected pattern changes.
data : a pointer to arbitary data to be used in the call to callback.
Returns :A GtkWidget that you can use in your UI.

GimpRunPatternCallback ()

void        (*GimpRunPatternCallback)       (const gchar *name,
                                             gint width,
                                             gint height,
                                             gint bpp,
                                             const guchar *mask_data,
                                             gboolean dialog_closing,
                                             gpointer user_data);

name :
width :
height :
bpp :
mask_data :
dialog_closing :
user_data :

gimp_pattern_select_widget_close_popup ()

void        gimp_pattern_select_widget_close_popup
                                            (GtkWidget *widget);

Closes the popup window associated with widget.

widget : A pattern select widget.

gimp_pattern_select_widget_set_popup ()

void        gimp_pattern_select_widget_set_popup
                                            (GtkWidget *widget,
                                             const gchar *pattern_name);

Sets the current pattern for the pattern select widget. Calls the callback function if one was supplied in the call to gimp_pattern_select_widget().

widget : A pattern select widget.
pattern_name : Pattern name to set. NULL means no change.