![]() | ![]() | ![]() | GIMP Library Reference Manual |
---|
gimpmenu — Widgets and functions for selecting images, layers, brushes, patterns etc.
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 (constgchar *title, constgchar *brush_name,gdouble opacity,gint spacing, GimpLayerModeEffects paint_mode, GimpRunBrushCallback callback,gpointer data);GtkWidget * gimp_brush_select_widget (constgchar *title, constgchar *brush_name,gdouble opacity,gint spacing, GimpLayerModeEffects paint_mode, GimpRunBrushCallback callback,gpointer data); void (*GimpRunBrushCallback) (constgchar *name,gdouble opacity,gint spacing, GimpLayerModeEffects paint_mode,gint width,gint height, constguchar *mask_data,gboolean dialog_closing,gpointer user_data); void gimp_brush_select_widget_set_popup (GtkWidget *widget, constgchar *brush_name,gdouble opacity,gint spacing, GimpLayerModeEffects paint_mode); void gimp_brush_select_widget_close_popup (GtkWidget *widget);gchar * gimp_interactive_selection_font (constgchar *title, constgchar *font_name, GimpRunFontCallback callback,gpointer data);GtkWidget * gimp_font_select_widget (constgchar *title, constgchar *font_name, GimpRunFontCallback callback,gpointer data); void (*GimpRunFontCallback) (constgchar *name,gboolean dialog_closing,gpointer user_data); void gimp_font_select_widget_set_popup (GtkWidget *widget, constgchar *font_name); void gimp_font_select_widget_close_popup (GtkWidget *widget);gchar * gimp_interactive_selection_gradient (constgchar *title, constgchar *gradient_name,gint sample_size, GimpRunGradientCallback callback,gpointer data);GtkWidget * gimp_gradient_select_widget (constgchar *title, constgchar *gradient_name, GimpRunGradientCallback callback,gpointer data); void (*GimpRunGradientCallback) (constgchar *name,gint width, constgdouble *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, constgchar *gradient_name);gchar * gimp_interactive_selection_pattern (constgchar *title, constgchar *pattern_name, GimpRunPatternCallback callback,gpointer data);GtkWidget * gimp_pattern_select_widget (constgchar *title, constgchar *pattern_name, GimpRunPatternCallback callback,gpointer data); void (*GimpRunPatternCallback) (constgchar *name,gint width,gint height,gint bpp, constguchar *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, constgchar *pattern_name);
gint (*GimpConstraintFunc) (gint32 image_id,gint32 drawable_id,gpointer data);
image_id : | |
drawable_id : | |
data : | |
Returns : |
GtkWidget * gimp_image_menu_new (GimpConstraintFunc constraint, GimpMenuCallback callback,gpointer data,gint32 active_image);
constraint : | |
callback : | |
data : | |
active_image : | |
Returns : |
GtkWidget * gimp_layer_menu_new (GimpConstraintFunc constraint, GimpMenuCallback callback,gpointer data,gint32 active_layer);
constraint : | |
callback : | |
data : | |
active_layer : | |
Returns : |
GtkWidget * gimp_channel_menu_new (GimpConstraintFunc constraint, GimpMenuCallback callback,gpointer data,gint32 active_channel);
constraint : | |
callback : | |
data : | |
active_channel : | |
Returns : |
GtkWidget * gimp_drawable_menu_new (GimpConstraintFunc constraint, GimpMenuCallback callback,gpointer data,gint32 active_drawable);
constraint : | |
callback : | |
data : | |
active_drawable : | |
Returns : |
gchar * gimp_interactive_selection_brush (constgchar *title, constgchar *brush_name,gdouble opacity,gint spacing, GimpLayerModeEffects paint_mode, GimpRunBrushCallback callback,gpointer data);
title : | |
brush_name : | |
opacity : | |
spacing : | |
paint_mode : | |
callback : | |
data : | |
Returns : |
GtkWidget * gimp_brush_select_widget (constgchar *title, constgchar *brush_name,gdouble opacity,gint spacing, GimpLayerModeEffects paint_mode, GimpRunBrushCallback callback,gpointer data);
Creates a new
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 |
void (*GimpRunBrushCallback) (constgchar *name,gdouble opacity,gint spacing, GimpLayerModeEffects paint_mode,gint width,gint height, constguchar *mask_data,gboolean dialog_closing,gpointer user_data);
name : | |
opacity : | |
spacing : | |
paint_mode : | |
width : | |
height : | |
mask_data : | |
dialog_closing : | |
user_data : |
void gimp_brush_select_widget_set_popup (GtkWidget *widget, constgchar *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. |
void gimp_brush_select_widget_close_popup (GtkWidget *widget);
Closes the popup window associated with widget.
widget : | A brush select widget. |
gchar * gimp_interactive_selection_font (constgchar *title, constgchar *font_name, GimpRunFontCallback callback,gpointer data);
title : | |
font_name : | |
callback : | |
data : | |
Returns : |
GtkWidget * gimp_font_select_widget (constgchar *title, constgchar *font_name, GimpRunFontCallback callback,gpointer data);
Creates a new
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 |
void (*GimpRunFontCallback) (constgchar *name,gboolean dialog_closing,gpointer user_data);
name : | |
dialog_closing : | |
user_data : |
void gimp_font_select_widget_set_popup (GtkWidget *widget, constgchar *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. |
void gimp_font_select_widget_close_popup (GtkWidget *widget);
Closes the popup window associated with widget.
widget : | A font select widget. |
gchar * gimp_interactive_selection_gradient (constgchar *title, constgchar *gradient_name,gint sample_size, GimpRunGradientCallback callback,gpointer data);
title : | |
gradient_name : | |
sample_size : | |
callback : | |
data : | |
Returns : |
GtkWidget * gimp_gradient_select_widget (constgchar *title, constgchar *gradient_name, GimpRunGradientCallback callback,gpointer data);
Creates a new
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 |
void (*GimpRunGradientCallback) (constgchar *name,gint width, constgdouble *grad_data,gboolean dialog_closing,gpointer user_data);
name : | |
width : | |
grad_data : | |
dialog_closing : | |
user_data : |
void gimp_gradient_select_widget_close_popup (GtkWidget *widget);
Closes the popup window associated with widget.
widget : | A gradient select widget. |
void gimp_gradient_select_widget_set_popup (GtkWidget *widget, constgchar *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. |
gchar * gimp_interactive_selection_pattern (constgchar *title, constgchar *pattern_name, GimpRunPatternCallback callback,gpointer data);
title : | |
pattern_name : | |
callback : | |
data : | |
Returns : |
GtkWidget * gimp_pattern_select_widget (constgchar *title, constgchar *pattern_name, GimpRunPatternCallback callback,gpointer data);
Creates a new
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 |
void (*GimpRunPatternCallback) (constgchar *name,gint width,gint height,gint bpp, constguchar *mask_data,gboolean dialog_closing,gpointer user_data);
name : | |
width : | |
height : | |
bpp : | |
mask_data : | |
dialog_closing : | |
user_data : |
void gimp_pattern_select_widget_close_popup (GtkWidget *widget);
Closes the popup window associated with widget.
widget : | A pattern select widget. |
void gimp_pattern_select_widget_set_popup (GtkWidget *widget, constgchar *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. |
<< gimpexport |