GIMP Library Reference Manual
<<< Previous Page | Home | Up |

# gimpmenu

## Name

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);
    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        (*GimpRunPatternCallback)       (gchar *name,
                                                 gint width,
                                                 gint height,
                                                 gint bpp,
                                                 gchar *mask_data,
                                                 gboolean dialog_closing,
                                                 gpointer user_data);
    void        (*GimpRunGradientCallback)      (gchar *name,
                                                 gint width,
                                                 gdouble *grad_data,
                                                 gboolean dialog_closing,
                                                 gpointer user_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        gimp_brush_select_widget_set_popup
                                                (GtkWidget *widget,
                                                 gchar *pname,
                                                 gdouble opacity,
                                                 gint spacing,
                                                 gint paint_mode);
    void        gimp_brush_select_widget_close_popup
                                                (GtkWidget *widget);
    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        gimp_pattern_select_widget_close_popup
                                                (GtkWidget *widget);
    void        gimp_pattern_select_widget_set_popup
                                                (GtkWidget *widget,
                                                 gchar *pname);
    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        gimp_gradient_select_widget_close_popup
                                                (GtkWidget *widget);
    void        gimp_gradient_select_widget_set_popup
                                                (GtkWidget *widget,
                                                 gchar *gname);

## 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` : |

### GimpRunBrushCallback ()

    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` : |

### GimpRunPatternCallback ()

    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` : |

### GimpRunGradientCallback ()

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

`name` : |
`width` : |
`grad_data` : |
`dialog_closing` : |
`user_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
                                                (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 : |

### gimp_brush_select_widget ()

    GtkWidget*  gimp_brush_select_widget        (gchar *dname,
                                                 gchar *ibrush,
                                                 gdouble opacity,
                                                 gint spacing,
                                                 gint paint_mode,
                                                 GimpRunBrushCallback cback,
                                                 gpointer data);

`dname` : |
`ibrush` : |
`opacity` : |
`spacing` : |
`paint_mode` : |
`cback` : |
`data` : |
Returns : |

### gimp_brush_select_widget_set_popup ()

    void        gimp_brush_select_widget_set_popup
                                                (GtkWidget *widget,
                                                 gchar *pname,
                                                 gdouble opacity,
                                                 gint spacing,
                                                 gint paint_mode);

`widget` : |
`pname` : |
`opacity` : |
`spacing` : |
`paint_mode` : |

### gimp_brush_select_widget_close_popup ()

    void        gimp_brush_select_widget_close_popup
                                                (GtkWidget *widget);

`widget` : |

### gimp_interactive_selection_pattern ()

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

`dialogtitle` : |
`pattern_name` : |
`callback` : |
`data` : |
Returns : |

### gimp_pattern_select_widget ()

    GtkWidget*  gimp_pattern_select_widget      (gchar *dname,
                                                 gchar *ipattern,
                                                 GimpRunPatternCallback cback,
                                                 gpointer data);

`dname` : |
`ipattern` : |
`cback` : |
`data` : |
Returns : |

### gimp_pattern_select_widget_close_popup ()

    void        gimp_pattern_select_widget_close_popup
                                                (GtkWidget *widget);

`widget` : |

### gimp_pattern_select_widget_set_popup ()

    void        gimp_pattern_select_widget_set_popup
                                                (GtkWidget *widget,
                                                 gchar *pname);

`widget` : |
`pname` : |

### gimp_interactive_selection_gradient ()

    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 : |

### gimp_gradient_select_widget ()

    GtkWidget*  gimp_gradient_select_widget     (gchar *gname,
                                                 gchar *igradient,
                                                 GimpRunGradientCallback cback,
                                                 gpointer data);

`gname` : |
`igradient` : |
`cback` : |
`data` : |
Returns : |

### gimp_gradient_select_widget_close_popup ()

    void        gimp_gradient_select_widget_close_popup
                                                (GtkWidget *widget);

`widget` : |

### gimp_gradient_select_widget_set_popup ()

    void        gimp_gradient_select_widget_set_popup
                                                (GtkWidget *widget,
                                                 gchar *gname);

`widget` : |
`gname` : |

<<< Previous Page | Home | Up |
gimpexport |