1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
5
<refentry id="GimpPatternSelectButton">
7
<refentrytitle role="top_of_page" id="GimpPatternSelectButton.top_of_page">GimpPatternSelectButton</refentrytitle>
8
<manvolnum>3</manvolnum>
9
<refmiscinfo>LIBGIMP Library</refmiscinfo>
13
<refname>GimpPatternSelectButton</refname>
14
<refpurpose></refpurpose>
17
<refsynopsisdiv id="GimpPatternSelectButton.synopsis" role="synopsis">
18
<title role="synopsis.title">Synopsis</title>
21
<link linkend="GimpPatternSelectButton-struct">GimpPatternSelectButton</link>;
22
<link linkend="GtkWidget">GtkWidget</link> * <link linkend="gimp-pattern-select-button-new">gimp_pattern_select_button_new</link> (const <link linkend="gchar">gchar</link> *title,
23
const <link linkend="gchar">gchar</link> *pattern_name);
24
const <link linkend="gchar">gchar</link> * <link linkend="gimp-pattern-select-button-get-pattern">gimp_pattern_select_button_get_pattern</link>
25
(<link linkend="GimpPatternSelectButton">GimpPatternSelectButton</link> *button);
26
<link linkend="void">void</link> <link linkend="gimp-pattern-select-button-set-pattern">gimp_pattern_select_button_set_pattern</link>
27
(<link linkend="GimpPatternSelectButton">GimpPatternSelectButton</link> *button,
28
const <link linkend="gchar">gchar</link> *pattern_name);
32
<refsect1 id="GimpPatternSelectButton.object-hierarchy" role="object_hierarchy">
33
<title role="object_hierarchy.title">Object Hierarchy</title>
35
<link linkend="GObject">GObject</link>
36
+----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
37
+----<link linkend="GtkObject">GtkObject</link>
38
+----<link linkend="GtkWidget">GtkWidget</link>
39
+----<link linkend="GtkContainer">GtkContainer</link>
40
+----<link linkend="GtkBox">GtkBox</link>
41
+----<link linkend="GtkHBox">GtkHBox</link>
42
+----<link linkend="GimpSelectButton">GimpSelectButton</link>
43
+----GimpPatternSelectButton
49
<refsect1 id="GimpPatternSelectButton.implemented-interfaces" role="impl_interfaces">
50
<title role="impl_interfaces.title">Implemented Interfaces</title>
52
GimpPatternSelectButton implements
53
<link linkend="GtkBuildable">GtkBuildable</link>, <link linkend="AtkImplementorIface">AtkImplementorIface</link> and <link linkend="GtkOrientable">GtkOrientable</link>.</para>
57
<refsect1 id="GimpPatternSelectButton.properties" role="properties">
58
<title role="properties.title">Properties</title>
60
"<link linkend="GimpPatternSelectButton--pattern-name">pattern-name</link>" <link linkend="gchar">gchar</link>* : Read / Write
61
"<link linkend="GimpPatternSelectButton--title">title</link>" <link linkend="gchar">gchar</link>* : Read / Write / Construct Only
65
<refsect1 id="GimpPatternSelectButton.signals" role="signal_proto">
66
<title role="signal_proto.title">Signals</title>
68
"<link linkend="GimpPatternSelectButton-pattern-set">pattern-set</link>" : Run First
73
<refsect1 id="GimpPatternSelectButton.description" role="desc">
74
<title role="desc.title">Description</title>
79
<refsect1 id="GimpPatternSelectButton.details" role="details">
80
<title role="details.title">Details</title>
81
<refsect2 id="GimpPatternSelectButton-struct" role="struct">
82
<title>GimpPatternSelectButton</title>
83
<indexterm zone="GimpPatternSelectButton-struct"><primary sortas="GimpPatternSelectButton">GimpPatternSelectButton</primary></indexterm><programlisting>typedef struct _GimpPatternSelectButton GimpPatternSelectButton;</programlisting>
86
<refsect2 id="gimp-pattern-select-button-new" role="function" condition="since:GIMP 2.4">
87
<title>gimp_pattern_select_button_new ()</title>
88
<indexterm zone="gimp-pattern-select-button-new" role="GIMP 2.4"><primary sortas="gimp_pattern_select_button_new">gimp_pattern_select_button_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link> * gimp_pattern_select_button_new (const <link linkend="gchar">gchar</link> *title,
89
const <link linkend="gchar">gchar</link> *pattern_name);</programlisting>
91
Creates a new <link linkend="GtkWidget"><type>GtkWidget</type></link> that completely controls the selection of
92
a pattern. This widget is suitable for placement in a table in a
93
plug-in dialog.</para>
95
</para><variablelist role="params">
96
<varlistentry><term><parameter>title</parameter> :</term>
97
<listitem><simpara> Title of the dialog to use or <link linkend="NULL--CAPS"><literal>NULL</literal></link> to use the default title.
98
</simpara></listitem></varlistentry>
99
<varlistentry><term><parameter>pattern_name</parameter> :</term>
100
<listitem><simpara> Initial pattern name or <link linkend="NULL--CAPS"><literal>NULL</literal></link> to use current selection.
101
</simpara></listitem></varlistentry>
102
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> A <link linkend="GtkWidget"><type>GtkWidget</type></link> that you can use in your UI.
104
</simpara></listitem></varlistentry>
105
</variablelist><para role="since">Since GIMP 2.4</para></refsect2>
106
<refsect2 id="gimp-pattern-select-button-get-pattern" role="function" condition="since:GIMP 2.4">
107
<title>gimp_pattern_select_button_get_pattern ()</title>
108
<indexterm zone="gimp-pattern-select-button-get-pattern" role="GIMP 2.4"><primary sortas="gimp_pattern_select_button_get_pattern">gimp_pattern_select_button_get_pattern</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> * gimp_pattern_select_button_get_pattern
109
(<link linkend="GimpPatternSelectButton">GimpPatternSelectButton</link> *button);</programlisting>
111
Retrieves the name of currently selected pattern.</para>
113
</para><variablelist role="params">
114
<varlistentry><term><parameter>button</parameter> :</term>
115
<listitem><simpara> A <link linkend="GimpPatternSelectButton"><type>GimpPatternSelectButton</type></link>
116
</simpara></listitem></varlistentry>
117
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> an internal copy of the pattern name which must not be freed.
119
</simpara></listitem></varlistentry>
120
</variablelist><para role="since">Since GIMP 2.4</para></refsect2>
121
<refsect2 id="gimp-pattern-select-button-set-pattern" role="function" condition="since:GIMP 2.4">
122
<title>gimp_pattern_select_button_set_pattern ()</title>
123
<indexterm zone="gimp-pattern-select-button-set-pattern" role="GIMP 2.4"><primary sortas="gimp_pattern_select_button_set_pattern">gimp_pattern_select_button_set_pattern</primary></indexterm><programlisting><link linkend="void">void</link> gimp_pattern_select_button_set_pattern
124
(<link linkend="GimpPatternSelectButton">GimpPatternSelectButton</link> *button,
125
const <link linkend="gchar">gchar</link> *pattern_name);</programlisting>
127
Sets the current pattern for the pattern select button.</para>
129
</para><variablelist role="params">
130
<varlistentry><term><parameter>button</parameter> :</term>
131
<listitem><simpara> A <link linkend="GimpPatternSelectButton"><type>GimpPatternSelectButton</type></link>
132
</simpara></listitem></varlistentry>
133
<varlistentry><term><parameter>pattern_name</parameter> :</term>
134
<listitem><simpara> Pattern name to set; <link linkend="NULL--CAPS"><literal>NULL</literal></link> means no change.
135
</simpara></listitem></varlistentry>
136
</variablelist><para role="since">Since GIMP 2.4</para></refsect2>
139
<refsect1 id="GimpPatternSelectButton.property-details" role="property_details">
140
<title role="property_details.title">Property Details</title>
141
<refsect2 id="GimpPatternSelectButton--pattern-name" role="property"><title>The <literal>"pattern-name"</literal> property</title>
142
<indexterm zone="GimpPatternSelectButton--pattern-name" role="GIMP 2.4"><primary sortas="GimpPatternSelectButton:pattern-name">GimpPatternSelectButton:pattern-name</primary></indexterm><programlisting> "pattern-name" <link linkend="gchar">gchar</link>* : Read / Write</programlisting>
144
The name of the currently selected pattern.</para>
146
</para><para>Default value: NULL</para>
147
<para>Since GIMP 2.4</para>
149
<refsect2 id="GimpPatternSelectButton--title" role="property"><title>The <literal>"title"</literal> property</title>
150
<indexterm zone="GimpPatternSelectButton--title" role="GIMP 2.4"><primary sortas="GimpPatternSelectButton:title">GimpPatternSelectButton:title</primary></indexterm><programlisting> "title" <link linkend="gchar">gchar</link>* : Read / Write / Construct Only</programlisting>
152
The title to be used for the pattern selection popup dialog.</para>
154
</para><para>Default value: "Pattern Selection"</para>
155
<para>Since GIMP 2.4</para>
159
<refsect1 id="GimpPatternSelectButton.signal-details" role="signals">
160
<title role="signals.title">Signal Details</title>
161
<refsect2 id="GimpPatternSelectButton-pattern-set" role="signal"><title>The <literal>"pattern-set"</literal> signal</title>
162
<indexterm zone="GimpPatternSelectButton-pattern-set" role="GIMP 2.4"><primary sortas="GimpPatternSelectButton::pattern-set">GimpPatternSelectButton::pattern-set</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GimpPatternSelectButton">GimpPatternSelectButton</link> *widget,
163
<link linkend="gchar">gchar</link> *pattern_name,
164
<link linkend="gint">gint</link> width,
165
<link linkend="gint">gint</link> height,
166
<link linkend="gint">gint</link> bpp,
167
<link linkend="gpointer">gpointer</link> mask_data,
168
<link linkend="gboolean">gboolean</link> dialog_closing,
169
<link linkend="gpointer">gpointer</link> user_data) : Run First</programlisting>
171
The ::pattern-set signal is emitted when the user selects a pattern.</para>
173
</para><variablelist role="params">
174
<varlistentry><term><parameter>widget</parameter> :</term>
175
<listitem><simpara> the object which received the signal.
176
</simpara></listitem></varlistentry>
177
<varlistentry><term><parameter>pattern_name</parameter> :</term>
178
<listitem><simpara> the name of the currently selected pattern.
179
</simpara></listitem></varlistentry>
180
<varlistentry><term><parameter>width</parameter> :</term>
181
<listitem><simpara> width of the pattern
182
</simpara></listitem></varlistentry>
183
<varlistentry><term><parameter>height</parameter> :</term>
184
<listitem><simpara> height of the pattern
185
</simpara></listitem></varlistentry>
186
<varlistentry><term><parameter>bpp</parameter> :</term>
187
<listitem><simpara> bpp of the pattern
188
</simpara></listitem></varlistentry>
189
<varlistentry><term><parameter>mask_data</parameter> :</term>
190
<listitem><simpara> pattern mask data
191
</simpara></listitem></varlistentry>
192
<varlistentry><term><parameter>dialog_closing</parameter> :</term>
193
<listitem><simpara> whether the dialog was closed or not.
194
</simpara></listitem></varlistentry>
195
<varlistentry><term><parameter>user_data</parameter> :</term>
196
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
197
</variablelist><para>Since GIMP 2.4</para></refsect2>