![]() |
![]() |
![]() |
GIMP Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
GimpPatternSelectButton; GtkWidget * gimp_pattern_select_button_new (const gchar *title
,const gchar *pattern_name
); const gchar * gimp_pattern_select_button_get_pattern (GimpPatternSelectButton *button
); void gimp_pattern_select_button_set_pattern (GimpPatternSelectButton *button
,const gchar *pattern_name
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GimpSelectButton +----GimpPatternSelectButton
GimpPatternSelectButton implements AtkImplementorIface, GtkBuildable and GtkOrientable.
GtkWidget * gimp_pattern_select_button_new (const gchar *title
,const gchar *pattern_name
);
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 of the dialog to use or NULL to use the default title. |
|
Initial pattern name or NULL to use current selection. |
Returns : |
A GtkWidget that you can use in your UI. |
Since GIMP 2.4
const gchar * gimp_pattern_select_button_get_pattern
(GimpPatternSelectButton *button
);
Retrieves the name of currently selected pattern.
|
A GimpPatternSelectButton |
Returns : |
an internal copy of the pattern name which must not be freed. |
Since GIMP 2.4
void gimp_pattern_select_button_set_pattern (GimpPatternSelectButton *button
,const gchar *pattern_name
);
Sets the current pattern for the pattern select button.
|
A GimpPatternSelectButton |
|
Pattern name to set; NULL means no change. |
Since GIMP 2.4
"pattern-name"
property "pattern-name" gchar* : Read / Write
The name of the currently selected pattern.
Default value: NULL
Since GIMP 2.4
"pattern-set"
signalvoid user_function (GimpPatternSelectButton *widget,
gchar *pattern_name,
gint width,
gint height,
gint bpp,
gpointer mask_data,
gboolean dialog_closing,
gpointer user_data) : Run First
The ::pattern-set signal is emitted when the user selects a pattern.
|
the object which received the signal. |
|
the name of the currently selected pattern. |
|
width of the pattern |
|
height of the pattern |
|
bpp of the pattern |
|
pattern mask data |
|
whether the dialog was closed or not. |
|
user data set when the signal handler was connected. |
Since GIMP 2.4