Top |
Object Hierarchy
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GimpSelectButton ╰── GimpPatternSelectButton
Implemented Interfaces
GimpPatternSelectButton implements AtkImplementorIface, GtkBuildable and GtkOrientable.
Functions
gimp_pattern_select_button_new ()
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.
Since: 2.4
gimp_pattern_select_button_get_pattern ()
const gchar *
gimp_pattern_select_button_get_pattern
(GimpPatternSelectButton *button
);
Retrieves the name of currently selected pattern.
Since: 2.4
gimp_pattern_select_button_set_pattern ()
void gimp_pattern_select_button_set_pattern (GimpPatternSelectButton *button
,const gchar *pattern_name
);
Sets the current pattern for the pattern select button.
Since: 2.4
Property Details
The “pattern-name”
property
“pattern-name” gchar *
The name of the currently selected pattern.
Owner: GimpPatternSelectButton
Flags: Read / Write
Default value: NULL
Since: 2.4
Signal Details
The “pattern-set”
signal
void user_function (GimpPatternSelectButton *widget, gchar *pattern_name, gint width, gint height, gint bpp, gpointer mask_data, gboolean dialog_closing, gpointer user_data)
The ::pattern-set signal is emitted when the user selects a pattern.
Parameters
widget |
the object which received the signal. |
|
pattern_name |
the name of the currently selected pattern. |
|
width |
width of the pattern |
|
height |
height of the pattern |
|
bpp |
bpp of the pattern |
|
mask_data |
pattern mask data |
|
dialog_closing |
whether the dialog was closed or not. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 2.4