diff options
Diffstat (limited to '')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html | 531 |
1 files changed, 531 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html new file mode 100644 index 0000000..2a5c229 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html | |||
@@ -0,0 +1,531 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
5 | <title>context</title> | ||
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2"> | ||
7 | <link rel="start" href="index.html" title="libg3d Reference Manual"> | ||
8 | <link rel="up" href="ch01.html" title="Application interface"> | ||
9 | <link rel="prev" href="libg3d-types.html" title="types"> | ||
10 | <link rel="next" href="libg3d-model.html" title="model"> | ||
11 | <meta name="generator" content="GTK-Doc V1.10 (XML mode)"> | ||
12 | <link rel="stylesheet" href="style.css" type="text/css"> | ||
13 | <link rel="chapter" href="ch01.html" title="Application interface"> | ||
14 | <link rel="chapter" href="ch02.html" title="Plugin interface"> | ||
15 | </head> | ||
16 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | ||
17 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> | ||
18 | <tr valign="middle"> | ||
19 | <td><a accesskey="p" href="libg3d-types.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> | ||
21 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> | ||
22 | <th width="100%" align="center">libg3d Reference Manual</th> | ||
23 | <td><a accesskey="n" href="libg3d-model.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> | ||
24 | </tr> | ||
25 | <tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-context.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-context.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-context"></a><div class="titlepage"></div> | ||
31 | <div class="refnamediv"><table width="100%"><tr> | ||
32 | <td valign="top"> | ||
33 | <h2><span class="refentrytitle"><a name="libg3d-context.top_of_page"></a>context</span></h2> | ||
34 | <p>context — Libg3d initialization and configuration</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-context.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/g3d.h> | ||
43 | |||
44 | <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>; | ||
45 | <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>* <a class="link" href="libg3d-context.html#g3d-context-new" title="g3d_context_new ()">g3d_context_new</a> (void); | ||
46 | void <a class="link" href="libg3d-context.html#g3d-context-free" title="g3d_context_free ()">g3d_context_free</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
47 | <a | ||
48 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
49 | >gboolean</a> (<a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">*G3DSetBgColorFunc</a>) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r, | ||
50 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g, | ||
51 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b, | ||
52 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a, | ||
53 | <a | ||
54 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
55 | >gpointer</a> user_data); | ||
56 | <a | ||
57 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
58 | >gboolean</a> (<a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">*G3DUpdateInterfaceFunc</a>) (<a | ||
59 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
60 | >gpointer</a> user_data); | ||
61 | <a | ||
62 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
63 | >gboolean</a> (<a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">*G3DUpdateProgressBarFunc</a>) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage, | ||
64 | <a | ||
65 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
66 | >gboolean</a> show, | ||
67 | <a | ||
68 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
69 | >gpointer</a> user_data); | ||
70 | <a | ||
71 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
72 | >gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-update-interface" title="g3d_context_update_interface ()">g3d_context_update_interface</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
73 | void <a class="link" href="libg3d-context.html#g3d-context-set-update-interface-func" title="g3d_context_set_update_interface_func ()">g3d_context_set_update_interface_func</a> | ||
74 | (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
75 | <a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">G3DUpdateInterfaceFunc</a> func, | ||
76 | <a | ||
77 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
78 | >gpointer</a> user_data); | ||
79 | <a | ||
80 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
81 | >gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-update-progress-bar" title="g3d_context_update_progress_bar ()">g3d_context_update_progress_bar</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
82 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage, | ||
83 | <a | ||
84 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
85 | >gboolean</a> visibility); | ||
86 | void <a class="link" href="libg3d-context.html#g3d-context-set-update-progress-bar-func" title="g3d_context_set_update_progress_bar_func ()">g3d_context_set_update_progress_bar_func</a> | ||
87 | (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
88 | <a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">G3DUpdateProgressBarFunc</a> func, | ||
89 | <a | ||
90 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
91 | >gpointer</a> user_data); | ||
92 | <a | ||
93 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
94 | >gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-set-bgcolor" title="g3d_context_set_bgcolor ()">g3d_context_set_bgcolor</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
95 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r, | ||
96 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g, | ||
97 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b, | ||
98 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a); | ||
99 | void <a class="link" href="libg3d-context.html#g3d-context-set-set-bgcolor-func" title="g3d_context_set_set_bgcolor_func ()">g3d_context_set_set_bgcolor_func</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
100 | <a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">G3DSetBgColorFunc</a> func, | ||
101 | <a | ||
102 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
103 | >gpointer</a> user_data); | ||
104 | </pre> | ||
105 | </div> | ||
106 | <div class="refsect1" lang="en"> | ||
107 | <a name="libg3d-context.description"></a><h2>Description</h2> | ||
108 | <p> | ||
109 | All state information is saved in the context. It also serves as an | ||
110 | interface to the application.</p> | ||
111 | <p> | ||
112 | |||
113 | </p> | ||
114 | </div> | ||
115 | <div class="refsect1" lang="en"> | ||
116 | <a name="libg3d-context.details"></a><h2>Details</h2> | ||
117 | <div class="refsect2" lang="en"> | ||
118 | <a name="G3DContext"></a><h3>G3DContext</h3> | ||
119 | <pre class="programlisting">typedef struct { | ||
120 | } G3DContext; | ||
121 | </pre> | ||
122 | <p> | ||
123 | Internal stuff for libg3d.</p> | ||
124 | <p> | ||
125 | |||
126 | </p> | ||
127 | </div> | ||
128 | <hr> | ||
129 | <div class="refsect2" lang="en"> | ||
130 | <a name="g3d-context-new"></a><h3>g3d_context_new ()</h3> | ||
131 | <pre class="programlisting"><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>* g3d_context_new (void);</pre> | ||
132 | <p> | ||
133 | Create a new context. This initializes the library (and also the | ||
134 | plugin system so this has not to be done seperately).</p> | ||
135 | <p> | ||
136 | |||
137 | </p> | ||
138 | <div class="variablelist"><table border="0"> | ||
139 | <col align="left" valign="top"> | ||
140 | <tbody><tr> | ||
141 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
142 | <td> a valid context, or NULL on failure. | ||
143 | </td> | ||
144 | </tr></tbody> | ||
145 | </table></div> | ||
146 | </div> | ||
147 | <hr> | ||
148 | <div class="refsect2" lang="en"> | ||
149 | <a name="g3d-context-free"></a><h3>g3d_context_free ()</h3> | ||
150 | <pre class="programlisting">void g3d_context_free (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
151 | <p> | ||
152 | Cleans up the context and the plugin system and frees all reserved | ||
153 | memory.</p> | ||
154 | <p> | ||
155 | |||
156 | </p> | ||
157 | <div class="variablelist"><table border="0"> | ||
158 | <col align="left" valign="top"> | ||
159 | <tbody><tr> | ||
160 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
161 | <td> the context to free | ||
162 | </td> | ||
163 | </tr></tbody> | ||
164 | </table></div> | ||
165 | </div> | ||
166 | <hr> | ||
167 | <div class="refsect2" lang="en"> | ||
168 | <a name="G3DSetBgColorFunc"></a><h3>G3DSetBgColorFunc ()</h3> | ||
169 | <pre class="programlisting"><a | ||
170 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
171 | >gboolean</a> (*G3DSetBgColorFunc) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r, | ||
172 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g, | ||
173 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b, | ||
174 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a, | ||
175 | <a | ||
176 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
177 | >gpointer</a> user_data);</pre> | ||
178 | <p> | ||
179 | Background color setting callback.</p> | ||
180 | <p> | ||
181 | |||
182 | </p> | ||
183 | <div class="variablelist"><table border="0"> | ||
184 | <col align="left" valign="top"> | ||
185 | <tbody> | ||
186 | <tr> | ||
187 | <td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td> | ||
188 | <td> red component | ||
189 | </td> | ||
190 | </tr> | ||
191 | <tr> | ||
192 | <td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td> | ||
193 | <td> green component | ||
194 | </td> | ||
195 | </tr> | ||
196 | <tr> | ||
197 | <td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td> | ||
198 | <td> blue component | ||
199 | </td> | ||
200 | </tr> | ||
201 | <tr> | ||
202 | <td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td> | ||
203 | <td> alpha component | ||
204 | </td> | ||
205 | </tr> | ||
206 | <tr> | ||
207 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
208 | <td> opaque data as given to <a class="link" href="libg3d-context.html#g3d-context-set-set-bgcolor-func" title="g3d_context_set_set_bgcolor_func ()"><code class="function">g3d_context_set_set_bgcolor_func()</code></a> | ||
209 | </td> | ||
210 | </tr> | ||
211 | <tr> | ||
212 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
213 | <td> TRUE on success, FALSE else. | ||
214 | </td> | ||
215 | </tr> | ||
216 | </tbody> | ||
217 | </table></div> | ||
218 | </div> | ||
219 | <hr> | ||
220 | <div class="refsect2" lang="en"> | ||
221 | <a name="G3DUpdateInterfaceFunc"></a><h3>G3DUpdateInterfaceFunc ()</h3> | ||
222 | <pre class="programlisting"><a | ||
223 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
224 | >gboolean</a> (*G3DUpdateInterfaceFunc) (<a | ||
225 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
226 | >gpointer</a> user_data);</pre> | ||
227 | <p> | ||
228 | Interface updating callback.</p> | ||
229 | <p> | ||
230 | |||
231 | </p> | ||
232 | <div class="variablelist"><table border="0"> | ||
233 | <col align="left" valign="top"> | ||
234 | <tbody> | ||
235 | <tr> | ||
236 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
237 | <td> opaque data as given to <a class="link" href="libg3d-context.html#g3d-context-set-update-interface-func" title="g3d_context_set_update_interface_func ()"><code class="function">g3d_context_set_update_interface_func()</code></a> | ||
238 | </td> | ||
239 | </tr> | ||
240 | <tr> | ||
241 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
242 | <td> TRUE on success, FALSE else. | ||
243 | </td> | ||
244 | </tr> | ||
245 | </tbody> | ||
246 | </table></div> | ||
247 | </div> | ||
248 | <hr> | ||
249 | <div class="refsect2" lang="en"> | ||
250 | <a name="G3DUpdateProgressBarFunc"></a><h3>G3DUpdateProgressBarFunc ()</h3> | ||
251 | <pre class="programlisting"><a | ||
252 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
253 | >gboolean</a> (*G3DUpdateProgressBarFunc) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage, | ||
254 | <a | ||
255 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
256 | >gboolean</a> show, | ||
257 | <a | ||
258 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
259 | >gpointer</a> user_data);</pre> | ||
260 | <p> | ||
261 | Progress updating callback.</p> | ||
262 | <p> | ||
263 | |||
264 | </p> | ||
265 | <div class="variablelist"><table border="0"> | ||
266 | <col align="left" valign="top"> | ||
267 | <tbody> | ||
268 | <tr> | ||
269 | <td><p><span class="term"><em class="parameter"><code>percentage</code></em> :</span></p></td> | ||
270 | <td> progress of plugin operation | ||
271 | </td> | ||
272 | </tr> | ||
273 | <tr> | ||
274 | <td><p><span class="term"><em class="parameter"><code>show</code></em> :</span></p></td> | ||
275 | <td> <a | ||
276 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS" | ||
277 | ><span class="type">TRUE</span></a> if the progress bar should be visible, <a | ||
278 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS" | ||
279 | ><span class="type">FALSE</span></a> else | ||
280 | </td> | ||
281 | </tr> | ||
282 | <tr> | ||
283 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
284 | <td> opaque data as given to | ||
285 | <a class="link" href="libg3d-context.html#g3d-context-set-update-progress-bar-func" title="g3d_context_set_update_progress_bar_func ()"><code class="function">g3d_context_set_update_progress_bar_func()</code></a> | ||
286 | </td> | ||
287 | </tr> | ||
288 | <tr> | ||
289 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
290 | <td> TRUE on success, FALSE else. | ||
291 | </td> | ||
292 | </tr> | ||
293 | </tbody> | ||
294 | </table></div> | ||
295 | </div> | ||
296 | <hr> | ||
297 | <div class="refsect2" lang="en"> | ||
298 | <a name="g3d-context-update-interface"></a><h3>g3d_context_update_interface ()</h3> | ||
299 | <pre class="programlisting"><a | ||
300 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
301 | >gboolean</a> g3d_context_update_interface (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
302 | <p> | ||
303 | Try to update the interface. This will call a function registered with | ||
304 | <em class="parameter"><code>g3d_context_set_update_interface_func</code></em>.</p> | ||
305 | <p> | ||
306 | |||
307 | </p> | ||
308 | <div class="variablelist"><table border="0"> | ||
309 | <col align="left" valign="top"> | ||
310 | <tbody> | ||
311 | <tr> | ||
312 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
313 | <td> a valid context | ||
314 | </td> | ||
315 | </tr> | ||
316 | <tr> | ||
317 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
318 | <td> TRUE on success, FALSE else | ||
319 | </td> | ||
320 | </tr> | ||
321 | </tbody> | ||
322 | </table></div> | ||
323 | </div> | ||
324 | <hr> | ||
325 | <div class="refsect2" lang="en"> | ||
326 | <a name="g3d-context-set-update-interface-func"></a><h3>g3d_context_set_update_interface_func ()</h3> | ||
327 | <pre class="programlisting">void g3d_context_set_update_interface_func | ||
328 | (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
329 | <a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">G3DUpdateInterfaceFunc</a> func, | ||
330 | <a | ||
331 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
332 | >gpointer</a> user_data);</pre> | ||
333 | <p> | ||
334 | Registers a callback function for updating the interface.</p> | ||
335 | <p> | ||
336 | |||
337 | </p> | ||
338 | <div class="variablelist"><table border="0"> | ||
339 | <col align="left" valign="top"> | ||
340 | <tbody> | ||
341 | <tr> | ||
342 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
343 | <td> a valid context | ||
344 | </td> | ||
345 | </tr> | ||
346 | <tr> | ||
347 | <td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td> | ||
348 | <td> the callback function | ||
349 | </td> | ||
350 | </tr> | ||
351 | <tr> | ||
352 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
353 | <td> user-defined opaque pointer | ||
354 | </td> | ||
355 | </tr> | ||
356 | </tbody> | ||
357 | </table></div> | ||
358 | </div> | ||
359 | <hr> | ||
360 | <div class="refsect2" lang="en"> | ||
361 | <a name="g3d-context-update-progress-bar"></a><h3>g3d_context_update_progress_bar ()</h3> | ||
362 | <pre class="programlisting"><a | ||
363 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
364 | >gboolean</a> g3d_context_update_progress_bar (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
365 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage, | ||
366 | <a | ||
367 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
368 | >gboolean</a> visibility);</pre> | ||
369 | <p> | ||
370 | Try to update the progress bar.</p> | ||
371 | <p> | ||
372 | |||
373 | </p> | ||
374 | <div class="variablelist"><table border="0"> | ||
375 | <col align="left" valign="top"> | ||
376 | <tbody> | ||
377 | <tr> | ||
378 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
379 | <td> a valid context | ||
380 | </td> | ||
381 | </tr> | ||
382 | <tr> | ||
383 | <td><p><span class="term"><em class="parameter"><code>percentage</code></em> :</span></p></td> | ||
384 | <td> the percentage to set on the progress bar | ||
385 | </td> | ||
386 | </tr> | ||
387 | <tr> | ||
388 | <td><p><span class="term"><em class="parameter"><code>visibility</code></em> :</span></p></td> | ||
389 | <td> show or hide the progress bar | ||
390 | </td> | ||
391 | </tr> | ||
392 | <tr> | ||
393 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
394 | <td> TRUE on success, FALSE else | ||
395 | </td> | ||
396 | </tr> | ||
397 | </tbody> | ||
398 | </table></div> | ||
399 | </div> | ||
400 | <hr> | ||
401 | <div class="refsect2" lang="en"> | ||
402 | <a name="g3d-context-set-update-progress-bar-func"></a><h3>g3d_context_set_update_progress_bar_func ()</h3> | ||
403 | <pre class="programlisting">void g3d_context_set_update_progress_bar_func | ||
404 | (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
405 | <a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">G3DUpdateProgressBarFunc</a> func, | ||
406 | <a | ||
407 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
408 | >gpointer</a> user_data);</pre> | ||
409 | <p> | ||
410 | Registers a callback function for updating the progress bar.</p> | ||
411 | <p> | ||
412 | |||
413 | </p> | ||
414 | <div class="variablelist"><table border="0"> | ||
415 | <col align="left" valign="top"> | ||
416 | <tbody> | ||
417 | <tr> | ||
418 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
419 | <td> a valid context | ||
420 | </td> | ||
421 | </tr> | ||
422 | <tr> | ||
423 | <td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td> | ||
424 | <td> the callback function | ||
425 | </td> | ||
426 | </tr> | ||
427 | <tr> | ||
428 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
429 | <td> user-defined opaque pointer | ||
430 | </td> | ||
431 | </tr> | ||
432 | </tbody> | ||
433 | </table></div> | ||
434 | </div> | ||
435 | <hr> | ||
436 | <div class="refsect2" lang="en"> | ||
437 | <a name="g3d-context-set-bgcolor"></a><h3>g3d_context_set_bgcolor ()</h3> | ||
438 | <pre class="programlisting"><a | ||
439 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
440 | >gboolean</a> g3d_context_set_bgcolor (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
441 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r, | ||
442 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g, | ||
443 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b, | ||
444 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a);</pre> | ||
445 | <p> | ||
446 | Try to set the background color. This will call a function registered | ||
447 | with <em class="parameter"><code>g3d_context_set_set_bgcolor_func</code></em>.</p> | ||
448 | <p> | ||
449 | |||
450 | </p> | ||
451 | <div class="variablelist"><table border="0"> | ||
452 | <col align="left" valign="top"> | ||
453 | <tbody> | ||
454 | <tr> | ||
455 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
456 | <td> a valid context | ||
457 | </td> | ||
458 | </tr> | ||
459 | <tr> | ||
460 | <td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td> | ||
461 | <td> red component (range: 0.0 .. 1.0) | ||
462 | </td> | ||
463 | </tr> | ||
464 | <tr> | ||
465 | <td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td> | ||
466 | <td> green component (range: 0.0 .. 1.0) | ||
467 | </td> | ||
468 | </tr> | ||
469 | <tr> | ||
470 | <td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td> | ||
471 | <td> green component (range: 0.0 .. 1.0) | ||
472 | </td> | ||
473 | </tr> | ||
474 | <tr> | ||
475 | <td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td> | ||
476 | <td> alpha component | ||
477 | </td> | ||
478 | </tr> | ||
479 | <tr> | ||
480 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
481 | <td> TRUE on success, FALSE else | ||
482 | </td> | ||
483 | </tr> | ||
484 | </tbody> | ||
485 | </table></div> | ||
486 | </div> | ||
487 | <hr> | ||
488 | <div class="refsect2" lang="en"> | ||
489 | <a name="g3d-context-set-set-bgcolor-func"></a><h3>g3d_context_set_set_bgcolor_func ()</h3> | ||
490 | <pre class="programlisting">void g3d_context_set_set_bgcolor_func (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
491 | <a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">G3DSetBgColorFunc</a> func, | ||
492 | <a | ||
493 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
494 | >gpointer</a> user_data);</pre> | ||
495 | <p> | ||
496 | Registers a callback function for setting the background color.</p> | ||
497 | <p> | ||
498 | |||
499 | </p> | ||
500 | <div class="variablelist"><table border="0"> | ||
501 | <col align="left" valign="top"> | ||
502 | <tbody> | ||
503 | <tr> | ||
504 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
505 | <td> a valid context | ||
506 | </td> | ||
507 | </tr> | ||
508 | <tr> | ||
509 | <td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td> | ||
510 | <td> the callback function | ||
511 | </td> | ||
512 | </tr> | ||
513 | <tr> | ||
514 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
515 | <td> user-defined opaque pointer | ||
516 | </td> | ||
517 | </tr> | ||
518 | </tbody> | ||
519 | </table></div> | ||
520 | </div> | ||
521 | </div> | ||
522 | <div class="refsect1" lang="en"> | ||
523 | <a name="libg3d-context.see-also"></a><h2>See Also</h2> | ||
524 | <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> | ||
525 | </div> | ||
526 | </div> | ||
527 | <div class="footer"> | ||
528 | <hr> | ||
529 | Generated by GTK-Doc V1.10</div> | ||
530 | </body> | ||
531 | </html> | ||