[aff9d5]: docs / reference / html / GtkDataboxGraph.html  Maximize  Restore  History

Download this file

508 lines (486 with data), 24.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkDataboxGraph</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GtkDatabox Reference Manual">
<link rel="up" href="ch01.html" title="GtkDatabox">
<link rel="prev" href="GtkDatabox.html" title="GtkDatabox">
<link rel="next" href="GtkDataboxXYCGraph.html" title="GtkDataboxXYCGraph">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="GtkDatabox">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkDatabox.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GtkDatabox Reference Manual</th>
<td><a accesskey="n" href="GtkDataboxXYCGraph.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#GtkDataboxGraph.synopsis" class="shortcut">Top</a>
��|��
<a href="#GtkDataboxGraph.description" class="shortcut">Description</a>
��|��
<a href="#GtkDataboxGraph.object-hierarchy" class="shortcut">Object Hierarchy</a>
��|��
<a href="#GtkDataboxGraph.properties" class="shortcut">Properties</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkDataboxGraph"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkDataboxGraph.top_of_page"></a>GtkDataboxGraph</span></h2>
<p>GtkDataboxGraph ��� An abstract anchestor for all "real" graphs.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkDataboxGraph.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtkdatabox_graph.h&gt;
<a class="link" href="GtkDataboxGraph.html#GtkDataboxGraphPrivate" title="GtkDataboxGraphPrivate">GtkDataboxGraphPrivate</a>;
<a class="link" href="GtkDataboxGraph.html#GtkDataboxGraph-struct" title="GtkDataboxGraph">GtkDataboxGraph</a>;
<a
href="/usr/share/gtk-doc/html/gdk/gdk-Graphics-Contexts.html#GdkGC"
>GdkGC</a>* <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-get-gc" title="gtk_databox_graph_get_gc ()">gtk_databox_graph_get_gc</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph);
void <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-set-gc" title="gtk_databox_graph_set_gc ()">gtk_databox_graph_set_gc</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
<a
href="/usr/share/gtk-doc/html/gdk/gdk-Graphics-Contexts.html#GdkGC"
>GdkGC</a> *gc);
void <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-set-hide" title="gtk_databox_graph_set_hide ()">gtk_databox_graph_set_hide</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
gboolean hide);
gboolean <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-get-hide" title="gtk_databox_graph_get_hide ()">gtk_databox_graph_get_hide</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph);
void <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-set-color" title="gtk_databox_graph_set_color ()">gtk_databox_graph_set_color</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
<a
href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
<a
href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>* <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-get-color" title="gtk_databox_graph_get_color ()">gtk_databox_graph_get_color</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph);
void <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-set-size" title="gtk_databox_graph_set_size ()">gtk_databox_graph_set_size</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
gint size);
gint <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-get-size" title="gtk_databox_graph_get_size ()">gtk_databox_graph_get_size</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph);
gint <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-calculate-extrema" title="gtk_databox_graph_calculate_extrema ()">gtk_databox_graph_calculate_extrema</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
gfloat *min_x,
gfloat *max_x,
gfloat *min_y,
gfloat *max_y);
void <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-draw" title="gtk_databox_graph_draw ()">gtk_databox_graph_draw</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
<a class="link" href="GtkDatabox.html" title="GtkDatabox">GtkDatabox</a> *box);
<a
href="/usr/share/gtk-doc/html/gdk/gdk-Graphics-Contexts.html#GdkGC"
>GdkGC</a>* <a class="link" href="GtkDataboxGraph.html#gtk-databox-graph-create-gc" title="gtk_databox_graph_create_gc ()">gtk_databox_graph_create_gc</a> (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
<a class="link" href="GtkDatabox.html" title="GtkDatabox">GtkDatabox</a> *box);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkDataboxGraph.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GtkDataboxGraph
+----<a class="link" href="GtkDataboxXYCGraph.html" title="GtkDataboxXYCGraph">GtkDataboxXYCGraph</a>
+----<a class="link" href="GtkDataboxGrid.html" title="GtkDataboxGrid">GtkDataboxGrid</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkDataboxGraph.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GtkDataboxGraph.html#GtkDataboxGraph--color" title='The "color" property'>color</a>" gpointer : Read / Write
"<a class="link" href="GtkDataboxGraph.html#GtkDataboxGraph--hide" title='The "hide" property'>hide</a>" gboolean : Read / Write
"<a class="link" href="GtkDataboxGraph.html#GtkDataboxGraph--size" title='The "size" property'>size</a>" gint : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkDataboxGraph.description"></a><h2>Description</h2>
<p>
GtkDataboxGraphs can display data or other things in a <a class="link" href="GtkDatabox.html" title="GtkDatabox"><span class="type">GtkDatabox</span></a> widget.
</p>
<p>
This class is just the basic interface. Other graph classes are derived from this
class and implement some real things.</p>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="GtkDataboxGraph.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GtkDataboxGraphPrivate"></a><h3>GtkDataboxGraphPrivate</h3>
<pre class="programlisting">typedef struct _GtkDataboxGraphPrivate GtkDataboxGraphPrivate;</pre>
<p>
A private data structure used by the <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a>. It shields all internal things
from developers who are just using the object.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkDataboxGraph-struct"></a><h3>GtkDataboxGraph</h3>
<pre class="programlisting">typedef struct _GtkDataboxGraph GtkDataboxGraph;</pre>
<p>
The GtkDataboxGraph is the base class for all kinds of graphs (e.g. lines, points, decorations like coordinate crosses)
to be shown in a <a class="link" href="GtkDatabox.html" title="GtkDatabox"><span class="type">GtkDatabox</span></a> wiget.
</p>
<p>
Implemented by <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">_GtkDataboxGraph</span></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-get-gc"></a><h3>gtk_databox_graph_get_gc ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gdk/gdk-Graphics-Contexts.html#GdkGC"
>GdkGC</a>* gtk_databox_graph_get_gc (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph);</pre>
<p>
Gets the current graphics context of the graph.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>��:</span></p></td>
<td> The current graphics context of the graph.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-set-gc"></a><h3>gtk_databox_graph_set_gc ()</h3>
<pre class="programlisting">void gtk_databox_graph_set_gc (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
<a
href="/usr/share/gtk-doc/html/gdk/gdk-Graphics-Contexts.html#GdkGC"
>GdkGC</a> *gc);</pre>
<p>
Sets the graphics context which the <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object is supposed to be using when drawing itself.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em>��:</span></p></td>
<td> Graphics contex for the graph object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-set-hide"></a><h3>gtk_databox_graph_set_hide ()</h3>
<pre class="programlisting">void gtk_databox_graph_set_hide (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
gboolean hide);</pre>
<p>
Hidden graphs are not shown, when the <a class="link" href="GtkDatabox.html" title="GtkDatabox"><span class="type">GtkDatabox</span></a> containing them is redrawn.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>hide</code></em>��:</span></p></td>
<td> Declares whether should be hidden (true) or not (false).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-get-hide"></a><h3>gtk_databox_graph_get_hide ()</h3>
<pre class="programlisting">gboolean gtk_databox_graph_get_hide (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph);</pre>
<p>
Gets the current "hide" status.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>��:</span></p></td>
<td> Whether the graph is hidden (true) or not (false).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-set-color"></a><h3>gtk_databox_graph_set_color ()</h3>
<pre class="programlisting">void gtk_databox_graph_set_color (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
<a
href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Sets the color which the <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object is supposed to be using when drawing itself.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em>��:</span></p></td>
<td> Color which is to be used by the graph object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-get-color"></a><h3>gtk_databox_graph_get_color ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>* gtk_databox_graph_get_color (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph);</pre>
<p>
Gets the current color of the graph elements (e.g. points).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>��:</span></p></td>
<td> The color of the graph.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-set-size"></a><h3>gtk_databox_graph_set_size ()</h3>
<pre class="programlisting">void gtk_databox_graph_set_size (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
gint size);</pre>
<p>
Sets the size (e.g. line width) which the <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object is supposed to be using when drawing itself.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em>��:</span></p></td>
<td> Size of graph elements for the graph object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-get-size"></a><h3>gtk_databox_graph_get_size ()</h3>
<pre class="programlisting">gint gtk_databox_graph_get_size (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph);</pre>
<p>
Gets the size of the graph elements (e.g. the line width).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>��:</span></p></td>
<td> size of the graph elements
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-calculate-extrema"></a><h3>gtk_databox_graph_calculate_extrema ()</h3>
<pre class="programlisting">gint gtk_databox_graph_calculate_extrema (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
gfloat *min_x,
gfloat *max_x,
gfloat *min_y,
gfloat *max_y);</pre>
<p>
Virtual function which determines the minimum and maximum x and y values of the values of this
<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object if applicable (there are graphs which do
not contain data).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_x</code></em>��:</span></p></td>
<td> Will be filled with the lowest x value of the dataset
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max_x</code></em>��:</span></p></td>
<td> Will be filled with the highest x value of the dataset
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_y</code></em>��:</span></p></td>
<td> Will be filled with the lowest y value of the dataset
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max_y</code></em>��:</span></p></td>
<td> Will be filled with the highest y value of the dataset
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>��:</span></p></td>
<td> 0 on success,
-1 if no data is available,
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-draw"></a><h3>gtk_databox_graph_draw ()</h3>
<pre class="programlisting">void gtk_databox_graph_draw (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
<a class="link" href="GtkDatabox.html" title="GtkDatabox">GtkDatabox</a> *box);</pre>
<p>
Virtual function which draws the <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> on the drawing area of the GtkDatabox object.
</p>
<p>
Typically this function is called by <a class="link" href="GtkDatabox.html" title="GtkDatabox"><span class="type">GtkDatabox</span></a> objects.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>box</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDatabox.html" title="GtkDatabox"><span class="type">GtkDatabox</span></a> object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-databox-graph-create-gc"></a><h3>gtk_databox_graph_create_gc ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gdk/gdk-Graphics-Contexts.html#GdkGC"
>GdkGC</a>* gtk_databox_graph_create_gc (<a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph">GtkDataboxGraph</a> *graph,
<a class="link" href="GtkDatabox.html" title="GtkDatabox">GtkDatabox</a> *box);</pre>
<p>
Virtual function which creates a graphics context for the <em class="parameter"><code>graph</code></em>.
</p>
<p>
Typically called by derived graph objects when the graphics context is needed for the first time.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDataboxGraph.html" title="GtkDataboxGraph"><span class="type">GtkDataboxGraph</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>box</code></em>��:</span></p></td>
<td> A <a class="link" href="GtkDatabox.html" title="GtkDatabox"><span class="type">GtkDatabox</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>��:</span></p></td>
<td> The new graphics context.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkDataboxGraph.property-details"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkDataboxGraph--color"></a><h3>The <code class="literal">"color"</code> property</h3>
<pre class="programlisting"> "color" gpointer : Read / Write</pre>
<p>Color of graph.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkDataboxGraph--hide"></a><h3>The <code class="literal">"hide"</code> property</h3>
<pre class="programlisting"> "hide" gboolean : Read / Write</pre>
<p>Determine if graph is hidden or not.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkDataboxGraph--size"></a><h3>The <code class="literal">"size"</code> property</h3>
<pre class="programlisting"> "size" gint : Read / Write</pre>
<p>Size of displayed items.</p>
<p>Default value: 0</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkDataboxGraph.see-also"></a><h2>See Also</h2>
<a class="link" href="GtkDatabox.html" title="GtkDatabox"><span class="type">GtkDatabox</span></a>, <a class="link" href="GtkDataboxPoints.html" title="GtkDataboxPoints"><span class="type">GtkDataboxPoints</span></a>, <a class="link" href="GtkDataboxLines.html" title="GtkDataboxLines"><span class="type">GtkDataboxLines</span></a>, <a class="link" href="GtkDataboxBars.html" title="GtkDataboxBars"><span class="type">GtkDataboxBars</span></a>, <a class="link" href="GtkDataboxGrid.html" title="GtkDataboxGrid"><span class="type">GtkDataboxGrid</span></a>, <a class="link" href="GtkDataboxCrossSimple.html" title="GtkDataboxCrossSimple"><span class="type">GtkDataboxCrossSimple</span></a>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.10</div>
</body>
</html>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks