Top |
GtkWidget * | gimp_pattern_select_button_new () |
const gchar * | gimp_pattern_select_button_get_pattern () |
void | gimp_pattern_select_button_set_pattern () |
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 |
Title of the dialog to use or |
|
pattern_name |
Initial pattern name or |
Since: 2.4
const gchar *
gimp_pattern_select_button_get_pattern
(GimpPatternSelectButton *button
);
Retrieves the name of currently selected pattern.
Since: 2.4
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
“pattern-name”
property “pattern-name” char *
The name of the currently selected pattern.
Owner: GimpPatternSelectButton
Flags: Read / Write
Default value: NULL
Since: 2.4
“title”
property “title” char *
The title to be used for the pattern selection popup dialog.
Owner: GimpPatternSelectButton
Flags: Read / Write / Construct Only
Default value: "Pattern Selection"
Since: 2.4
“pattern-set”
signalvoid user_function (GimpPatternSelectButton *widget, char *pattern_name, int width, int height, int bpp, gpointer mask_data, gboolean dialog_closing, gpointer user_data)
The ::pattern-set signal is emitted when the user selects a pattern.
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