GIMP Library Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
GimpGradientSelectButtonGimpGradientSelectButton — A button which pops up a gradient select dialog. |
GimpGradientSelectButton; GtkWidget * gimp_gradient_select_button_new (const gchar *title
,const gchar *gradient_name
); const gchar * gimp_gradient_select_button_get_gradient (GimpGradientSelectButton *button
); void gimp_gradient_select_button_set_gradient (GimpGradientSelectButton *button
,const gchar *gradient_name
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GimpSelectButton +----GimpGradientSelectButton
GimpGradientSelectButton implements AtkImplementorIface, GtkBuildable and GtkOrientable.
GtkWidget * gimp_gradient_select_button_new (const gchar *title
,const gchar *gradient_name
);
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 of the dialog to use or NULL to use the default title. |
|
Initial gradient name. |
Returns : |
A GtkWidget that you can use in your UI. |
Since GIMP 2.4
const gchar * gimp_gradient_select_button_get_gradient
(GimpGradientSelectButton *button
);
Retrieves the name of currently selected gradient.
|
A GimpGradientSelectButton |
Returns : |
an internal copy of the gradient name which must not be freed. |
Since GIMP 2.4
void gimp_gradient_select_button_set_gradient (GimpGradientSelectButton *button
,const gchar *gradient_name
);
Sets the current gradient for the gradient select button.
|
A GimpGradientSelectButton |
|
Gradient name to set. |
Since GIMP 2.4
"gradient-name"
property "gradient-name" gchar* : Read / Write
The name of the currently selected gradient.
Default value: NULL
Since GIMP 2.4
"gradient-set"
signalvoid user_function (GimpGradientSelectButton *widget,
gchar *gradient_name,
gint width,
gpointer grad_data,
gboolean dialog_closing,
gpointer user_data) : Run First
The ::gradient-set signal is emitted when the user selects a gradient.
|
the object which received the signal. |
|
the name of the currently selected gradient. |
|
width of the gradient |
|
gradient data |
|
whether the dialog was closed or not. |
|
user data set when the signal handler was connected. |
Since GIMP 2.4