~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimp/html/libgimp-gimpcontext.html

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
ImportĀ upstreamĀ versionĀ 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
<div class="refsynopsisdiv">
48
48
<a name="libgimp-gimpcontext.synopsis"></a><h2>Synopsis</h2>
49
49
<pre class="synopsis">
50
 
<a
51
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
52
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-push" title="gimp_context_push ()">gimp_context_push</a>                   (void);
53
 
<a
54
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
55
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-pop" title="gimp_context_pop ()">gimp_context_pop</a>                    (void);
56
 
<a
57
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
58
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-foreground" title="gimp_context_get_foreground ()">gimp_context_get_foreground</a>         (<a
59
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
60
 
>GimpRGB</a> *foreground);
61
 
<a
62
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
63
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-foreground" title="gimp_context_set_foreground ()">gimp_context_set_foreground</a>         (const <a
64
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
65
 
>GimpRGB</a> *foreground);
66
 
<a
67
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
68
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-background" title="gimp_context_get_background ()">gimp_context_get_background</a>         (<a
69
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
70
 
>GimpRGB</a> *background);
71
 
<a
72
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
73
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-background" title="gimp_context_set_background ()">gimp_context_set_background</a>         (const <a
74
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
75
 
>GimpRGB</a> *background);
76
 
<a
77
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
78
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-default-colors" title="gimp_context_set_default_colors ()">gimp_context_set_default_colors</a>     (void);
79
 
<a
80
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
81
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-swap-colors" title="gimp_context_swap_colors ()">gimp_context_swap_colors</a>            (void);
82
 
<a
83
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
84
 
>gdouble</a>             <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-opacity" title="gimp_context_get_opacity ()">gimp_context_get_opacity</a>            (void);
85
 
<a
86
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
87
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-opacity" title="gimp_context_set_opacity ()">gimp_context_set_opacity</a>            (<a
88
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
89
 
>gdouble</a> opacity);
 
50
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-push" title="gimp_context_push ()">gimp_context_push</a>                   (void);
 
51
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-pop" title="gimp_context_pop ()">gimp_context_pop</a>                    (void);
 
52
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-foreground" title="gimp_context_get_foreground ()">gimp_context_get_foreground</a>         (<a
 
53
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
54
>GimpRGB</a> *foreground);
 
55
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-foreground" title="gimp_context_set_foreground ()">gimp_context_set_foreground</a>         (const <a
 
56
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
57
>GimpRGB</a> *foreground);
 
58
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-background" title="gimp_context_get_background ()">gimp_context_get_background</a>         (<a
 
59
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
60
>GimpRGB</a> *background);
 
61
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-background" title="gimp_context_set_background ()">gimp_context_set_background</a>         (const <a
 
62
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
63
>GimpRGB</a> *background);
 
64
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-default-colors" title="gimp_context_set_default_colors ()">gimp_context_set_default_colors</a>     (void);
 
65
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-swap-colors" title="gimp_context_swap_colors ()">gimp_context_swap_colors</a>            (void);
 
66
gdouble             <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-opacity" title="gimp_context_get_opacity ()">gimp_context_get_opacity</a>            (void);
 
67
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-opacity" title="gimp_context_set_opacity ()">gimp_context_set_opacity</a>            (gdouble opacity);
90
68
<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-paint-mode" title="gimp_context_get_paint_mode ()">gimp_context_get_paint_mode</a>        (void);
91
 
<a
92
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
93
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-mode" title="gimp_context_set_paint_mode ()">gimp_context_set_paint_mode</a>         (<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
94
 
<a
95
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
96
 
>gchar</a>*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-brush" title="gimp_context_get_brush ()">gimp_context_get_brush</a>              (void);
97
 
<a
98
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
99
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-brush" title="gimp_context_set_brush ()">gimp_context_set_brush</a>              (const <a
100
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
101
 
>gchar</a> *name);
102
 
<a
103
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
104
 
>gchar</a>*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-pattern" title="gimp_context_get_pattern ()">gimp_context_get_pattern</a>            (void);
105
 
<a
106
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
107
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-pattern" title="gimp_context_set_pattern ()">gimp_context_set_pattern</a>            (const <a
108
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
109
 
>gchar</a> *name);
110
 
<a
111
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
112
 
>gchar</a>*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-gradient" title="gimp_context_get_gradient ()">gimp_context_get_gradient</a>           (void);
113
 
<a
114
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
115
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-gradient" title="gimp_context_set_gradient ()">gimp_context_set_gradient</a>           (const <a
116
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
117
 
>gchar</a> *name);
118
 
<a
119
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
120
 
>gchar</a>*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-palette" title="gimp_context_get_palette ()">gimp_context_get_palette</a>            (void);
121
 
<a
122
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
123
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-palette" title="gimp_context_set_palette ()">gimp_context_set_palette</a>            (const <a
124
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
125
 
>gchar</a> *name);
126
 
<a
127
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
128
 
>gchar</a>*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-font" title="gimp_context_get_font ()">gimp_context_get_font</a>               (void);
129
 
<a
130
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
131
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-font" title="gimp_context_set_font ()">gimp_context_set_font</a>               (const <a
132
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
133
 
>gchar</a> *name);
134
 
<a
135
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
136
 
>gchar</a>*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-paint-method" title="gimp_context_get_paint_method ()">gimp_context_get_paint_method</a>       (void);
137
 
<a
138
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
139
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-method" title="gimp_context_set_paint_method ()">gimp_context_set_paint_method</a>       (const <a
140
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
141
 
>gchar</a> *name);
142
 
<a
143
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
144
 
>gboolean</a>            <a class="link" href="libgimp-gimpcontext.html#gimp-context-list-paint-methods" title="gimp_context_list_paint_methods ()">gimp_context_list_paint_methods</a>     (<a
145
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
146
 
>gint</a> *num_paint_methods,
147
 
                                                         <a
148
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
149
 
>gchar</a> ***paint_methods);
 
69
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-mode" title="gimp_context_set_paint_mode ()">gimp_context_set_paint_mode</a>         (<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
 
70
gchar*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-brush" title="gimp_context_get_brush ()">gimp_context_get_brush</a>              (void);
 
71
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-brush" title="gimp_context_set_brush ()">gimp_context_set_brush</a>              (const gchar *name);
 
72
gchar*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-pattern" title="gimp_context_get_pattern ()">gimp_context_get_pattern</a>            (void);
 
73
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-pattern" title="gimp_context_set_pattern ()">gimp_context_set_pattern</a>            (const gchar *name);
 
74
gchar*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-gradient" title="gimp_context_get_gradient ()">gimp_context_get_gradient</a>           (void);
 
75
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-gradient" title="gimp_context_set_gradient ()">gimp_context_set_gradient</a>           (const gchar *name);
 
76
gchar*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-palette" title="gimp_context_get_palette ()">gimp_context_get_palette</a>            (void);
 
77
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-palette" title="gimp_context_set_palette ()">gimp_context_set_palette</a>            (const gchar *name);
 
78
gchar*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-font" title="gimp_context_get_font ()">gimp_context_get_font</a>               (void);
 
79
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-font" title="gimp_context_set_font ()">gimp_context_set_font</a>               (const gchar *name);
 
80
gchar*              <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-paint-method" title="gimp_context_get_paint_method ()">gimp_context_get_paint_method</a>       (void);
 
81
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-method" title="gimp_context_set_paint_method ()">gimp_context_set_paint_method</a>       (const gchar *name);
 
82
gboolean            <a class="link" href="libgimp-gimpcontext.html#gimp-context-list-paint-methods" title="gimp_context_list_paint_methods ()">gimp_context_list_paint_methods</a>     (gint *num_paint_methods,
 
83
                                                         gchar ***paint_methods);
150
84
</pre>
151
85
</div>
152
86
<div class="refsect1" lang="en">
159
93
<a name="libgimp-gimpcontext.details"></a><h2>Details</h2>
160
94
<div class="refsect2" lang="en">
161
95
<a name="gimp-context-push"></a><h3>gimp_context_push ()</h3>
162
 
<pre class="programlisting"><a
163
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
164
 
>gboolean</a>            gimp_context_push                   (void);</pre>
 
96
<pre class="programlisting">gboolean            gimp_context_push                   (void);</pre>
165
97
<p>
166
98
Pushes a context to the top of the plug-in's context stack.
167
99
</p>
187
119
<hr>
188
120
<div class="refsect2" lang="en">
189
121
<a name="gimp-context-pop"></a><h3>gimp_context_pop ()</h3>
190
 
<pre class="programlisting"><a
191
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
192
 
>gboolean</a>            gimp_context_pop                    (void);</pre>
 
122
<pre class="programlisting">gboolean            gimp_context_pop                    (void);</pre>
193
123
<p>
194
124
Pops the topmost context from the plug-in's context stack.
195
125
</p>
216
146
<hr>
217
147
<div class="refsect2" lang="en">
218
148
<a name="gimp-context-get-foreground"></a><h3>gimp_context_get_foreground ()</h3>
219
 
<pre class="programlisting"><a
220
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
221
 
>gboolean</a>            gimp_context_get_foreground         (<a
222
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
149
<pre class="programlisting">gboolean            gimp_context_get_foreground         (<a
 
150
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
223
151
>GimpRGB</a> *foreground);</pre>
224
152
<p>
225
153
Get the current GIMP foreground color.
253
181
<hr>
254
182
<div class="refsect2" lang="en">
255
183
<a name="gimp-context-set-foreground"></a><h3>gimp_context_set_foreground ()</h3>
256
 
<pre class="programlisting"><a
257
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
258
 
>gboolean</a>            gimp_context_set_foreground         (const <a
259
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
184
<pre class="programlisting">gboolean            gimp_context_set_foreground         (const <a
 
185
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
260
186
>GimpRGB</a> *foreground);</pre>
261
187
<p>
262
188
Set the current GIMP foreground color.
290
216
<hr>
291
217
<div class="refsect2" lang="en">
292
218
<a name="gimp-context-get-background"></a><h3>gimp_context_get_background ()</h3>
293
 
<pre class="programlisting"><a
294
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
295
 
>gboolean</a>            gimp_context_get_background         (<a
296
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
219
<pre class="programlisting">gboolean            gimp_context_get_background         (<a
 
220
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
297
221
>GimpRGB</a> *background);</pre>
298
222
<p>
299
223
Get the current GIMP background color.
327
251
<hr>
328
252
<div class="refsect2" lang="en">
329
253
<a name="gimp-context-set-background"></a><h3>gimp_context_set_background ()</h3>
330
 
<pre class="programlisting"><a
331
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
332
 
>gboolean</a>            gimp_context_set_background         (const <a
333
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
254
<pre class="programlisting">gboolean            gimp_context_set_background         (const <a
 
255
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
334
256
>GimpRGB</a> *background);</pre>
335
257
<p>
336
258
Set the current GIMP background color.
365
287
<hr>
366
288
<div class="refsect2" lang="en">
367
289
<a name="gimp-context-set-default-colors"></a><h3>gimp_context_set_default_colors ()</h3>
368
 
<pre class="programlisting"><a
369
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
370
 
>gboolean</a>            gimp_context_set_default_colors     (void);</pre>
 
290
<pre class="programlisting">gboolean            gimp_context_set_default_colors     (void);</pre>
371
291
<p>
372
292
Set the current GIMP foreground and background colors to black and
373
293
white.
393
313
<hr>
394
314
<div class="refsect2" lang="en">
395
315
<a name="gimp-context-swap-colors"></a><h3>gimp_context_swap_colors ()</h3>
396
 
<pre class="programlisting"><a
397
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
398
 
>gboolean</a>            gimp_context_swap_colors            (void);</pre>
 
316
<pre class="programlisting">gboolean            gimp_context_swap_colors            (void);</pre>
399
317
<p>
400
318
Swap the current GIMP foreground and background colors.
401
319
</p>
421
339
<hr>
422
340
<div class="refsect2" lang="en">
423
341
<a name="gimp-context-get-opacity"></a><h3>gimp_context_get_opacity ()</h3>
424
 
<pre class="programlisting"><a
425
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
426
 
>gdouble</a>             gimp_context_get_opacity            (void);</pre>
 
342
<pre class="programlisting">gdouble             gimp_context_get_opacity            (void);</pre>
427
343
<p>
428
344
Get the opacity.
429
345
</p>
448
364
<hr>
449
365
<div class="refsect2" lang="en">
450
366
<a name="gimp-context-set-opacity"></a><h3>gimp_context_set_opacity ()</h3>
451
 
<pre class="programlisting"><a
452
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
453
 
>gboolean</a>            gimp_context_set_opacity            (<a
454
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
455
 
>gdouble</a> opacity);</pre>
 
367
<pre class="programlisting">gboolean            gimp_context_set_opacity            (gdouble opacity);</pre>
456
368
<p>
457
369
Set the opacity.
458
370
</p>
510
422
<hr>
511
423
<div class="refsect2" lang="en">
512
424
<a name="gimp-context-set-paint-mode"></a><h3>gimp_context_set_paint_mode ()</h3>
513
 
<pre class="programlisting"><a
514
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
515
 
>gboolean</a>            gimp_context_set_paint_mode         (<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre>
 
425
<pre class="programlisting">gboolean            gimp_context_set_paint_mode         (<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre>
516
426
<p>
517
427
Set the paint mode.
518
428
</p>
543
453
<hr>
544
454
<div class="refsect2" lang="en">
545
455
<a name="gimp-context-get-brush"></a><h3>gimp_context_get_brush ()</h3>
546
 
<pre class="programlisting"><a
547
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
548
 
>gchar</a>*              gimp_context_get_brush              (void);</pre>
 
456
<pre class="programlisting">gchar*              gimp_context_get_brush              (void);</pre>
549
457
<p>
550
458
Retrieve the currently active brush.
551
459
</p>
571
479
<hr>
572
480
<div class="refsect2" lang="en">
573
481
<a name="gimp-context-set-brush"></a><h3>gimp_context_set_brush ()</h3>
574
 
<pre class="programlisting"><a
575
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
576
 
>gboolean</a>            gimp_context_set_brush              (const <a
577
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
578
 
>gchar</a> *name);</pre>
 
482
<pre class="programlisting">gboolean            gimp_context_set_brush              (const gchar *name);</pre>
579
483
<p>
580
484
Set the specified brush as the active brush.
581
485
</p>
610
514
<hr>
611
515
<div class="refsect2" lang="en">
612
516
<a name="gimp-context-get-pattern"></a><h3>gimp_context_get_pattern ()</h3>
613
 
<pre class="programlisting"><a
614
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
615
 
>gchar</a>*              gimp_context_get_pattern            (void);</pre>
 
517
<pre class="programlisting">gchar*              gimp_context_get_pattern            (void);</pre>
616
518
<p>
617
519
Retrieve the currently active pattern.
618
520
</p>
638
540
<hr>
639
541
<div class="refsect2" lang="en">
640
542
<a name="gimp-context-set-pattern"></a><h3>gimp_context_set_pattern ()</h3>
641
 
<pre class="programlisting"><a
642
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
643
 
>gboolean</a>            gimp_context_set_pattern            (const <a
644
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
645
 
>gchar</a> *name);</pre>
 
543
<pre class="programlisting">gboolean            gimp_context_set_pattern            (const gchar *name);</pre>
646
544
<p>
647
545
Set the specified pattern as the active pattern.
648
546
</p>
678
576
<hr>
679
577
<div class="refsect2" lang="en">
680
578
<a name="gimp-context-get-gradient"></a><h3>gimp_context_get_gradient ()</h3>
681
 
<pre class="programlisting"><a
682
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
683
 
>gchar</a>*              gimp_context_get_gradient           (void);</pre>
 
579
<pre class="programlisting">gchar*              gimp_context_get_gradient           (void);</pre>
684
580
<p>
685
581
Retrieve the currently active gradient.
686
582
</p>
704
600
<hr>
705
601
<div class="refsect2" lang="en">
706
602
<a name="gimp-context-set-gradient"></a><h3>gimp_context_set_gradient ()</h3>
707
 
<pre class="programlisting"><a
708
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
709
 
>gboolean</a>            gimp_context_set_gradient           (const <a
710
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
711
 
>gchar</a> *name);</pre>
 
603
<pre class="programlisting">gboolean            gimp_context_set_gradient           (const gchar *name);</pre>
712
604
<p>
713
605
Sets the specified gradient as the active gradient.
714
606
</p>
744
636
<hr>
745
637
<div class="refsect2" lang="en">
746
638
<a name="gimp-context-get-palette"></a><h3>gimp_context_get_palette ()</h3>
747
 
<pre class="programlisting"><a
748
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
749
 
>gchar</a>*              gimp_context_get_palette            (void);</pre>
 
639
<pre class="programlisting">gchar*              gimp_context_get_palette            (void);</pre>
750
640
<p>
751
641
Retrieve the currently active palette.
752
642
</p>
770
660
<hr>
771
661
<div class="refsect2" lang="en">
772
662
<a name="gimp-context-set-palette"></a><h3>gimp_context_set_palette ()</h3>
773
 
<pre class="programlisting"><a
774
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
775
 
>gboolean</a>            gimp_context_set_palette            (const <a
776
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
777
 
>gchar</a> *name);</pre>
 
663
<pre class="programlisting">gboolean            gimp_context_set_palette            (const gchar *name);</pre>
778
664
<p>
779
665
Set the specified palette as the active palette.
780
666
</p>
810
696
<hr>
811
697
<div class="refsect2" lang="en">
812
698
<a name="gimp-context-get-font"></a><h3>gimp_context_get_font ()</h3>
813
 
<pre class="programlisting"><a
814
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
815
 
>gchar</a>*              gimp_context_get_font               (void);</pre>
 
699
<pre class="programlisting">gchar*              gimp_context_get_font               (void);</pre>
816
700
<p>
817
701
Retrieve the currently active font.
818
702
</p>
836
720
<hr>
837
721
<div class="refsect2" lang="en">
838
722
<a name="gimp-context-set-font"></a><h3>gimp_context_set_font ()</h3>
839
 
<pre class="programlisting"><a
840
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
841
 
>gboolean</a>            gimp_context_set_font               (const <a
842
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
843
 
>gchar</a> *name);</pre>
 
723
<pre class="programlisting">gboolean            gimp_context_set_font               (const gchar *name);</pre>
844
724
<p>
845
725
Set the specified font as the active font.
846
726
</p>
875
755
<hr>
876
756
<div class="refsect2" lang="en">
877
757
<a name="gimp-context-get-paint-method"></a><h3>gimp_context_get_paint_method ()</h3>
878
 
<pre class="programlisting"><a
879
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
880
 
>gchar</a>*              gimp_context_get_paint_method       (void);</pre>
 
758
<pre class="programlisting">gchar*              gimp_context_get_paint_method       (void);</pre>
881
759
<p>
882
760
Retrieve the currently active paint method.
883
761
</p>
902
780
<hr>
903
781
<div class="refsect2" lang="en">
904
782
<a name="gimp-context-set-paint-method"></a><h3>gimp_context_set_paint_method ()</h3>
905
 
<pre class="programlisting"><a
906
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
907
 
>gboolean</a>            gimp_context_set_paint_method       (const <a
908
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
909
 
>gchar</a> *name);</pre>
 
783
<pre class="programlisting">gboolean            gimp_context_set_paint_method       (const gchar *name);</pre>
910
784
<p>
911
785
Set the specified paint method as the active paint method.
912
786
</p>
942
816
<hr>
943
817
<div class="refsect2" lang="en">
944
818
<a name="gimp-context-list-paint-methods"></a><h3>gimp_context_list_paint_methods ()</h3>
945
 
<pre class="programlisting"><a
946
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
947
 
>gboolean</a>            gimp_context_list_paint_methods     (<a
948
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
949
 
>gint</a> *num_paint_methods,
950
 
                                                         <a
951
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
952
 
>gchar</a> ***paint_methods);</pre>
 
819
<pre class="programlisting">gboolean            gimp_context_list_paint_methods     (gint *num_paint_methods,
 
820
                                                         gchar ***paint_methods);</pre>
953
821
<p>
954
822
Lists the available paint methods.
955
823
</p>