~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/gtk-Graphics-Contexts.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-09-17 11:15:05 UTC
  • mto: (72.1.1 lenny) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20070917111505-giz9c5xltxkb5y54
Tags: upstream-2.12.0
ImportĀ upstreamĀ versionĀ 2.12.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>Graphics Contexts</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
7
<link rel="start" href="index.html" title="GTK+ Reference Manual">
8
8
<link rel="up" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
9
9
<link rel="prev" href="gtk-Standard-Enumerations.html" title="Standard Enumerations">
10
10
<link rel="next" href="GtkStyle.html" title="Styles">
11
 
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
14
14
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
68
68
<th width="100%" align="center">GTK+ Reference Manual</th>
69
69
<td><a accesskey="n" href="GtkStyle.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
70
70
</tr>
71
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3112586" class="shortcut">Top</a>
 
71
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2863574" class="shortcut">Top</a>
72
72
                  &#160;|&#160;
73
 
                  <a href="#id3112671" class="shortcut">Description</a></nobr></td></tr>
 
73
                  <a href="#id2863659" class="shortcut">Description</a></nobr></td></tr>
74
74
</table>
75
75
<div class="refentry" lang="en">
76
76
<a name="gtk-Graphics-Contexts"></a><div class="titlepage"></div>
77
77
<div class="refnamediv"><table width="100%"><tr>
78
78
<td valign="top">
79
79
<h2>
80
 
<a name="id3112586"></a><span class="refentrytitle">Graphics Contexts</span>
 
80
<a name="id2863574"></a><span class="refentrytitle">Graphics Contexts</span>
81
81
</h2>
82
82
<p>Graphics Contexts &#8212; A shared pool of GdkGC objects</p>
83
83
</td>
92
92
 
93
93
<a
94
94
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
95
 
>GdkGC</a>*              <a href="gtk-Graphics-Contexts.html#gtk-gc-get">gtk_gc_get</a>                          (<a
96
 
href="/home/mclasen/gnome-2.18/install/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
95
>GdkGC</a>*              <a class="link" href="gtk-Graphics-Contexts.html#gtk-gc-get">gtk_gc_get</a>                          (<a
 
96
href="../glib/glib-Basic-Types.html#gint"
97
97
>gint</a> depth,
98
98
                                                         <a
99
99
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
104
104
                                                         <a
105
105
href="../gdk/gdk-Graphics-Contexts.html#GdkGCValuesMask"
106
106
>GdkGCValuesMask</a> values_mask);
107
 
void                <a href="gtk-Graphics-Contexts.html#gtk-gc-release">gtk_gc_release</a>                      (<a
 
107
void                <a class="link" href="gtk-Graphics-Contexts.html#gtk-gc-release">gtk_gc_release</a>                      (<a
108
108
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
109
109
>GdkGC</a> *gc);
110
110
</pre>
111
111
</div>
112
112
<div class="refsect1" lang="en">
113
 
<a name="id3112671"></a><h2>Description</h2>
 
113
<a name="id2863659"></a><h2>Description</h2>
114
114
<p>
115
115
These functions provide access to a shared pool of <a
116
116
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
117
117
><span class="type">GdkGC</span></a> objects.
118
118
When a new <a
119
119
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
120
 
><span class="type">GdkGC</span></a> is needed, <a href="gtk-Graphics-Contexts.html#gtk-gc-get"><code class="function">gtk_gc_get()</code></a> is called with the required depth,
 
120
><span class="type">GdkGC</span></a> is needed, <a class="link" href="gtk-Graphics-Contexts.html#gtk-gc-get"><code class="function">gtk_gc_get()</code></a> is called with the required depth,
121
121
colormap and <a
122
122
href="../gdk/gdk-Graphics-Contexts.html#GdkGCValues"
123
123
><span class="type">GdkGCValues</span></a>. If a <a
128
128
><span class="type">GdkGC</span></a> is created.
129
129
When the <a
130
130
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
131
 
><span class="type">GdkGC</span></a> is no longer needed, <a href="gtk-Graphics-Contexts.html#gtk-gc-release"><code class="function">gtk_gc_release()</code></a> should be called.
 
131
><span class="type">GdkGC</span></a> is no longer needed, <a class="link" href="gtk-Graphics-Contexts.html#gtk-gc-release"><code class="function">gtk_gc_release()</code></a> should be called.
132
132
</p>
133
133
</div>
134
134
<div class="refsect1" lang="en">
135
 
<a name="id3112759"></a><h2>Details</h2>
 
135
<a name="id2863747"></a><h2>Details</h2>
136
136
<div class="refsect2" lang="en">
137
 
<a name="id3112769"></a><h3>
 
137
<a name="id2863757"></a><h3>
138
138
<a name="gtk-gc-get"></a>gtk_gc_get ()</h3>
139
 
<a class="indexterm" name="id3112782"></a><pre class="programlisting"><a
 
139
<a class="indexterm" name="id2863770"></a><pre class="programlisting"><a
140
140
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
141
141
>GdkGC</a>*              gtk_gc_get                          (<a
142
 
href="/home/mclasen/gnome-2.18/install/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
142
href="../glib/glib-Basic-Types.html#gint"
143
143
>gint</a> depth,
144
144
                                                         <a
145
145
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
164
164
><span class="type">GdkGC</span></a> is created.
165
165
The returned <a
166
166
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
167
 
><span class="type">GdkGC</span></a> should be released with <a href="gtk-Graphics-Contexts.html#gtk-gc-release"><code class="function">gtk_gc_release()</code></a> when it is no
 
167
><span class="type">GdkGC</span></a> should be released with <a class="link" href="gtk-Graphics-Contexts.html#gtk-gc-release"><code class="function">gtk_gc_release()</code></a> when it is no
168
168
longer needed.
169
169
</p>
170
170
<div class="variablelist"><table border="0">
171
171
<col align="left" valign="top">
172
172
<tbody>
173
173
<tr>
174
 
<td><span class="term"><em class="parameter"><code>depth</code></em>&#160;:</span></td>
 
174
<td><p><span class="term"><em class="parameter"><code>depth</code></em>&#160;:</span></p></td>
175
175
<td>the depth of the <a
176
176
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
177
177
><span class="type">GdkGC</span></a> to create.
178
178
</td>
179
179
</tr>
180
180
<tr>
181
 
<td><span class="term"><em class="parameter"><code>colormap</code></em>&#160;:</span></td>
 
181
<td><p><span class="term"><em class="parameter"><code>colormap</code></em>&#160;:</span></p></td>
182
182
<td>the <a
183
183
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
184
184
><span class="type">GdkColormap</span></a> (FIXME: I don't know why this is needed).
185
185
</td>
186
186
</tr>
187
187
<tr>
188
 
<td><span class="term"><em class="parameter"><code>values</code></em>&#160;:</span></td>
 
188
<td><p><span class="term"><em class="parameter"><code>values</code></em>&#160;:</span></p></td>
189
189
<td>a <a
190
190
href="../gdk/gdk-Graphics-Contexts.html#GdkGCValues"
191
191
><span class="type">GdkGCValues</span></a> struct containing settings for the <a
194
194
</td>
195
195
</tr>
196
196
<tr>
197
 
<td><span class="term"><em class="parameter"><code>values_mask</code></em>&#160;:</span></td>
 
197
<td><p><span class="term"><em class="parameter"><code>values_mask</code></em>&#160;:</span></p></td>
198
198
<td>a set of flags indicating which of the fields in <em class="parameter"><code>values</code></em> has
199
199
been set.
200
200
</td>
201
201
</tr>
202
202
<tr>
203
 
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
203
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
204
204
<td>a <a
205
205
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
206
206
><span class="type">GdkGC</span></a>.
213
213
</div>
214
214
<hr>
215
215
<div class="refsect2" lang="en">
216
 
<a name="id3113005"></a><h3>
 
216
<a name="id2863993"></a><h3>
217
217
<a name="gtk-gc-release"></a>gtk_gc_release ()</h3>
218
 
<a class="indexterm" name="id3113018"></a><pre class="programlisting">void                gtk_gc_release                      (<a
 
218
<a class="indexterm" name="id2864006"></a><pre class="programlisting">void                gtk_gc_release                      (<a
219
219
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
220
220
>GdkGC</a> *gc);</pre>
221
221
<p>
222
222
Releases a <a
223
223
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
224
 
><span class="type">GdkGC</span></a> allocated using <a href="gtk-Graphics-Contexts.html#gtk-gc-get"><code class="function">gtk_gc_get()</code></a>.
 
224
><span class="type">GdkGC</span></a> allocated using <a class="link" href="gtk-Graphics-Contexts.html#gtk-gc-get"><code class="function">gtk_gc_get()</code></a>.
225
225
</p>
226
226
<div class="variablelist"><table border="0">
227
227
<col align="left" valign="top">
228
228
<tbody><tr>
229
 
<td><span class="term"><em class="parameter"><code>gc</code></em>&#160;:</span></td>
 
229
<td><p><span class="term"><em class="parameter"><code>gc</code></em>&#160;:</span></p></td>
230
230
<td>a <a
231
231
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
232
232
><span class="type">GdkGC</span></a>.
237
237
</table></div>
238
238
</div>
239
239
</div>
 
240
<div class="refsect1" lang="en">
 
241
<a name="id2864079"></a><div class="refsect2" lang="en"><a name="id2864080"></a></div>
 
242
<hr>
 
243
<div class="refsect2" lang="en"><a name="id2864081"></a></div>
 
244
</div>
240
245
</div>
241
246
</body>
242
247
</html>