![]() | ![]() | ![]() | 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 (gchar *dialogname,gchar *brush_name,gdouble opacity,gint spacing,gint paint_mode, GimpRunBrushCallback callback,gpointer data);GtkWidget * gimp_brush_select_widget (gchar *dname,gchar *ibrush,gdouble opacity,gint spacing,gint paint_mode, GimpRunBrushCallback cback,gpointer data); void (*GimpRunBrushCallback) (gchar *name,gdouble opacity,gint spacing,gint paint_mode,gint width,gint height,gchar *mask_data,gboolean dialog_closing,gpointer user_data); void gimp_brush_select_widget_set_popup (GtkWidget *widget,gchar *bname,gdouble opacity,gint spacing,gint paint_mode); void gimp_brush_select_widget_close_popup (GtkWidget *widget);gchar * gimp_interactive_selection_font (gchar *dialogtitle,gchar *font_name, GimpRunFontCallback callback,gpointer data);GtkWidget * gimp_font_select_widget (gchar *dname,gchar *ifont, GimpRunFontCallback cback,gpointer data); void (*GimpRunFontCallback) (gchar *name,gboolean dialog_closing,gpointer user_data); void gimp_font_select_widget_set_popup (GtkWidget *widget,gchar *fname); void gimp_font_select_widget_close_popup (GtkWidget *widget);gchar * gimp_interactive_selection_gradient (gchar *dialogtitle,gchar *gradient_name,gint sample_sz, GimpRunGradientCallback callback,gpointer data);GtkWidget * gimp_gradient_select_widget (gchar *gname,gchar *igradient, GimpRunGradientCallback cback,gpointer data); void (*GimpRunGradientCallback) (gchar *name,gint width,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,gchar *gname);gchar * gimp_interactive_selection_pattern (gchar *dialogtitle,gchar *pattern_name, GimpRunPatternCallback callback,gpointer data);GtkWidget * gimp_pattern_select_widget (gchar *dname,gchar *ipattern, GimpRunPatternCallback cback,gpointer data); void (*GimpRunPatternCallback) (gchar *name,gint width,gint height,gint bpp,gchar *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,gchar *pname);
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 (gchar *dialogname,gchar *brush_name,gdouble opacity,gint spacing,gint paint_mode, GimpRunBrushCallback callback,gpointer data);
dialogname : | |
brush_name : | |
opacity : | |
spacing : | |
paint_mode : | |
callback : | |
data : | |
Returns : |
GtkWidget * gimp_brush_select_widget (gchar *dname,gchar *ibrush,gdouble opacity,gint spacing,gint paint_mode, GimpRunBrushCallback cback,gpointer data);
Creates a new
dname : | Title of the dialog to use. NULL means to use the default title. |
ibrush : | Initial brush name. NULL means 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. |
cback : | a function to call when the selected brush changes. |
data : | a pointer to arbitary data to be used in the call to cback. |
Returns : | A |
void (*GimpRunBrushCallback) (gchar *name,gdouble opacity,gint spacing,gint paint_mode,gint width,gint height,gchar *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,gchar *bname,gdouble opacity,gint spacing,gint 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. |
bname : | 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 (gchar *dialogtitle,gchar *font_name, GimpRunFontCallback callback,gpointer data);
dialogtitle : | |
font_name : | |
callback : | |
data : | |
Returns : |
GtkWidget * gimp_font_select_widget (gchar *dname,gchar *ifont, GimpRunFontCallback cback,gpointer data);
Creates a new
dname : | Title of the dialog to use. NULL means to use the default title. |
ifont : | Initial font name. NULL means to use current selection. |
cback : | a function to call when the selected font changes. |
data : | a pointer to arbitary data to be used in the call to cback. |
Returns : | A |
void (*GimpRunFontCallback) (gchar *name,gboolean dialog_closing,gpointer user_data);
name : | |
dialog_closing : | |
user_data : |
void gimp_font_select_widget_set_popup (GtkWidget *widget,gchar *fname);
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. |
fname : | 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 (gchar *dialogtitle,gchar *gradient_name,gint sample_sz, GimpRunGradientCallback callback,gpointer data);
dialogtitle : | |
gradient_name : | |
sample_sz : | |
callback : | |
data : | |
Returns : |
GtkWidget * gimp_gradient_select_widget (gchar *gname,gchar *igradient, GimpRunGradientCallback cback,gpointer data);
Creates a new
gname : | Title of the dialog to use. NULL means to use the default title. |
igradient : | Initial gradient name. NULL means to use current selection. |
cback : | a function to call when the selected gradient changes. |
data : | a pointer to arbitary data to be used in the call to cback. |
Returns : | A |
void (*GimpRunGradientCallback) (gchar *name,gint width,gdouble *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,gchar *gname);
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. |
gname : | gradient name to set. |
gchar * gimp_interactive_selection_pattern (gchar *dialogtitle,gchar *pattern_name, GimpRunPatternCallback callback,gpointer data);
dialogtitle : | |
pattern_name : | |
callback : | |
data : | |
Returns : |
GtkWidget * gimp_pattern_select_widget (gchar *dname,gchar *ipattern, GimpRunPatternCallback cback,gpointer data);
Creates a new
dname : | Title of the dialog to use. NULL means to use the default title. |
ipattern : | Initial pattern name. NULL means to use current selection. |
cback : | a function to call when the selected pattern changes. |
data : | a pointer to arbitary data to be used in the call to cback. |
Returns : | A |
void (*GimpRunPatternCallback) (gchar *name,gint width,gint height,gint bpp,gchar *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,gchar *pname);
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. |
pname : | Pattern name to set. NULL means no change. |
<< gimpexport |