goocanvas 0.90.6-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. data/ChangeLog +87 -0
  2. data/README +37 -0
  3. data/Rakefile +14 -0
  4. data/ext/goocanvas/depend +5 -0
  5. data/ext/goocanvas/extconf.rb +66 -0
  6. data/ext/goocanvas/goocanvas.def +2 -0
  7. data/ext/goocanvas/rbgoocairo.c +74 -0
  8. data/ext/goocanvas/rbgoocanvas.c +236 -0
  9. data/ext/goocanvas/rbgoocanvas.h +66 -0
  10. data/ext/goocanvas/rbgoocanvasellipse.c +50 -0
  11. data/ext/goocanvas/rbgoocanvasgroup.c +41 -0
  12. data/ext/goocanvas/rbgoocanvasimage.c +45 -0
  13. data/ext/goocanvas/rbgoocanvasitem.c +358 -0
  14. data/ext/goocanvas/rbgoocanvaspolyline.c +102 -0
  15. data/ext/goocanvas/rbgoocanvasrect.c +47 -0
  16. data/ext/goocanvas/rbgoocanvasstyle.c +61 -0
  17. data/ext/goocanvas/rbgoocanvastable.c +41 -0
  18. data/ext/goocanvas/rbgoocanvastext.c +58 -0
  19. data/ext/goocanvas/rbgoocanvaswidget.c +48 -0
  20. data/ext/goocanvas/rbgooutils.c +44 -0
  21. data/extconf.rb +49 -0
  22. data/lib/1.8/goocanvas.so +0 -0
  23. data/lib/1.9/goocanvas.so +0 -0
  24. data/lib/goocanvas.rb +145 -0
  25. data/sample/demo-arrowhead.rb +315 -0
  26. data/sample/demo-fifteen.rb +218 -0
  27. data/sample/demo-primitives.rb +720 -0
  28. data/sample/demo.rb +84 -0
  29. data/sample/flower.png +0 -0
  30. data/sample/scalability-demo.rb +130 -0
  31. data/sample/simple-demo.rb +35 -0
  32. data/sample/table-demo.rb +137 -0
  33. data/sample/toroid.png +0 -0
  34. data/sample/units-demo.rb +80 -0
  35. data/sample/widgets-demo.rb +197 -0
  36. data/vendor/local/bin/libgoocanvas-3.dll +0 -0
  37. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvas.h +334 -0
  38. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasatk.h +22 -0
  39. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasellipse.h +120 -0
  40. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasenumtypes.h +33 -0
  41. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasgrid.h +153 -0
  42. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasgroup.h +109 -0
  43. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasimage.h +121 -0
  44. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasitem.h +479 -0
  45. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasitemmodel.h +275 -0
  46. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasitemsimple.h +247 -0
  47. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasmarshal.h +61 -0
  48. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvaspath.h +116 -0
  49. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvaspolyline.h +176 -0
  50. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasprivate.h +59 -0
  51. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasrect.h +121 -0
  52. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasstyle.h +110 -0
  53. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvastable.h +139 -0
  54. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvastext.h +133 -0
  55. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasutils.h +333 -0
  56. data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvaswidget.h +66 -0
  57. data/vendor/local/include/goocanvas-1.0.0/goocanvas/stamp-goocanvasmarshal.h +1 -0
  58. data/vendor/local/lib/libgoocanvas.a +0 -0
  59. data/vendor/local/lib/libgoocanvas.dll.a +0 -0
  60. data/vendor/local/lib/pkgconfig/goocanvas.pc +13 -0
  61. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvas.html +1982 -0
  62. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasEllipse.html +269 -0
  63. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasEllipseModel.html +274 -0
  64. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasGrid.html +469 -0
  65. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasGridModel.html +476 -0
  66. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasGroup.html +183 -0
  67. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasGroupModel.html +184 -0
  68. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasImage.html +247 -0
  69. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasImageModel.html +252 -0
  70. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasItem.html +3014 -0
  71. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasItemModel.html +1764 -0
  72. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasItemModelSimple.html +298 -0
  73. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasItemSimple.html +809 -0
  74. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasPath.html +279 -0
  75. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasPathModel.html +280 -0
  76. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasPolyline.html +369 -0
  77. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasPolylineModel.html +375 -0
  78. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasRect.html +247 -0
  79. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasRectModel.html +252 -0
  80. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasStyle.html +489 -0
  81. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasTable.html +452 -0
  82. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasTableModel.html +452 -0
  83. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasText.html +324 -0
  84. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasTextModel.html +287 -0
  85. data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasWidget.html +266 -0
  86. data/vendor/local/share/gtk-doc/html/goocanvas/ch01.html +53 -0
  87. data/vendor/local/share/gtk-doc/html/goocanvas/ch02.html +50 -0
  88. data/vendor/local/share/gtk-doc/html/goocanvas/ch03.html +62 -0
  89. data/vendor/local/share/gtk-doc/html/goocanvas/ch04.html +60 -0
  90. data/vendor/local/share/gtk-doc/html/goocanvas/ch05.html +33 -0
  91. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-GooCanvas-Types.html +815 -0
  92. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-architecture.html +157 -0
  93. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-coordinates.html +106 -0
  94. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-creating-items.html +420 -0
  95. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-model-view-canvas.html +246 -0
  96. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-overview.html +106 -0
  97. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-simple-canvas.html +238 -0
  98. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-wysiwyg.html +84 -0
  99. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas.devhelp +608 -0
  100. data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas.devhelp2 +639 -0
  101. data/vendor/local/share/gtk-doc/html/goocanvas/home.png +0 -0
  102. data/vendor/local/share/gtk-doc/html/goocanvas/index.html +138 -0
  103. data/vendor/local/share/gtk-doc/html/goocanvas/index.sgml +814 -0
  104. data/vendor/local/share/gtk-doc/html/goocanvas/left.png +0 -0
  105. data/vendor/local/share/gtk-doc/html/goocanvas/right.png +0 -0
  106. data/vendor/local/share/gtk-doc/html/goocanvas/style.css +257 -0
  107. data/vendor/local/share/gtk-doc/html/goocanvas/up.png +0 -0
  108. data/vendor/local/share/gtk-doc/tmpl/goocanvas/dummy.sgml +0 -0
  109. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvas-unused.sgml +0 -0
  110. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvas.sgml +536 -0
  111. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasellipse.sgml +82 -0
  112. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasellipsemodel.sgml +82 -0
  113. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasgrid.sgml +176 -0
  114. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasgridmodel.sgml +176 -0
  115. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasgroup.sgml +58 -0
  116. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasgroupmodel.sgml +58 -0
  117. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasimage.sgml +81 -0
  118. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasimagemodel.sgml +81 -0
  119. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasitem.sgml +773 -0
  120. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasitemmodel.sgml +490 -0
  121. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasitemmodelsimple.sgml +135 -0
  122. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasitemsimple.sgml +254 -0
  123. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaspath.sgml +64 -0
  124. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaspathmodel.sgml +64 -0
  125. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaspolyline.sgml +109 -0
  126. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaspolylinemodel.sgml +109 -0
  127. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasrect.sgml +72 -0
  128. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasrectmodel.sgml +72 -0
  129. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasstyle.sgml +186 -0
  130. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvastable.sgml +158 -0
  131. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvastablemodel.sgml +158 -0
  132. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvastext.sgml +103 -0
  133. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvastextmodel.sgml +93 -0
  134. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasutils.sgml +241 -0
  135. data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaswidget.sgml +73 -0
  136. metadata +218 -0
@@ -0,0 +1,1982 @@
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>GooCanvas</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
+ <link rel="home" href="index.html" title="GooCanvas Reference Manual">
8
+ <link rel="up" href="ch02.html" title="Core Objects">
9
+ <link rel="prev" href="ch02.html" title="Core Objects">
10
+ <link rel="next" href="GooCanvasItem.html" title="GooCanvasItem">
11
+ <meta name="generator" content="GTK-Doc V1.14 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
14
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
+ <tr valign="middle">
17
+ <td><a accesskey="p" href="ch02.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
+ <th width="100%" align="center">GooCanvas Reference Manual</th>
21
+ <td><a accesskey="n" href="GooCanvasItem.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
+ </tr>
23
+ <tr><td colspan="5" class="shortcuts">
24
+ <a href="#GooCanvas.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#GooCanvas.description" class="shortcut">Description</a>
27
+  | 
28
+ <a href="#GooCanvas.object-hierarchy" class="shortcut">Object Hierarchy</a>
29
+  | 
30
+ <a href="#GooCanvas.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31
+  | 
32
+ <a href="#GooCanvas.properties" class="shortcut">Properties</a>
33
+  | 
34
+ <a href="#GooCanvas.signals" class="shortcut">Signals</a>
35
+ </td></tr>
36
+ </table>
37
+ <div class="refentry" title="GooCanvas">
38
+ <a name="GooCanvas"></a><div class="titlepage"></div>
39
+ <div class="refnamediv"><table width="100%"><tr>
40
+ <td valign="top">
41
+ <h2><span class="refentrytitle"><a name="GooCanvas.top_of_page"></a>GooCanvas</span></h2>
42
+ <p>GooCanvas — the main canvas widget.</p>
43
+ </td>
44
+ <td valign="top" align="right"></td>
45
+ </tr></table></div>
46
+ <div class="refsynopsisdiv" title="Synopsis">
47
+ <a name="GooCanvas.synopsis"></a><h2>Synopsis</h2>
48
+ <pre class="synopsis"> <a class="link" href="GooCanvas.html#GooCanvas-struct" title="GooCanvas">GooCanvas</a>;
49
+ <a class="link" href="GooCanvas.html#GooCanvasClass" title="GooCanvasClass">GooCanvasClass</a>;
50
+
51
+ <span class="returnvalue">GtkWidget</span>* <a class="link" href="GooCanvas.html#goo-canvas-new" title="goo_canvas_new ()">goo_canvas_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
52
+
53
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* <a class="link" href="GooCanvas.html#goo-canvas-get-root-item" title="goo_canvas_get_root_item ()">goo_canvas_get_root_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
54
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-set-root-item" title="goo_canvas_set_root_item ()">goo_canvas_set_root_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
55
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>);
56
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* <a class="link" href="GooCanvas.html#goo-canvas-get-root-item-model" title="goo_canvas_get_root_item_model ()">goo_canvas_get_root_item_model</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
57
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-set-root-item-model" title="goo_canvas_set_root_item_model ()">goo_canvas_set_root_item_model</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
58
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);
59
+
60
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* <a class="link" href="GooCanvas.html#goo-canvas-get-static-root-item" title="goo_canvas_get_static_root_item ()">goo_canvas_get_static_root_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
61
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-set-static-root-item" title="goo_canvas_set_static_root_item ()">goo_canvas_set_static_root_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
62
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>);
63
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* <a class="link" href="GooCanvas.html#goo-canvas-get-static-root-item-model" title="goo_canvas_get_static_root_item_model ()">goo_canvas_get_static_root_item_model</a>
64
+ (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
65
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-set-static-root-item-model" title="goo_canvas_set_static_root_item_model ()">goo_canvas_set_static_root_item_model</a>
66
+ (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
67
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);
68
+
69
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-get-bounds" title="goo_canvas_get_bounds ()">goo_canvas_get_bounds</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
70
+ <em class="parameter"><code><span class="type">gdouble</span> *left</code></em>,
71
+ <em class="parameter"><code><span class="type">gdouble</span> *top</code></em>,
72
+ <em class="parameter"><code><span class="type">gdouble</span> *right</code></em>,
73
+ <em class="parameter"><code><span class="type">gdouble</span> *bottom</code></em>);
74
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-set-bounds" title="goo_canvas_set_bounds ()">goo_canvas_set_bounds</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
75
+ <em class="parameter"><code><span class="type">gdouble</span> left</code></em>,
76
+ <em class="parameter"><code><span class="type">gdouble</span> top</code></em>,
77
+ <em class="parameter"><code><span class="type">gdouble</span> right</code></em>,
78
+ <em class="parameter"><code><span class="type">gdouble</span> bottom</code></em>);
79
+ <span class="returnvalue">gdouble</span> <a class="link" href="GooCanvas.html#goo-canvas-get-scale" title="goo_canvas_get_scale ()">goo_canvas_get_scale</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
80
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-set-scale" title="goo_canvas_set_scale ()">goo_canvas_set_scale</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
81
+ <em class="parameter"><code><span class="type">gdouble</span> scale</code></em>);
82
+
83
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* <a class="link" href="GooCanvas.html#goo-canvas-get-item" title="goo_canvas_get_item ()">goo_canvas_get_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
84
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);
85
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* <a class="link" href="GooCanvas.html#goo-canvas-get-item-at" title="goo_canvas_get_item_at ()">goo_canvas_get_item_at</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
86
+ <em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
87
+ <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
88
+ <em class="parameter"><code><span class="type">gboolean</span> is_pointer_event</code></em>);
89
+ <span class="returnvalue">GList</span>* <a class="link" href="GooCanvas.html#goo-canvas-get-items-at" title="goo_canvas_get_items_at ()">goo_canvas_get_items_at</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
90
+ <em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
91
+ <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
92
+ <em class="parameter"><code><span class="type">gboolean</span> is_pointer_event</code></em>);
93
+ <span class="returnvalue">GList</span>* <a class="link" href="GooCanvas.html#goo-canvas-get-items-in-area" title="goo_canvas_get_items_in_area ()">goo_canvas_get_items_in_area</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
94
+ <em class="parameter"><code>const <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *area</code></em>,
95
+ <em class="parameter"><code><span class="type">gboolean</span> inside_area</code></em>,
96
+ <em class="parameter"><code><span class="type">gboolean</span> allow_overlaps</code></em>,
97
+ <em class="parameter"><code><span class="type">gboolean</span> include_containers</code></em>);
98
+
99
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-scroll-to" title="goo_canvas_scroll_to ()">goo_canvas_scroll_to</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
100
+ <em class="parameter"><code><span class="type">gdouble</span> left</code></em>,
101
+ <em class="parameter"><code><span class="type">gdouble</span> top</code></em>);
102
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-render" title="goo_canvas_render ()">goo_canvas_render</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
103
+ <em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
104
+ <em class="parameter"><code>const <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>,
105
+ <em class="parameter"><code><span class="type">gdouble</span> scale</code></em>);
106
+
107
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-convert-to-pixels" title="goo_canvas_convert_to_pixels ()">goo_canvas_convert_to_pixels</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
108
+ <em class="parameter"><code><span class="type">gdouble</span> *x</code></em>,
109
+ <em class="parameter"><code><span class="type">gdouble</span> *y</code></em>);
110
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-convert-from-pixels" title="goo_canvas_convert_from_pixels ()">goo_canvas_convert_from_pixels</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
111
+ <em class="parameter"><code><span class="type">gdouble</span> *x</code></em>,
112
+ <em class="parameter"><code><span class="type">gdouble</span> *y</code></em>);
113
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-convert-to-item-space" title="goo_canvas_convert_to_item_space ()">goo_canvas_convert_to_item_space</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
114
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
115
+ <em class="parameter"><code><span class="type">gdouble</span> *x</code></em>,
116
+ <em class="parameter"><code><span class="type">gdouble</span> *y</code></em>);
117
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-convert-from-item-space" title="goo_canvas_convert_from_item_space ()">goo_canvas_convert_from_item_space</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
118
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
119
+ <em class="parameter"><code><span class="type">gdouble</span> *x</code></em>,
120
+ <em class="parameter"><code><span class="type">gdouble</span> *y</code></em>);
121
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-convert-bounds-to-item-space" title="goo_canvas_convert_bounds_to_item_space ()">goo_canvas_convert_bounds_to_item_space</a>
122
+ (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
123
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
124
+ <em class="parameter"><code><a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);
125
+
126
+ <span class="returnvalue">GdkGrabStatus</span> <a class="link" href="GooCanvas.html#goo-canvas-pointer-grab" title="goo_canvas_pointer_grab ()">goo_canvas_pointer_grab</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
127
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
128
+ <em class="parameter"><code><span class="type">GdkEventMask</span> event_mask</code></em>,
129
+ <em class="parameter"><code><span class="type">GdkCursor</span> *cursor</code></em>,
130
+ <em class="parameter"><code><span class="type">guint32</span> time</code></em>);
131
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-pointer-ungrab" title="goo_canvas_pointer_ungrab ()">goo_canvas_pointer_ungrab</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
132
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
133
+ <em class="parameter"><code><span class="type">guint32</span> time</code></em>);
134
+
135
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-grab-focus" title="goo_canvas_grab_focus ()">goo_canvas_grab_focus</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
136
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>);
137
+ <span class="returnvalue">GdkGrabStatus</span> <a class="link" href="GooCanvas.html#goo-canvas-keyboard-grab" title="goo_canvas_keyboard_grab ()">goo_canvas_keyboard_grab</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
138
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
139
+ <em class="parameter"><code><span class="type">gboolean</span> owner_events</code></em>,
140
+ <em class="parameter"><code><span class="type">guint32</span> time</code></em>);
141
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-keyboard-ungrab" title="goo_canvas_keyboard_ungrab ()">goo_canvas_keyboard_ungrab</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
142
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
143
+ <em class="parameter"><code><span class="type">guint32</span> time</code></em>);
144
+
145
+ <a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="returnvalue">cairo_t</span></a>* <a class="link" href="GooCanvas.html#goo-canvas-create-cairo-context" title="goo_canvas_create_cairo_context ()">goo_canvas_create_cairo_context</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
146
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* <a class="link" href="GooCanvas.html#goo-canvas-create-item" title="goo_canvas_create_item ()">goo_canvas_create_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
147
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);
148
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-unregister-item" title="goo_canvas_unregister_item ()">goo_canvas_unregister_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
149
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);
150
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-register-widget-item" title="goo_canvas_register_widget_item ()">goo_canvas_register_widget_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
151
+ <em class="parameter"><code><a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> *witem</code></em>);
152
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-unregister-widget-item" title="goo_canvas_unregister_widget_item ()">goo_canvas_unregister_widget_item</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
153
+ <em class="parameter"><code><a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> *witem</code></em>);
154
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-update" title="goo_canvas_update ()">goo_canvas_update</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
155
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-request-update" title="goo_canvas_request_update ()">goo_canvas_request_update</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
156
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-request-redraw" title="goo_canvas_request_redraw ()">goo_canvas_request_redraw</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
157
+ <em class="parameter"><code>const <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);
158
+ <span class="returnvalue">void</span> <a class="link" href="GooCanvas.html#goo-canvas-request-item-redraw" title="goo_canvas_request_item_redraw ()">goo_canvas_request_item_redraw</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
159
+ <em class="parameter"><code>const <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>,
160
+ <em class="parameter"><code><span class="type">gboolean</span> is_static</code></em>);
161
+ <span class="returnvalue">gdouble</span> <a class="link" href="GooCanvas.html#goo-canvas-get-default-line-width" title="goo_canvas_get_default_line_width ()">goo_canvas_get_default_line_width</a> (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);
162
+ </pre>
163
+ </div>
164
+ <div class="refsect1" title="Object Hierarchy">
165
+ <a name="GooCanvas.object-hierarchy"></a><h2>Object Hierarchy</h2>
166
+ <pre class="synopsis">
167
+ GObject
168
+ +----GInitiallyUnowned
169
+ +----GtkObject
170
+ +----GtkWidget
171
+ +----GtkContainer
172
+ +----GooCanvas
173
+ </pre>
174
+ </div>
175
+ <div class="refsect1" title="Implemented Interfaces">
176
+ <a name="GooCanvas.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
177
+ <p>
178
+ GooCanvas implements
179
+ AtkImplementorIface and GtkBuildable.</p>
180
+ </div>
181
+ <div class="refsect1" title="Properties">
182
+ <a name="GooCanvas.properties"></a><h2>Properties</h2>
183
+ <pre class="synopsis">
184
+ "<a class="link" href="GooCanvas.html#GooCanvas--anchor" title='The "anchor" property'>anchor</a>" <span class="type">GtkAnchorType</span> : Read / Write
185
+ "<a class="link" href="GooCanvas.html#GooCanvas--automatic-bounds" title='The "automatic-bounds" property'>automatic-bounds</a>" <span class="type">gboolean</span> : Read / Write
186
+ "<a class="link" href="GooCanvas.html#GooCanvas--background-color" title='The "background-color" property'>background-color</a>" <span class="type">gchar</span>* : Write
187
+ "<a class="link" href="GooCanvas.html#GooCanvas--background-color-rgb" title='The "background-color-rgb" property'>background-color-rgb</a>" <span class="type">guint</span> : Write
188
+ "<a class="link" href="GooCanvas.html#GooCanvas--bounds-from-origin" title='The "bounds-from-origin" property'>bounds-from-origin</a>" <span class="type">gboolean</span> : Read / Write
189
+ "<a class="link" href="GooCanvas.html#GooCanvas--bounds-padding" title='The "bounds-padding" property'>bounds-padding</a>" <span class="type">gdouble</span> : Read / Write
190
+ "<a class="link" href="GooCanvas.html#GooCanvas--clear-background" title='The "clear-background" property'>clear-background</a>" <span class="type">gboolean</span> : Read / Write
191
+ "<a class="link" href="GooCanvas.html#GooCanvas--integer-layout" title='The "integer-layout" property'>integer-layout</a>" <span class="type">gboolean</span> : Read / Write
192
+ "<a class="link" href="GooCanvas.html#GooCanvas--redraw-when-scrolled" title='The "redraw-when-scrolled" property'>redraw-when-scrolled</a>" <span class="type">gboolean</span> : Read / Write
193
+ "<a class="link" href="GooCanvas.html#GooCanvas--resolution-x" title='The "resolution-x" property'>resolution-x</a>" <span class="type">gdouble</span> : Read / Write
194
+ "<a class="link" href="GooCanvas.html#GooCanvas--resolution-y" title='The "resolution-y" property'>resolution-y</a>" <span class="type">gdouble</span> : Read / Write
195
+ "<a class="link" href="GooCanvas.html#GooCanvas--scale" title='The "scale" property'>scale</a>" <span class="type">gdouble</span> : Read / Write
196
+ "<a class="link" href="GooCanvas.html#GooCanvas--scale-x" title='The "scale-x" property'>scale-x</a>" <span class="type">gdouble</span> : Read / Write
197
+ "<a class="link" href="GooCanvas.html#GooCanvas--scale-y" title='The "scale-y" property'>scale-y</a>" <span class="type">gdouble</span> : Read / Write
198
+ "<a class="link" href="GooCanvas.html#GooCanvas--units" title='The "units" property'>units</a>" <span class="type">GtkUnit</span> : Read / Write
199
+ "<a class="link" href="GooCanvas.html#GooCanvas--x1" title='The "x1" property'>x1</a>" <span class="type">gdouble</span> : Read / Write
200
+ "<a class="link" href="GooCanvas.html#GooCanvas--x2" title='The "x2" property'>x2</a>" <span class="type">gdouble</span> : Read / Write
201
+ "<a class="link" href="GooCanvas.html#GooCanvas--y1" title='The "y1" property'>y1</a>" <span class="type">gdouble</span> : Read / Write
202
+ "<a class="link" href="GooCanvas.html#GooCanvas--y2" title='The "y2" property'>y2</a>" <span class="type">gdouble</span> : Read / Write
203
+ </pre>
204
+ </div>
205
+ <div class="refsect1" title="Signals">
206
+ <a name="GooCanvas.signals"></a><h2>Signals</h2>
207
+ <pre class="synopsis">
208
+ "<a class="link" href="GooCanvas.html#GooCanvas-item-created" title='The "item-created" signal'>item-created</a>" : Run Last
209
+ "<a class="link" href="GooCanvas.html#GooCanvas-set-scroll-adjustments" title='The "set-scroll-adjustments" signal'>set-scroll-adjustments</a>" : Run Last / Action
210
+ </pre>
211
+ </div>
212
+ <div class="refsect1" title="Description">
213
+ <a name="GooCanvas.description"></a><h2>Description</h2>
214
+ <p>
215
+ <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> is the main widget containing a number of canvas items.
216
+ </p>
217
+ <p>
218
+ Here is a simple example:
219
+ </p>
220
+ <p>
221
+ </p>
222
+ <div class="informalexample">
223
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
224
+ <tbody>
225
+ <tr>
226
+ <td class="listing_lines" align="right"><pre>1
227
+ 2
228
+ 3
229
+ 4
230
+ 5
231
+ 6
232
+ 7
233
+ 8
234
+ 9
235
+ 10
236
+ 11
237
+ 12
238
+ 13
239
+ 14
240
+ 15
241
+ 16
242
+ 17
243
+ 18
244
+ 19
245
+ 20
246
+ 21
247
+ 22
248
+ 23
249
+ 24
250
+ 25
251
+ 26
252
+ 27
253
+ 28
254
+ 29
255
+ 30
256
+ 31
257
+ 32
258
+ 33
259
+ 34
260
+ 35
261
+ 36
262
+ 37
263
+ 38
264
+ 39
265
+ 40
266
+ 41
267
+ 42
268
+ 43
269
+ 44
270
+ 45
271
+ 46
272
+ 47
273
+ 48
274
+ 49
275
+ 50
276
+ 51
277
+ 52
278
+ 53
279
+ 54
280
+ 55
281
+ 56
282
+ 57
283
+ 58
284
+ 59
285
+ 60
286
+ 61
287
+ 62
288
+ 63
289
+ 64
290
+ 65
291
+ 66
292
+ 67
293
+ 68
294
+ 69
295
+ 70
296
+ 71
297
+ 72
298
+ 73
299
+ 74
300
+ 75</pre></td>
301
+ <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;goocanvas.h&gt;</span>
302
+
303
+ <span class="keyword">static</span><span class="normal"> gboolean </span><span class="function">on_rect_button_press</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GooCanvasItem.html">GooCanvasItem</a> </span><span class="symbol">*</span><span class="normal">view</span><span class="symbol">,</span>
304
+ <span class="normal"> <a href="GooCanvasItem.html">GooCanvasItem</a> </span><span class="symbol">*</span><span class="normal">target</span><span class="symbol">,</span>
305
+ <span class="normal"> GdkEventButton </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
306
+ <span class="normal"> gpointer data</span><span class="symbol">);</span>
307
+
308
+ <span class="type">int</span>
309
+ <span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
310
+ <span class="cbracket">{</span>
311
+ <span class="normal"> GtkWidget </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">scrolled_win</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">canvas</span><span class="symbol">;</span>
312
+ <span class="normal"> <a href="GooCanvasItem.html">GooCanvasItem</a> </span><span class="symbol">*</span><span class="normal">root</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">rect_item</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">text_item</span><span class="symbol">;</span>
313
+
314
+ <span class="normal"> </span><span class="comment">/* Initialize GTK+. */</span>
315
+ <span class="normal"> gtk_set_locale </span><span class="symbol">();</span>
316
+ <span class="normal"> </span><span class="function">gtk_init</span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
317
+
318
+ <span class="normal"> </span><span class="comment">/* Create the window and widgets. */</span>
319
+ <span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gtk_window_new</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GTK_WINDOW_TOPLEVEL</span><span class="symbol">);</span>
320
+ <span class="normal"> </span><span class="function">gtk_window_set_default_size</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">640</span><span class="symbol">,</span><span class="normal"> </span><span class="number">600</span><span class="symbol">);</span>
321
+ <span class="normal"> </span><span class="function">gtk_widget_show</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
322
+ <span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"delete_event"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GtkSignalFunc</span><span class="symbol">)</span><span class="normal"> on_delete_event</span><span class="symbol">,</span>
323
+ <span class="normal"> NULL</span><span class="symbol">);</span>
324
+
325
+ <span class="normal"> scrolled_win </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gtk_scrolled_window_new</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">NULL</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">);</span>
326
+ <span class="normal"> </span><span class="function">gtk_scrolled_window_set_shadow_type</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_SCROLLED_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">scrolled_win</span><span class="symbol">),</span>
327
+ <span class="normal"> GTK_SHADOW_IN</span><span class="symbol">);</span>
328
+ <span class="normal"> </span><span class="function">gtk_widget_show</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">scrolled_win</span><span class="symbol">);</span>
329
+ <span class="normal"> </span><span class="function">gtk_container_add</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> scrolled_win</span><span class="symbol">);</span>
330
+
331
+ <span class="normal"> canvas </span><span class="symbol">=</span><span class="normal"> goo_canvas_new </span><span class="symbol">();</span>
332
+ <span class="normal"> </span><span class="function">gtk_widget_set_size_request</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">canvas</span><span class="symbol">,</span><span class="normal"> </span><span class="number">600</span><span class="symbol">,</span><span class="normal"> </span><span class="number">450</span><span class="symbol">);</span>
333
+ <span class="normal"> </span><span class="function"><a href="GooCanvas.html#goo-canvas-set-bounds">goo_canvas_set_bounds</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GOO_CANVAS</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">canvas</span><span class="symbol">),</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1000</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1000</span><span class="symbol">);</span>
334
+ <span class="normal"> </span><span class="function">gtk_widget_show</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">canvas</span><span class="symbol">);</span>
335
+ <span class="normal"> </span><span class="function">gtk_container_add</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">scrolled_win</span><span class="symbol">),</span><span class="normal"> canvas</span><span class="symbol">);</span>
336
+
337
+ <span class="normal"> root </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvas.html#goo-canvas-get-root-item">goo_canvas_get_root_item</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GOO_CANVAS</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">canvas</span><span class="symbol">));</span>
338
+
339
+ <span class="normal"> </span><span class="comment">/* Add a few simple items. */</span>
340
+ <span class="normal"> rect_item </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvasRect.html#goo-canvas-rect-new">goo_canvas_rect_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">root</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> </span><span class="number">400</span><span class="symbol">,</span><span class="normal"> </span><span class="number">400</span><span class="symbol">,</span>
341
+ <span class="normal"> </span><span class="string">"line-width"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">10.0</span><span class="symbol">,</span>
342
+ <span class="normal"> </span><span class="string">"radius-x"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">20.0</span><span class="symbol">,</span>
343
+ <span class="normal"> </span><span class="string">"radius-y"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">10.0</span><span class="symbol">,</span>
344
+ <span class="normal"> </span><span class="string">"stroke-color"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"yellow"</span><span class="symbol">,</span>
345
+ <span class="normal"> </span><span class="string">"fill-color"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"red"</span><span class="symbol">,</span>
346
+ <span class="normal"> NULL</span><span class="symbol">);</span>
347
+
348
+ <span class="normal"> text_item </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvasText.html#goo-canvas-text-new">goo_canvas_text_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">root</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Hello World"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">300</span><span class="symbol">,</span><span class="normal"> </span><span class="number">300</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">,</span>
349
+ <span class="normal"> GTK_ANCHOR_CENTER</span><span class="symbol">,</span>
350
+ <span class="normal"> </span><span class="string">"font"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Sans 24"</span><span class="symbol">,</span>
351
+ <span class="normal"> NULL</span><span class="symbol">);</span>
352
+ <span class="normal"> </span><span class="function"><a href="GooCanvasItem.html#goo-canvas-item-rotate">goo_canvas_item_rotate</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">text_item</span><span class="symbol">,</span><span class="normal"> </span><span class="number">45</span><span class="symbol">,</span><span class="normal"> </span><span class="number">300</span><span class="symbol">,</span><span class="normal"> </span><span class="number">300</span><span class="symbol">);</span>
353
+
354
+ <span class="normal"> </span><span class="comment">/* Connect a signal handler for the rectangle item. */</span>
355
+ <span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">rect_item</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"button_press_event"</span><span class="symbol">,</span>
356
+ <span class="normal"> </span><span class="symbol">(</span><span class="normal">GtkSignalFunc</span><span class="symbol">)</span><span class="normal"> on_rect_button_press</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">);</span>
357
+
358
+ <span class="normal"> </span><span class="comment">/* Pass control to the GTK+ main event loop. */</span>
359
+ <span class="normal"> gtk_main </span><span class="symbol">();</span>
360
+
361
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
362
+ <span class="cbracket">}</span>
363
+
364
+
365
+ <span class="comment">/* This handles button presses in item views. We simply output a message to</span>
366
+ <span class="comment"> the console. */</span>
367
+ <span class="keyword">static</span><span class="normal"> gboolean</span>
368
+ <span class="function">on_rect_button_press</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GooCanvasItem.html">GooCanvasItem</a> </span><span class="symbol">*</span><span class="normal">item</span><span class="symbol">,</span>
369
+ <span class="normal"> <a href="GooCanvasItem.html">GooCanvasItem</a> </span><span class="symbol">*</span><span class="normal">target</span><span class="symbol">,</span>
370
+ <span class="normal"> GdkEventButton </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
371
+ <span class="normal"> gpointer data</span><span class="symbol">)</span>
372
+ <span class="cbracket">{</span>
373
+ <span class="normal"> </span><span class="function">g_print</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"rect item received button press event</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
374
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
375
+ <span class="cbracket">}</span></pre></td>
376
+ </tr>
377
+ </tbody>
378
+ </table>
379
+ </div>
380
+
381
+ <p>
382
+ </p>
383
+ </div>
384
+ <div class="refsect1" title="Details">
385
+ <a name="GooCanvas.details"></a><h2>Details</h2>
386
+ <div class="refsect2" title="GooCanvas">
387
+ <a name="GooCanvas-struct"></a><h3>GooCanvas</h3>
388
+ <pre class="programlisting">typedef struct _GooCanvas GooCanvas;</pre>
389
+ <p>
390
+ The <a class="link" href="GooCanvas.html#GooCanvas-struct" title="GooCanvas"><span class="type">GooCanvas</span></a> struct contains private data only.
391
+ </p>
392
+ </div>
393
+ <hr>
394
+ <div class="refsect2" title="GooCanvasClass">
395
+ <a name="GooCanvasClass"></a><h3>GooCanvasClass</h3>
396
+ <pre class="programlisting">typedef struct {
397
+ GooCanvasItem* (* create_item) (GooCanvas *canvas,
398
+ GooCanvasItemModel *model);
399
+
400
+ /* Signals. */
401
+ void (* item_created) (GooCanvas *canvas,
402
+ GooCanvasItem *item,
403
+ GooCanvasItemModel *model);
404
+ } GooCanvasClass;
405
+ </pre>
406
+ <p>
407
+ The <span class="type">GooCanvasClass</span> struct contains one virtual method that
408
+ subclasses may override.
409
+ </p>
410
+ <div class="variablelist"><table border="0">
411
+ <col align="left" valign="top">
412
+ <tbody>
413
+ <tr>
414
+ <td><p><span class="term"><em class="structfield"><code><a name="GooCanvasClass.create-item"></a>create_item</code></em> ()</span></p></td>
415
+ <td>a virtual method that subclasses may override to create custom
416
+ canvas items for item models.
417
+ </td>
418
+ </tr>
419
+ <tr>
420
+ <td><p><span class="term"><em class="structfield"><code><a name="GooCanvasClass.item-created"></a>item_created</code></em> ()</span></p></td>
421
+ <td>signal emitted when a new canvas item has been created.
422
+ Applications can connect to this to setup signal handlers for the new item.
423
+ </td>
424
+ </tr>
425
+ </tbody>
426
+ </table></div>
427
+ </div>
428
+ <hr>
429
+ <div class="refsect2" title="goo_canvas_new ()">
430
+ <a name="goo-canvas-new"></a><h3>goo_canvas_new ()</h3>
431
+ <pre class="programlisting"><span class="returnvalue">GtkWidget</span>* goo_canvas_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
432
+ <p>
433
+ Creates a new <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> widget.
434
+ </p>
435
+ <p>
436
+ A <a class="link" href="GooCanvasGroup.html" title="GooCanvasGroup"><span class="type">GooCanvasGroup</span></a> is created automatically as the root item of the canvas,
437
+ though this can be overriden with <a class="link" href="GooCanvas.html#goo-canvas-set-root-item" title="goo_canvas_set_root_item ()"><code class="function">goo_canvas_set_root_item()</code></a> or
438
+ <a class="link" href="GooCanvas.html#goo-canvas-set-root-item-model" title="goo_canvas_set_root_item_model ()"><code class="function">goo_canvas_set_root_item_model()</code></a>.
439
+ </p>
440
+ <div class="variablelist"><table border="0">
441
+ <col align="left" valign="top">
442
+ <tbody><tr>
443
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
444
+ <td> a new <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> widget.
445
+ </td>
446
+ </tr></tbody>
447
+ </table></div>
448
+ </div>
449
+ <hr>
450
+ <div class="refsect2" title="goo_canvas_get_root_item ()">
451
+ <a name="goo-canvas-get-root-item"></a><h3>goo_canvas_get_root_item ()</h3>
452
+ <pre class="programlisting"><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* goo_canvas_get_root_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
453
+ <p>
454
+ Gets the root item of the canvas, usually a <a class="link" href="GooCanvasGroup.html" title="GooCanvasGroup"><span class="type">GooCanvasGroup</span></a>.
455
+ </p>
456
+ <div class="variablelist"><table border="0">
457
+ <col align="left" valign="top">
458
+ <tbody>
459
+ <tr>
460
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
461
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
462
+ </td>
463
+ </tr>
464
+ <tr>
465
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
466
+ <td> the root item, or <code class="literal">NULL</code> if there is no root item.
467
+ </td>
468
+ </tr>
469
+ </tbody>
470
+ </table></div>
471
+ </div>
472
+ <hr>
473
+ <div class="refsect2" title="goo_canvas_set_root_item ()">
474
+ <a name="goo-canvas-set-root-item"></a><h3>goo_canvas_set_root_item ()</h3>
475
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_set_root_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
476
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>);</pre>
477
+ <p>
478
+ Sets the root item of the canvas. Any existing canvas items are removed.
479
+ </p>
480
+ <div class="variablelist"><table border="0">
481
+ <col align="left" valign="top">
482
+ <tbody>
483
+ <tr>
484
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
485
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
486
+ </td>
487
+ </tr>
488
+ <tr>
489
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
490
+ <td>the root canvas item.
491
+ </td>
492
+ </tr>
493
+ </tbody>
494
+ </table></div>
495
+ </div>
496
+ <hr>
497
+ <div class="refsect2" title="goo_canvas_get_root_item_model ()">
498
+ <a name="goo-canvas-get-root-item-model"></a><h3>goo_canvas_get_root_item_model ()</h3>
499
+ <pre class="programlisting"><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* goo_canvas_get_root_item_model (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
500
+ <p>
501
+ Gets the root item model of the canvas.
502
+ </p>
503
+ <div class="variablelist"><table border="0">
504
+ <col align="left" valign="top">
505
+ <tbody>
506
+ <tr>
507
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
508
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
509
+ </td>
510
+ </tr>
511
+ <tr>
512
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
513
+ <td> the root item model, or <code class="literal">NULL</code> if there is no root item model.
514
+ </td>
515
+ </tr>
516
+ </tbody>
517
+ </table></div>
518
+ </div>
519
+ <hr>
520
+ <div class="refsect2" title="goo_canvas_set_root_item_model ()">
521
+ <a name="goo-canvas-set-root-item-model"></a><h3>goo_canvas_set_root_item_model ()</h3>
522
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_set_root_item_model (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
523
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);</pre>
524
+ <p>
525
+ Sets the root item model of the canvas.
526
+ </p>
527
+ <p>
528
+ A hierarchy of canvas items will be created, corresponding to the hierarchy
529
+ of items in the model. Any current canvas items will be removed.
530
+ </p>
531
+ <div class="variablelist"><table border="0">
532
+ <col align="left" valign="top">
533
+ <tbody>
534
+ <tr>
535
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
536
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
537
+ </td>
538
+ </tr>
539
+ <tr>
540
+ <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
541
+ <td>a <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a>.
542
+ </td>
543
+ </tr>
544
+ </tbody>
545
+ </table></div>
546
+ </div>
547
+ <hr>
548
+ <div class="refsect2" title="goo_canvas_get_static_root_item ()">
549
+ <a name="goo-canvas-get-static-root-item"></a><h3>goo_canvas_get_static_root_item ()</h3>
550
+ <pre class="programlisting"><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* goo_canvas_get_static_root_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
551
+ <p>
552
+ Gets the static root item of the canvas.
553
+ </p>
554
+ <p>
555
+ Static items are exactly the same as ordinary canvas items, except that
556
+ they do not move or change size when the canvas is scrolled or the scale
557
+ changes.
558
+ </p>
559
+ <p>
560
+ Static items are added to the static root item in exactly the same way that
561
+ ordinary items are added to the root item.
562
+ </p>
563
+ <div class="variablelist"><table border="0">
564
+ <col align="left" valign="top">
565
+ <tbody>
566
+ <tr>
567
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
568
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
569
+ </td>
570
+ </tr>
571
+ <tr>
572
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
573
+ <td> the static root item, or <code class="literal">NULL</code>.
574
+ </td>
575
+ </tr>
576
+ </tbody>
577
+ </table></div>
578
+ </div>
579
+ <hr>
580
+ <div class="refsect2" title="goo_canvas_set_static_root_item ()">
581
+ <a name="goo-canvas-set-static-root-item"></a><h3>goo_canvas_set_static_root_item ()</h3>
582
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_set_static_root_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
583
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>);</pre>
584
+ <p>
585
+ Sets the static root item. Any existing static items are removed.
586
+ </p>
587
+ <p>
588
+ Static items are exactly the same as ordinary canvas items, except that
589
+ they do not move or change size when the canvas is scrolled or the scale
590
+ changes.
591
+ </p>
592
+ <p>
593
+ Static items are added to the static root item in exactly the same way that
594
+ ordinary items are added to the root item.
595
+ </p>
596
+ <div class="variablelist"><table border="0">
597
+ <col align="left" valign="top">
598
+ <tbody>
599
+ <tr>
600
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
601
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
602
+ </td>
603
+ </tr>
604
+ <tr>
605
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
606
+ <td>the static root item.
607
+ </td>
608
+ </tr>
609
+ </tbody>
610
+ </table></div>
611
+ </div>
612
+ <hr>
613
+ <div class="refsect2" title="goo_canvas_get_static_root_item_model ()">
614
+ <a name="goo-canvas-get-static-root-item-model"></a><h3>goo_canvas_get_static_root_item_model ()</h3>
615
+ <pre class="programlisting"><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* goo_canvas_get_static_root_item_model
616
+ (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
617
+ <p>
618
+ Gets the static root item model of the canvas.
619
+ </p>
620
+ <p>
621
+ Static item models are exactly the same as ordinary item models, except that
622
+ the corresponding items do not move or change size when the canvas is
623
+ scrolled or the scale changes.
624
+ </p>
625
+ <p>
626
+ Static items models are added to the static root item model in exactly the
627
+ same way that ordinary item models are added to the root item model.
628
+ </p>
629
+ <div class="variablelist"><table border="0">
630
+ <col align="left" valign="top">
631
+ <tbody>
632
+ <tr>
633
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
634
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
635
+ </td>
636
+ </tr>
637
+ <tr>
638
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
639
+ <td> the static root item model, or <code class="literal">NULL</code>.
640
+ </td>
641
+ </tr>
642
+ </tbody>
643
+ </table></div>
644
+ </div>
645
+ <hr>
646
+ <div class="refsect2" title="goo_canvas_set_static_root_item_model ()">
647
+ <a name="goo-canvas-set-static-root-item-model"></a><h3>goo_canvas_set_static_root_item_model ()</h3>
648
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_set_static_root_item_model
649
+ (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
650
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);</pre>
651
+ <p>
652
+ Sets the static root item model. Any existing static item models are
653
+ removed.
654
+ </p>
655
+ <p>
656
+ Static item models are exactly the same as ordinary item models, except that
657
+ the corresponding items do not move or change size when the canvas is
658
+ scrolled or the scale changes.
659
+ </p>
660
+ <p>
661
+ Static items models are added to the static root item model in exactly the
662
+ same way that ordinary item models are added to the root item model.
663
+ </p>
664
+ <div class="variablelist"><table border="0">
665
+ <col align="left" valign="top">
666
+ <tbody>
667
+ <tr>
668
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
669
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
670
+ </td>
671
+ </tr>
672
+ <tr>
673
+ <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
674
+ <td>the static root item model.
675
+ </td>
676
+ </tr>
677
+ </tbody>
678
+ </table></div>
679
+ </div>
680
+ <hr>
681
+ <div class="refsect2" title="goo_canvas_get_bounds ()">
682
+ <a name="goo-canvas-get-bounds"></a><h3>goo_canvas_get_bounds ()</h3>
683
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_get_bounds (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
684
+ <em class="parameter"><code><span class="type">gdouble</span> *left</code></em>,
685
+ <em class="parameter"><code><span class="type">gdouble</span> *top</code></em>,
686
+ <em class="parameter"><code><span class="type">gdouble</span> *right</code></em>,
687
+ <em class="parameter"><code><span class="type">gdouble</span> *bottom</code></em>);</pre>
688
+ <p>
689
+ Gets the bounds of the canvas, in canvas units.
690
+ </p>
691
+ <p>
692
+ By default, canvas units are pixels, though the <a class="link" href="GooCanvas.html#GooCanvas--units" title='The "units" property'><span class="type">"units"</span></a> property
693
+ can be used to change the units to points, inches or millimeters.
694
+ </p>
695
+ <div class="variablelist"><table border="0">
696
+ <col align="left" valign="top">
697
+ <tbody>
698
+ <tr>
699
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
700
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
701
+ </td>
702
+ </tr>
703
+ <tr>
704
+ <td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
705
+ <td>a pointer to a <span class="type">gdouble</span> to return the left edge, or <code class="literal">NULL</code>.
706
+ </td>
707
+ </tr>
708
+ <tr>
709
+ <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
710
+ <td>a pointer to a <span class="type">gdouble</span> to return the top edge, or <code class="literal">NULL</code>.
711
+ </td>
712
+ </tr>
713
+ <tr>
714
+ <td><p><span class="term"><em class="parameter"><code>right</code></em> :</span></p></td>
715
+ <td>a pointer to a <span class="type">gdouble</span> to return the right edge, or <code class="literal">NULL</code>.
716
+ </td>
717
+ </tr>
718
+ <tr>
719
+ <td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td>
720
+ <td>a pointer to a <span class="type">gdouble</span> to return the bottom edge, or <code class="literal">NULL</code>.
721
+ </td>
722
+ </tr>
723
+ </tbody>
724
+ </table></div>
725
+ </div>
726
+ <hr>
727
+ <div class="refsect2" title="goo_canvas_set_bounds ()">
728
+ <a name="goo-canvas-set-bounds"></a><h3>goo_canvas_set_bounds ()</h3>
729
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_set_bounds (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
730
+ <em class="parameter"><code><span class="type">gdouble</span> left</code></em>,
731
+ <em class="parameter"><code><span class="type">gdouble</span> top</code></em>,
732
+ <em class="parameter"><code><span class="type">gdouble</span> right</code></em>,
733
+ <em class="parameter"><code><span class="type">gdouble</span> bottom</code></em>);</pre>
734
+ <p>
735
+ Sets the bounds of the <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>, in canvas units.
736
+ </p>
737
+ <p>
738
+ By default, canvas units are pixels, though the <a class="link" href="GooCanvas.html#GooCanvas--units" title='The "units" property'><span class="type">"units"</span></a> property
739
+ can be used to change the units to points, inches or millimeters.
740
+ </p>
741
+ <div class="variablelist"><table border="0">
742
+ <col align="left" valign="top">
743
+ <tbody>
744
+ <tr>
745
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
746
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
747
+ </td>
748
+ </tr>
749
+ <tr>
750
+ <td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
751
+ <td>the left edge.
752
+ </td>
753
+ </tr>
754
+ <tr>
755
+ <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
756
+ <td>the top edge.
757
+ </td>
758
+ </tr>
759
+ <tr>
760
+ <td><p><span class="term"><em class="parameter"><code>right</code></em> :</span></p></td>
761
+ <td>the right edge.
762
+ </td>
763
+ </tr>
764
+ <tr>
765
+ <td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td>
766
+ <td>the bottom edge.
767
+ </td>
768
+ </tr>
769
+ </tbody>
770
+ </table></div>
771
+ </div>
772
+ <hr>
773
+ <div class="refsect2" title="goo_canvas_get_scale ()">
774
+ <a name="goo-canvas-get-scale"></a><h3>goo_canvas_get_scale ()</h3>
775
+ <pre class="programlisting"><span class="returnvalue">gdouble</span> goo_canvas_get_scale (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
776
+ <p>
777
+ Gets the current scale of the canvas.
778
+ </p>
779
+ <p>
780
+ The scale specifies the magnification factor of the canvas, e.g. if an item
781
+ has a width of 2 pixels and the scale is set to 3, it will be displayed with
782
+ a width of 2 x 3 = 6 pixels.
783
+ </p>
784
+ <div class="variablelist"><table border="0">
785
+ <col align="left" valign="top">
786
+ <tbody>
787
+ <tr>
788
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
789
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
790
+ </td>
791
+ </tr>
792
+ <tr>
793
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
794
+ <td> the current scale setting.
795
+ </td>
796
+ </tr>
797
+ </tbody>
798
+ </table></div>
799
+ </div>
800
+ <hr>
801
+ <div class="refsect2" title="goo_canvas_set_scale ()">
802
+ <a name="goo-canvas-set-scale"></a><h3>goo_canvas_set_scale ()</h3>
803
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_set_scale (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
804
+ <em class="parameter"><code><span class="type">gdouble</span> scale</code></em>);</pre>
805
+ <p>
806
+ Sets the scale of the canvas.
807
+ </p>
808
+ <p>
809
+ The scale specifies the magnification factor of the canvas, e.g. if an item
810
+ has a width of 2 pixels and the scale is set to 3, it will be displayed with
811
+ a width of 2 x 3 = 6 pixels.
812
+ </p>
813
+ <div class="variablelist"><table border="0">
814
+ <col align="left" valign="top">
815
+ <tbody>
816
+ <tr>
817
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
818
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
819
+ </td>
820
+ </tr>
821
+ <tr>
822
+ <td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
823
+ <td>the new scale setting.
824
+ </td>
825
+ </tr>
826
+ </tbody>
827
+ </table></div>
828
+ </div>
829
+ <hr>
830
+ <div class="refsect2" title="goo_canvas_get_item ()">
831
+ <a name="goo-canvas-get-item"></a><h3>goo_canvas_get_item ()</h3>
832
+ <pre class="programlisting"><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* goo_canvas_get_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
833
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);</pre>
834
+ <p>
835
+ Gets the canvas item associated with the given <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a>.
836
+ This is only useful when <a class="link" href="GooCanvas.html#goo-canvas-set-root-item-model" title="goo_canvas_set_root_item_model ()"><code class="function">goo_canvas_set_root_item_model()</code></a> has been used to
837
+ set a model for the canvas.
838
+ </p>
839
+ <p>
840
+ For simple applications you can use <a class="link" href="GooCanvas.html#goo-canvas-get-item" title="goo_canvas_get_item ()"><code class="function">goo_canvas_get_item()</code></a> to set up
841
+ signal handlers for your items, e.g.
842
+ </p>
843
+ <p>
844
+ </p>
845
+ <div class="informalexample">
846
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
847
+ <tbody>
848
+ <tr>
849
+ <td class="listing_lines" align="right"><pre>1
850
+ 2
851
+ 3</pre></td>
852
+ <td class="listing_code"><pre class="programlisting"><span class="normal">item </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvas.html#goo-canvas-get-item">goo_canvas_get_item</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GOO_CANVAS</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">canvas</span><span class="symbol">),</span><span class="normal"> my_item</span><span class="symbol">);</span>
853
+ <span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">item</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"button_press_event"</span><span class="symbol">,</span>
854
+ <span class="normal"> </span><span class="symbol">(</span><span class="normal">GtkSignalFunc</span><span class="symbol">)</span><span class="normal"> on_my_item_button_press</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
855
+ </tr>
856
+ </tbody>
857
+ </table>
858
+ </div>
859
+
860
+ <p>
861
+ </p>
862
+ <p>
863
+ More complex applications may want to use the <a class="link" href="GooCanvas.html#GooCanvas-item-created" title='The "item-created" signal'><span class="type">"item-created"</span></a>
864
+ signal to hook up their signal handlers.
865
+ </p>
866
+ <div class="variablelist"><table border="0">
867
+ <col align="left" valign="top">
868
+ <tbody>
869
+ <tr>
870
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
871
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
872
+ </td>
873
+ </tr>
874
+ <tr>
875
+ <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
876
+ <td>a <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a>.
877
+ </td>
878
+ </tr>
879
+ <tr>
880
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
881
+ <td> the canvas item corresponding to the given <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a>,
882
+ or <code class="literal">NULL</code> if no canvas item has been created for it yet.
883
+ </td>
884
+ </tr>
885
+ </tbody>
886
+ </table></div>
887
+ </div>
888
+ <hr>
889
+ <div class="refsect2" title="goo_canvas_get_item_at ()">
890
+ <a name="goo-canvas-get-item-at"></a><h3>goo_canvas_get_item_at ()</h3>
891
+ <pre class="programlisting"><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* goo_canvas_get_item_at (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
892
+ <em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
893
+ <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
894
+ <em class="parameter"><code><span class="type">gboolean</span> is_pointer_event</code></em>);</pre>
895
+ <p>
896
+ Gets the item at the given point.
897
+ </p>
898
+ <div class="variablelist"><table border="0">
899
+ <col align="left" valign="top">
900
+ <tbody>
901
+ <tr>
902
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
903
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
904
+ </td>
905
+ </tr>
906
+ <tr>
907
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
908
+ <td>the x coordinate of the point.
909
+ </td>
910
+ </tr>
911
+ <tr>
912
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
913
+ <td>the y coordinate of the point
914
+ </td>
915
+ </tr>
916
+ <tr>
917
+ <td><p><span class="term"><em class="parameter"><code>is_pointer_event</code></em> :</span></p></td>
918
+ <td>
919
+ <code class="literal">TRUE</code> if the "pointer-events" property of
920
+ items should be used to determine which parts of the item are tested.
921
+ </td>
922
+ </tr>
923
+ <tr>
924
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
925
+ <td> the item found at the given point, or <code class="literal">NULL</code> if no item was found.
926
+ </td>
927
+ </tr>
928
+ </tbody>
929
+ </table></div>
930
+ </div>
931
+ <hr>
932
+ <div class="refsect2" title="goo_canvas_get_items_at ()">
933
+ <a name="goo-canvas-get-items-at"></a><h3>goo_canvas_get_items_at ()</h3>
934
+ <pre class="programlisting"><span class="returnvalue">GList</span>* goo_canvas_get_items_at (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
935
+ <em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
936
+ <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
937
+ <em class="parameter"><code><span class="type">gboolean</span> is_pointer_event</code></em>);</pre>
938
+ <p>
939
+ Gets all items at the given point.
940
+ </p>
941
+ <div class="variablelist"><table border="0">
942
+ <col align="left" valign="top">
943
+ <tbody>
944
+ <tr>
945
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
946
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
947
+ </td>
948
+ </tr>
949
+ <tr>
950
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
951
+ <td>the x coordinate of the point.
952
+ </td>
953
+ </tr>
954
+ <tr>
955
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
956
+ <td>the y coordinate of the point
957
+ </td>
958
+ </tr>
959
+ <tr>
960
+ <td><p><span class="term"><em class="parameter"><code>is_pointer_event</code></em> :</span></p></td>
961
+ <td>
962
+ <code class="literal">TRUE</code> if the "pointer-events" property of
963
+ items should be used to determine which parts of the item are tested.
964
+ </td>
965
+ </tr>
966
+ <tr>
967
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
968
+ <td> a list of items found at the given point, with the top item at
969
+ the start of the list, or <code class="literal">NULL</code> if no items were found. The list must be
970
+ freed with <code class="function">g_list_free()</code>.
971
+ </td>
972
+ </tr>
973
+ </tbody>
974
+ </table></div>
975
+ </div>
976
+ <hr>
977
+ <div class="refsect2" title="goo_canvas_get_items_in_area ()">
978
+ <a name="goo-canvas-get-items-in-area"></a><h3>goo_canvas_get_items_in_area ()</h3>
979
+ <pre class="programlisting"><span class="returnvalue">GList</span>* goo_canvas_get_items_in_area (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
980
+ <em class="parameter"><code>const <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *area</code></em>,
981
+ <em class="parameter"><code><span class="type">gboolean</span> inside_area</code></em>,
982
+ <em class="parameter"><code><span class="type">gboolean</span> allow_overlaps</code></em>,
983
+ <em class="parameter"><code><span class="type">gboolean</span> include_containers</code></em>);</pre>
984
+ <p>
985
+ Gets a list of items inside or outside a given area.
986
+ </p>
987
+ <div class="variablelist"><table border="0">
988
+ <col align="left" valign="top">
989
+ <tbody>
990
+ <tr>
991
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
992
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
993
+ </td>
994
+ </tr>
995
+ <tr>
996
+ <td><p><span class="term"><em class="parameter"><code>area</code></em> :</span></p></td>
997
+ <td>the area to compare with each item's bounds.
998
+ </td>
999
+ </tr>
1000
+ <tr>
1001
+ <td><p><span class="term"><em class="parameter"><code>inside_area</code></em> :</span></p></td>
1002
+ <td>
1003
+ <code class="literal">TRUE</code> if items inside <em class="parameter"><code>area</code></em> should be returned, or <code class="literal">FALSE</code> if
1004
+ items outside <em class="parameter"><code>area</code></em> should be returned.
1005
+ </td>
1006
+ </tr>
1007
+ <tr>
1008
+ <td><p><span class="term"><em class="parameter"><code>allow_overlaps</code></em> :</span></p></td>
1009
+ <td>
1010
+ <code class="literal">TRUE</code> if items which are partly inside and partly outside
1011
+ should be returned.
1012
+ </td>
1013
+ </tr>
1014
+ <tr>
1015
+ <td><p><span class="term"><em class="parameter"><code>include_containers</code></em> :</span></p></td>
1016
+ <td>
1017
+ <code class="literal">TRUE</code> if containers should be checked as well as
1018
+ normal items.
1019
+ </td>
1020
+ </tr>
1021
+ <tr>
1022
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1023
+ <td> a list of items in the given area, or <code class="literal">NULL</code> if no items are found.
1024
+ The list should be freed with <code class="function">g_list_free()</code>.
1025
+ </td>
1026
+ </tr>
1027
+ </tbody>
1028
+ </table></div>
1029
+ </div>
1030
+ <hr>
1031
+ <div class="refsect2" title="goo_canvas_scroll_to ()">
1032
+ <a name="goo-canvas-scroll-to"></a><h3>goo_canvas_scroll_to ()</h3>
1033
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_scroll_to (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1034
+ <em class="parameter"><code><span class="type">gdouble</span> left</code></em>,
1035
+ <em class="parameter"><code><span class="type">gdouble</span> top</code></em>);</pre>
1036
+ <p>
1037
+ Scrolls the canvas, placing the given point as close to the top-left of
1038
+ the view as possible.
1039
+ </p>
1040
+ <div class="variablelist"><table border="0">
1041
+ <col align="left" valign="top">
1042
+ <tbody>
1043
+ <tr>
1044
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1045
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1046
+ </td>
1047
+ </tr>
1048
+ <tr>
1049
+ <td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
1050
+ <td>the x coordinate to scroll to.
1051
+ </td>
1052
+ </tr>
1053
+ <tr>
1054
+ <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
1055
+ <td>the y coordinate to scroll to.
1056
+ </td>
1057
+ </tr>
1058
+ </tbody>
1059
+ </table></div>
1060
+ </div>
1061
+ <hr>
1062
+ <div class="refsect2" title="goo_canvas_render ()">
1063
+ <a name="goo-canvas-render"></a><h3>goo_canvas_render ()</h3>
1064
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_render (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1065
+ <em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
1066
+ <em class="parameter"><code>const <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>,
1067
+ <em class="parameter"><code><span class="type">gdouble</span> scale</code></em>);</pre>
1068
+ <p>
1069
+ Renders all or part of a canvas to the given cairo context.
1070
+ </p>
1071
+ <div class="variablelist"><table border="0">
1072
+ <col align="left" valign="top">
1073
+ <tbody>
1074
+ <tr>
1075
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1076
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1077
+ </td>
1078
+ </tr>
1079
+ <tr>
1080
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1081
+ <td>a cairo context.
1082
+ </td>
1083
+ </tr>
1084
+ <tr>
1085
+ <td><p><span class="term"><em class="parameter"><code>bounds</code></em> :</span></p></td>
1086
+ <td>the area to render, or <code class="literal">NULL</code> to render the entire canvas.
1087
+ </td>
1088
+ </tr>
1089
+ <tr>
1090
+ <td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
1091
+ <td>the scale to compare with each item's visibility
1092
+ threshold to see if they should be rendered. This only affects items that
1093
+ have their visibility set to <a class="link" href="goocanvas-GooCanvas-Types.html#GOO-CANVAS-ITEM-VISIBLE-ABOVE-THRESHOLD:CAPS"><code class="literal">GOO_CANVAS_ITEM_VISIBLE_ABOVE_THRESHOLD</code></a>.
1094
+ </td>
1095
+ </tr>
1096
+ </tbody>
1097
+ </table></div>
1098
+ </div>
1099
+ <hr>
1100
+ <div class="refsect2" title="goo_canvas_convert_to_pixels ()">
1101
+ <a name="goo-canvas-convert-to-pixels"></a><h3>goo_canvas_convert_to_pixels ()</h3>
1102
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_convert_to_pixels (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1103
+ <em class="parameter"><code><span class="type">gdouble</span> *x</code></em>,
1104
+ <em class="parameter"><code><span class="type">gdouble</span> *y</code></em>);</pre>
1105
+ <p>
1106
+ Converts a coordinate from the canvas coordinate space to pixels.
1107
+ </p>
1108
+ <p>
1109
+ The canvas coordinate space is specified in the call to
1110
+ <a class="link" href="GooCanvas.html#goo-canvas-set-bounds" title="goo_canvas_set_bounds ()"><code class="function">goo_canvas_set_bounds()</code></a>.
1111
+ </p>
1112
+ <p>
1113
+ The pixel coordinate space specifies pixels from the top-left of the entire
1114
+ canvas window, according to the current scale setting.
1115
+ See <a class="link" href="GooCanvas.html#goo-canvas-set-scale" title="goo_canvas_set_scale ()"><code class="function">goo_canvas_set_scale()</code></a>.
1116
+ </p>
1117
+ <div class="variablelist"><table border="0">
1118
+ <col align="left" valign="top">
1119
+ <tbody>
1120
+ <tr>
1121
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1122
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1123
+ </td>
1124
+ </tr>
1125
+ <tr>
1126
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1127
+ <td>a pointer to the x coordinate to convert.
1128
+ </td>
1129
+ </tr>
1130
+ <tr>
1131
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1132
+ <td>a pointer to the y coordinate to convert.
1133
+ </td>
1134
+ </tr>
1135
+ </tbody>
1136
+ </table></div>
1137
+ </div>
1138
+ <hr>
1139
+ <div class="refsect2" title="goo_canvas_convert_from_pixels ()">
1140
+ <a name="goo-canvas-convert-from-pixels"></a><h3>goo_canvas_convert_from_pixels ()</h3>
1141
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_convert_from_pixels (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1142
+ <em class="parameter"><code><span class="type">gdouble</span> *x</code></em>,
1143
+ <em class="parameter"><code><span class="type">gdouble</span> *y</code></em>);</pre>
1144
+ <p>
1145
+ Converts a coordinate from pixels to the canvas coordinate space.
1146
+ </p>
1147
+ <p>
1148
+ The pixel coordinate space specifies pixels from the top-left of the entire
1149
+ canvas window, according to the current scale setting.
1150
+ See <a class="link" href="GooCanvas.html#goo-canvas-set-scale" title="goo_canvas_set_scale ()"><code class="function">goo_canvas_set_scale()</code></a>.
1151
+ </p>
1152
+ <p>
1153
+ The canvas coordinate space is specified in the call to
1154
+ <a class="link" href="GooCanvas.html#goo-canvas-set-bounds" title="goo_canvas_set_bounds ()"><code class="function">goo_canvas_set_bounds()</code></a>.
1155
+ </p>
1156
+ <div class="variablelist"><table border="0">
1157
+ <col align="left" valign="top">
1158
+ <tbody>
1159
+ <tr>
1160
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1161
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1162
+ </td>
1163
+ </tr>
1164
+ <tr>
1165
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1166
+ <td>a pointer to the x coordinate to convert.
1167
+ </td>
1168
+ </tr>
1169
+ <tr>
1170
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1171
+ <td>a pointer to the y coordinate to convert.
1172
+ </td>
1173
+ </tr>
1174
+ </tbody>
1175
+ </table></div>
1176
+ </div>
1177
+ <hr>
1178
+ <div class="refsect2" title="goo_canvas_convert_to_item_space ()">
1179
+ <a name="goo-canvas-convert-to-item-space"></a><h3>goo_canvas_convert_to_item_space ()</h3>
1180
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_convert_to_item_space (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1181
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
1182
+ <em class="parameter"><code><span class="type">gdouble</span> *x</code></em>,
1183
+ <em class="parameter"><code><span class="type">gdouble</span> *y</code></em>);</pre>
1184
+ <p>
1185
+ Converts a coordinate from the canvas coordinate space to the given
1186
+ item's coordinate space, applying all transformation matrices including the
1187
+ item's own transformation matrix, if it has one.
1188
+ </p>
1189
+ <div class="variablelist"><table border="0">
1190
+ <col align="left" valign="top">
1191
+ <tbody>
1192
+ <tr>
1193
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1194
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1195
+ </td>
1196
+ </tr>
1197
+ <tr>
1198
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1199
+ <td>a <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a>.
1200
+ </td>
1201
+ </tr>
1202
+ <tr>
1203
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1204
+ <td>a pointer to the x coordinate to convert.
1205
+ </td>
1206
+ </tr>
1207
+ <tr>
1208
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1209
+ <td>a pointer to the y coordinate to convert.
1210
+ </td>
1211
+ </tr>
1212
+ </tbody>
1213
+ </table></div>
1214
+ </div>
1215
+ <hr>
1216
+ <div class="refsect2" title="goo_canvas_convert_from_item_space ()">
1217
+ <a name="goo-canvas-convert-from-item-space"></a><h3>goo_canvas_convert_from_item_space ()</h3>
1218
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_convert_from_item_space (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1219
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
1220
+ <em class="parameter"><code><span class="type">gdouble</span> *x</code></em>,
1221
+ <em class="parameter"><code><span class="type">gdouble</span> *y</code></em>);</pre>
1222
+ <p>
1223
+ Converts a coordinate from the given item's coordinate space to the canvas
1224
+ coordinate space, applying all transformation matrices including the
1225
+ item's own transformation matrix, if it has one.
1226
+ </p>
1227
+ <div class="variablelist"><table border="0">
1228
+ <col align="left" valign="top">
1229
+ <tbody>
1230
+ <tr>
1231
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1232
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1233
+ </td>
1234
+ </tr>
1235
+ <tr>
1236
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1237
+ <td>a <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a>.
1238
+ </td>
1239
+ </tr>
1240
+ <tr>
1241
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1242
+ <td>a pointer to the x coordinate to convert.
1243
+ </td>
1244
+ </tr>
1245
+ <tr>
1246
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1247
+ <td>a pointer to the y coordinate to convert.
1248
+ </td>
1249
+ </tr>
1250
+ </tbody>
1251
+ </table></div>
1252
+ </div>
1253
+ <hr>
1254
+ <div class="refsect2" title="goo_canvas_convert_bounds_to_item_space ()">
1255
+ <a name="goo-canvas-convert-bounds-to-item-space"></a><h3>goo_canvas_convert_bounds_to_item_space ()</h3>
1256
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_convert_bounds_to_item_space
1257
+ (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1258
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
1259
+ <em class="parameter"><code><a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);</pre>
1260
+ <p>
1261
+ Converts the given bounds in the canvas coordinate space to a bounding box
1262
+ in item space. This is useful in the item <code class="function">paint()</code> methods to convert the
1263
+ bounds to be painted to the item's coordinate space.
1264
+ </p>
1265
+ <div class="variablelist"><table border="0">
1266
+ <col align="left" valign="top">
1267
+ <tbody>
1268
+ <tr>
1269
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1270
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1271
+ </td>
1272
+ </tr>
1273
+ <tr>
1274
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1275
+ <td>a <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a>.
1276
+ </td>
1277
+ </tr>
1278
+ <tr>
1279
+ <td><p><span class="term"><em class="parameter"><code>bounds</code></em> :</span></p></td>
1280
+ <td>the bounds in canvas coordinate space, to be converted.
1281
+ </td>
1282
+ </tr>
1283
+ </tbody>
1284
+ </table></div>
1285
+ </div>
1286
+ <hr>
1287
+ <div class="refsect2" title="goo_canvas_pointer_grab ()">
1288
+ <a name="goo-canvas-pointer-grab"></a><h3>goo_canvas_pointer_grab ()</h3>
1289
+ <pre class="programlisting"><span class="returnvalue">GdkGrabStatus</span> goo_canvas_pointer_grab (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1290
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
1291
+ <em class="parameter"><code><span class="type">GdkEventMask</span> event_mask</code></em>,
1292
+ <em class="parameter"><code><span class="type">GdkCursor</span> *cursor</code></em>,
1293
+ <em class="parameter"><code><span class="type">guint32</span> time</code></em>);</pre>
1294
+ <p>
1295
+ Attempts to grab the pointer for the given item.
1296
+ </p>
1297
+ <div class="variablelist"><table border="0">
1298
+ <col align="left" valign="top">
1299
+ <tbody>
1300
+ <tr>
1301
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1302
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1303
+ </td>
1304
+ </tr>
1305
+ <tr>
1306
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1307
+ <td>the item to grab the pointer for.
1308
+ </td>
1309
+ </tr>
1310
+ <tr>
1311
+ <td><p><span class="term"><em class="parameter"><code>event_mask</code></em> :</span></p></td>
1312
+ <td>the events to receive during the grab.
1313
+ </td>
1314
+ </tr>
1315
+ <tr>
1316
+ <td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
1317
+ <td>the cursor to display during the grab, or NULL.
1318
+ </td>
1319
+ </tr>
1320
+ <tr>
1321
+ <td><p><span class="term"><em class="parameter"><code>time</code></em> :</span></p></td>
1322
+ <td>the time of the event that lead to the pointer grab. This should
1323
+ come from the relevant <span class="type">GdkEvent</span>.
1324
+ </td>
1325
+ </tr>
1326
+ <tr>
1327
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1328
+ <td> <code class="literal">GDK_GRAB_SUCCESS</code> if the grab succeeded.
1329
+ </td>
1330
+ </tr>
1331
+ </tbody>
1332
+ </table></div>
1333
+ </div>
1334
+ <hr>
1335
+ <div class="refsect2" title="goo_canvas_pointer_ungrab ()">
1336
+ <a name="goo-canvas-pointer-ungrab"></a><h3>goo_canvas_pointer_ungrab ()</h3>
1337
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_pointer_ungrab (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1338
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
1339
+ <em class="parameter"><code><span class="type">guint32</span> time</code></em>);</pre>
1340
+ <p>
1341
+ Ungrabs the pointer, if the given item has the pointer grab.
1342
+ </p>
1343
+ <div class="variablelist"><table border="0">
1344
+ <col align="left" valign="top">
1345
+ <tbody>
1346
+ <tr>
1347
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1348
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1349
+ </td>
1350
+ </tr>
1351
+ <tr>
1352
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1353
+ <td>the item that has the grab.
1354
+ </td>
1355
+ </tr>
1356
+ <tr>
1357
+ <td><p><span class="term"><em class="parameter"><code>time</code></em> :</span></p></td>
1358
+ <td>the time of the event that lead to the pointer ungrab. This should
1359
+ come from the relevant <span class="type">GdkEvent</span>.
1360
+ </td>
1361
+ </tr>
1362
+ </tbody>
1363
+ </table></div>
1364
+ </div>
1365
+ <hr>
1366
+ <div class="refsect2" title="goo_canvas_grab_focus ()">
1367
+ <a name="goo-canvas-grab-focus"></a><h3>goo_canvas_grab_focus ()</h3>
1368
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_grab_focus (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1369
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>);</pre>
1370
+ <p>
1371
+ Grabs the keyboard focus for the given item.
1372
+ </p>
1373
+ <div class="variablelist"><table border="0">
1374
+ <col align="left" valign="top">
1375
+ <tbody>
1376
+ <tr>
1377
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1378
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1379
+ </td>
1380
+ </tr>
1381
+ <tr>
1382
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1383
+ <td>the item to grab the focus.
1384
+ </td>
1385
+ </tr>
1386
+ </tbody>
1387
+ </table></div>
1388
+ </div>
1389
+ <hr>
1390
+ <div class="refsect2" title="goo_canvas_keyboard_grab ()">
1391
+ <a name="goo-canvas-keyboard-grab"></a><h3>goo_canvas_keyboard_grab ()</h3>
1392
+ <pre class="programlisting"><span class="returnvalue">GdkGrabStatus</span> goo_canvas_keyboard_grab (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1393
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
1394
+ <em class="parameter"><code><span class="type">gboolean</span> owner_events</code></em>,
1395
+ <em class="parameter"><code><span class="type">guint32</span> time</code></em>);</pre>
1396
+ <p>
1397
+ Attempts to grab the keyboard for the given item.
1398
+ </p>
1399
+ <div class="variablelist"><table border="0">
1400
+ <col align="left" valign="top">
1401
+ <tbody>
1402
+ <tr>
1403
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1404
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1405
+ </td>
1406
+ </tr>
1407
+ <tr>
1408
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1409
+ <td>the item to grab the keyboard for.
1410
+ </td>
1411
+ </tr>
1412
+ <tr>
1413
+ <td><p><span class="term"><em class="parameter"><code>owner_events</code></em> :</span></p></td>
1414
+ <td>
1415
+ <code class="literal">TRUE</code> if keyboard events for this application will be
1416
+ reported normally, or <code class="literal">FALSE</code> if all keyboard events will be reported with
1417
+ respect to the grab item.
1418
+ </td>
1419
+ </tr>
1420
+ <tr>
1421
+ <td><p><span class="term"><em class="parameter"><code>time</code></em> :</span></p></td>
1422
+ <td>the time of the event that lead to the keyboard grab. This should
1423
+ come from the relevant <span class="type">GdkEvent</span>.
1424
+ </td>
1425
+ </tr>
1426
+ <tr>
1427
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1428
+ <td> <code class="literal">GDK_GRAB_SUCCESS</code> if the grab succeeded.
1429
+ </td>
1430
+ </tr>
1431
+ </tbody>
1432
+ </table></div>
1433
+ </div>
1434
+ <hr>
1435
+ <div class="refsect2" title="goo_canvas_keyboard_ungrab ()">
1436
+ <a name="goo-canvas-keyboard-ungrab"></a><h3>goo_canvas_keyboard_ungrab ()</h3>
1437
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_keyboard_ungrab (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1438
+ <em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item</code></em>,
1439
+ <em class="parameter"><code><span class="type">guint32</span> time</code></em>);</pre>
1440
+ <p>
1441
+ Ungrabs the keyboard, if the given item has the keyboard grab.
1442
+ </p>
1443
+ <div class="variablelist"><table border="0">
1444
+ <col align="left" valign="top">
1445
+ <tbody>
1446
+ <tr>
1447
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1448
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1449
+ </td>
1450
+ </tr>
1451
+ <tr>
1452
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1453
+ <td>the item that has the keyboard grab.
1454
+ </td>
1455
+ </tr>
1456
+ <tr>
1457
+ <td><p><span class="term"><em class="parameter"><code>time</code></em> :</span></p></td>
1458
+ <td>the time of the event that lead to the keyboard ungrab. This should
1459
+ come from the relevant <span class="type">GdkEvent</span>.
1460
+ </td>
1461
+ </tr>
1462
+ </tbody>
1463
+ </table></div>
1464
+ </div>
1465
+ <hr>
1466
+ <div class="refsect2" title="goo_canvas_create_cairo_context ()">
1467
+ <a name="goo-canvas-create-cairo-context"></a><h3>goo_canvas_create_cairo_context ()</h3>
1468
+ <pre class="programlisting"><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="returnvalue">cairo_t</span></a>* goo_canvas_create_cairo_context (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
1469
+ <p>
1470
+ Creates a cairo context, initialized with the default canvas settings.
1471
+ </p>
1472
+ <div class="variablelist"><table border="0">
1473
+ <col align="left" valign="top">
1474
+ <tbody>
1475
+ <tr>
1476
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1477
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1478
+ </td>
1479
+ </tr>
1480
+ <tr>
1481
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1482
+ <td> a new cairo context. It should be freed with <a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-destroy"><code class="function">cairo_destroy()</code></a>.
1483
+ </td>
1484
+ </tr>
1485
+ </tbody>
1486
+ </table></div>
1487
+ </div>
1488
+ <hr>
1489
+ <div class="refsect2" title="goo_canvas_create_item ()">
1490
+ <a name="goo-canvas-create-item"></a><h3>goo_canvas_create_item ()</h3>
1491
+ <pre class="programlisting"><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* goo_canvas_create_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1492
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);</pre>
1493
+ <p>
1494
+ This function is only intended to be used when implementing new canvas
1495
+ items, typically container items such as <a class="link" href="GooCanvasGroup.html" title="GooCanvasGroup"><span class="type">GooCanvasGroup</span></a>.
1496
+ </p>
1497
+ <p>
1498
+ It creates a new canvas item for the given item model, and recursively
1499
+ creates items for any children.
1500
+ </p>
1501
+ <p>
1502
+ It uses the <code class="function">create_item()</code> virtual method if it has been set.
1503
+ Subclasses of <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> can define this method if they want to use
1504
+ custom views for items.
1505
+ </p>
1506
+ <p>
1507
+ It emits the <a class="link" href="GooCanvas.html#GooCanvas-item-created" title='The "item-created" signal'><span class="type">"item-created"</span></a> signal after creating the view, so
1508
+ application code can connect signal handlers to the new view if desired.
1509
+ </p>
1510
+ <div class="variablelist"><table border="0">
1511
+ <col align="left" valign="top">
1512
+ <tbody>
1513
+ <tr>
1514
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1515
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1516
+ </td>
1517
+ </tr>
1518
+ <tr>
1519
+ <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
1520
+ <td>the item model to create a canvas item for.
1521
+ </td>
1522
+ </tr>
1523
+ <tr>
1524
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1525
+ <td> a new canvas item.
1526
+ </td>
1527
+ </tr>
1528
+ </tbody>
1529
+ </table></div>
1530
+ </div>
1531
+ <hr>
1532
+ <div class="refsect2" title="goo_canvas_unregister_item ()">
1533
+ <a name="goo-canvas-unregister-item"></a><h3>goo_canvas_unregister_item ()</h3>
1534
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_unregister_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1535
+ <em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);</pre>
1536
+ <p>
1537
+ This function is only intended to be used when implementing new canvas
1538
+ items.
1539
+ </p>
1540
+ <p>
1541
+ It should be called in the finalize method of <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a>
1542
+ objects, to remove the canvas item from the <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>'s hash table.
1543
+ </p>
1544
+ <div class="variablelist"><table border="0">
1545
+ <col align="left" valign="top">
1546
+ <tbody>
1547
+ <tr>
1548
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1549
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1550
+ </td>
1551
+ </tr>
1552
+ <tr>
1553
+ <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
1554
+ <td>the item model whose canvas item is being finalized.
1555
+ </td>
1556
+ </tr>
1557
+ </tbody>
1558
+ </table></div>
1559
+ </div>
1560
+ <hr>
1561
+ <div class="refsect2" title="goo_canvas_register_widget_item ()">
1562
+ <a name="goo-canvas-register-widget-item"></a><h3>goo_canvas_register_widget_item ()</h3>
1563
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_register_widget_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1564
+ <em class="parameter"><code><a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> *witem</code></em>);</pre>
1565
+ <p>
1566
+ This function should only be used by <a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> and subclass
1567
+ implementations.
1568
+ </p>
1569
+ <p>
1570
+ It registers a widget item with the canvas, so that the canvas can do the
1571
+ necessary actions to move and resize the widget as needed.
1572
+ </p>
1573
+ <div class="variablelist"><table border="0">
1574
+ <col align="left" valign="top">
1575
+ <tbody>
1576
+ <tr>
1577
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1578
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1579
+ </td>
1580
+ </tr>
1581
+ <tr>
1582
+ <td><p><span class="term"><em class="parameter"><code>witem</code></em> :</span></p></td>
1583
+ <td>a <a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> item.
1584
+ </td>
1585
+ </tr>
1586
+ </tbody>
1587
+ </table></div>
1588
+ </div>
1589
+ <hr>
1590
+ <div class="refsect2" title="goo_canvas_unregister_widget_item ()">
1591
+ <a name="goo-canvas-unregister-widget-item"></a><h3>goo_canvas_unregister_widget_item ()</h3>
1592
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_unregister_widget_item (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1593
+ <em class="parameter"><code><a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> *witem</code></em>);</pre>
1594
+ <p>
1595
+ This function should only be used by <a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> and subclass
1596
+ implementations.
1597
+ </p>
1598
+ <p>
1599
+ It unregisters a widget item from the canvas, when the item is no longer in
1600
+ the canvas.
1601
+ </p>
1602
+ <div class="variablelist"><table border="0">
1603
+ <col align="left" valign="top">
1604
+ <tbody>
1605
+ <tr>
1606
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1607
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1608
+ </td>
1609
+ </tr>
1610
+ <tr>
1611
+ <td><p><span class="term"><em class="parameter"><code>witem</code></em> :</span></p></td>
1612
+ <td>a <a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> item.
1613
+ </td>
1614
+ </tr>
1615
+ </tbody>
1616
+ </table></div>
1617
+ </div>
1618
+ <hr>
1619
+ <div class="refsect2" title="goo_canvas_update ()">
1620
+ <a name="goo-canvas-update"></a><h3>goo_canvas_update ()</h3>
1621
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_update (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
1622
+ <p>
1623
+ This function is only intended to be used by subclasses of <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> or
1624
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> implementations.
1625
+ </p>
1626
+ <p>
1627
+ It updates any items that need updating.
1628
+ </p>
1629
+ <p>
1630
+ If the bounds of items change, they will request a redraw of the old and
1631
+ new bounds so the display is updated correctly.
1632
+ </p>
1633
+ <div class="variablelist"><table border="0">
1634
+ <col align="left" valign="top">
1635
+ <tbody><tr>
1636
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1637
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1638
+ </td>
1639
+ </tr></tbody>
1640
+ </table></div>
1641
+ </div>
1642
+ <hr>
1643
+ <div class="refsect2" title="goo_canvas_request_update ()">
1644
+ <a name="goo-canvas-request-update"></a><h3>goo_canvas_request_update ()</h3>
1645
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_request_update (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
1646
+ <p>
1647
+ This function is only intended to be used by subclasses of <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> or
1648
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> implementations.
1649
+ </p>
1650
+ <p>
1651
+ It schedules an update of the <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>. This will be performed in
1652
+ the idle loop, after all pending events have been handled, but before
1653
+ the canvas has been repainted.
1654
+ </p>
1655
+ <div class="variablelist"><table border="0">
1656
+ <col align="left" valign="top">
1657
+ <tbody><tr>
1658
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1659
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1660
+ </td>
1661
+ </tr></tbody>
1662
+ </table></div>
1663
+ </div>
1664
+ <hr>
1665
+ <div class="refsect2" title="goo_canvas_request_redraw ()">
1666
+ <a name="goo-canvas-request-redraw"></a><h3>goo_canvas_request_redraw ()</h3>
1667
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_request_redraw (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1668
+ <em class="parameter"><code>const <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);</pre>
1669
+ <p>
1670
+ This function is only intended to be used by subclasses of <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> or
1671
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> implementations.
1672
+ </p>
1673
+ <p>
1674
+ Requests that the given bounds be redrawn. The bounds must be in the canvas
1675
+ coordinate space.
1676
+ </p>
1677
+ <div class="variablelist"><table border="0">
1678
+ <col align="left" valign="top">
1679
+ <tbody>
1680
+ <tr>
1681
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1682
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1683
+ </td>
1684
+ </tr>
1685
+ <tr>
1686
+ <td><p><span class="term"><em class="parameter"><code>bounds</code></em> :</span></p></td>
1687
+ <td>the bounds to redraw, in device space.
1688
+ </td>
1689
+ </tr>
1690
+ </tbody>
1691
+ </table></div>
1692
+ </div>
1693
+ <hr>
1694
+ <div class="refsect2" title="goo_canvas_request_item_redraw ()">
1695
+ <a name="goo-canvas-request-item-redraw"></a><h3>goo_canvas_request_item_redraw ()</h3>
1696
+ <pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_request_item_redraw (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>,
1697
+ <em class="parameter"><code>const <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds" title="GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>,
1698
+ <em class="parameter"><code><span class="type">gboolean</span> is_static</code></em>);</pre>
1699
+ <p>
1700
+ This function is only intended to be used by subclasses of <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> or
1701
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> implementations.
1702
+ </p>
1703
+ <p>
1704
+ Requests that the given bounds be redrawn. If <em class="parameter"><code>is_static</code></em> is <code class="literal">TRUE</code> the bounds
1705
+ are assumed to be in the static item coordinate space, otherwise they are
1706
+ assumed to be in the canvas coordinate space.
1707
+ </p>
1708
+ <p>
1709
+ If <em class="parameter"><code>is_static</code></em> is <code class="literal">FALSE</code> this function behaves the same as
1710
+ <a class="link" href="GooCanvas.html#goo-canvas-request-redraw" title="goo_canvas_request_redraw ()"><code class="function">goo_canvas_request_redraw()</code></a>.
1711
+ </p>
1712
+ <div class="variablelist"><table border="0">
1713
+ <col align="left" valign="top">
1714
+ <tbody>
1715
+ <tr>
1716
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1717
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1718
+ </td>
1719
+ </tr>
1720
+ <tr>
1721
+ <td><p><span class="term"><em class="parameter"><code>bounds</code></em> :</span></p></td>
1722
+ <td>the bounds of the item to redraw.
1723
+ </td>
1724
+ </tr>
1725
+ <tr>
1726
+ <td><p><span class="term"><em class="parameter"><code>is_static</code></em> :</span></p></td>
1727
+ <td>if the item is static.
1728
+ </td>
1729
+ </tr>
1730
+ </tbody>
1731
+ </table></div>
1732
+ </div>
1733
+ <hr>
1734
+ <div class="refsect2" title="goo_canvas_get_default_line_width ()">
1735
+ <a name="goo-canvas-get-default-line-width"></a><h3>goo_canvas_get_default_line_width ()</h3>
1736
+ <pre class="programlisting"><span class="returnvalue">gdouble</span> goo_canvas_get_default_line_width (<em class="parameter"><code><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas</code></em>);</pre>
1737
+ <p>
1738
+ Gets the default line width, which depends on the current units setting.
1739
+ </p>
1740
+ <div class="variablelist"><table border="0">
1741
+ <col align="left" valign="top">
1742
+ <tbody>
1743
+ <tr>
1744
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1745
+ <td>a <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a>.
1746
+ </td>
1747
+ </tr>
1748
+ <tr>
1749
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1750
+ <td> the default line width of the canvas.
1751
+ </td>
1752
+ </tr>
1753
+ </tbody>
1754
+ </table></div>
1755
+ </div>
1756
+ </div>
1757
+ <div class="refsect1" title="Property Details">
1758
+ <a name="GooCanvas.property-details"></a><h2>Property Details</h2>
1759
+ <div class="refsect2" title='The "anchor" property'>
1760
+ <a name="GooCanvas--anchor"></a><h3>The <code class="literal">"anchor"</code> property</h3>
1761
+ <pre class="programlisting"> "anchor" <span class="type">GtkAnchorType</span> : Read / Write</pre>
1762
+ <p>Where to place the canvas when it is smaller than the widget's allocated area.</p>
1763
+ <p>Default value: GTK_ANCHOR_NORTH_WEST</p>
1764
+ </div>
1765
+ <hr>
1766
+ <div class="refsect2" title='The "automatic-bounds" property'>
1767
+ <a name="GooCanvas--automatic-bounds"></a><h3>The <code class="literal">"automatic-bounds"</code> property</h3>
1768
+ <pre class="programlisting"> "automatic-bounds" <span class="type">gboolean</span> : Read / Write</pre>
1769
+ <p>If the bounds are automatically calculated based on the bounds of all the items in the canvas.</p>
1770
+ <p>Default value: FALSE</p>
1771
+ </div>
1772
+ <hr>
1773
+ <div class="refsect2" title='The "background-color" property'>
1774
+ <a name="GooCanvas--background-color"></a><h3>The <code class="literal">"background-color"</code> property</h3>
1775
+ <pre class="programlisting"> "background-color" <span class="type">gchar</span>* : Write</pre>
1776
+ <p>The color to use for the canvas background.</p>
1777
+ <p>Default value: NULL</p>
1778
+ </div>
1779
+ <hr>
1780
+ <div class="refsect2" title='The "background-color-rgb" property'>
1781
+ <a name="GooCanvas--background-color-rgb"></a><h3>The <code class="literal">"background-color-rgb"</code> property</h3>
1782
+ <pre class="programlisting"> "background-color-rgb" <span class="type">guint</span> : Write</pre>
1783
+ <p>The color to use for the canvas background, specified as a 24-bit integer value, 0xRRGGBB.</p>
1784
+ <p>Default value: 0</p>
1785
+ </div>
1786
+ <hr>
1787
+ <div class="refsect2" title='The "bounds-from-origin" property'>
1788
+ <a name="GooCanvas--bounds-from-origin"></a><h3>The <code class="literal">"bounds-from-origin"</code> property</h3>
1789
+ <pre class="programlisting"> "bounds-from-origin" <span class="type">gboolean</span> : Read / Write</pre>
1790
+ <p>If the automatic bounds are calculated from the origin.</p>
1791
+ <p>Default value: TRUE</p>
1792
+ </div>
1793
+ <hr>
1794
+ <div class="refsect2" title='The "bounds-padding" property'>
1795
+ <a name="GooCanvas--bounds-padding"></a><h3>The <code class="literal">"bounds-padding"</code> property</h3>
1796
+ <pre class="programlisting"> "bounds-padding" <span class="type">gdouble</span> : Read / Write</pre>
1797
+ <p>The padding added to the automatic bounds.</p>
1798
+ <p>Allowed values: &gt;= 0</p>
1799
+ <p>Default value: 0</p>
1800
+ </div>
1801
+ <hr>
1802
+ <div class="refsect2" title='The "clear-background" property'>
1803
+ <a name="GooCanvas--clear-background"></a><h3>The <code class="literal">"clear-background"</code> property</h3>
1804
+ <pre class="programlisting"> "clear-background" <span class="type">gboolean</span> : Read / Write</pre>
1805
+ <p>If the background is cleared before the canvas is painted.</p>
1806
+ <p>Default value: TRUE</p>
1807
+ </div>
1808
+ <hr>
1809
+ <div class="refsect2" title='The "integer-layout" property'>
1810
+ <a name="GooCanvas--integer-layout"></a><h3>The <code class="literal">"integer-layout"</code> property</h3>
1811
+ <pre class="programlisting"> "integer-layout" <span class="type">gboolean</span> : Read / Write</pre>
1812
+ <p>If all item layout is done to the nearest integer.</p>
1813
+ <p>Default value: FALSE</p>
1814
+ </div>
1815
+ <hr>
1816
+ <div class="refsect2" title='The "redraw-when-scrolled" property'>
1817
+ <a name="GooCanvas--redraw-when-scrolled"></a><h3>The <code class="literal">"redraw-when-scrolled"</code> property</h3>
1818
+ <pre class="programlisting"> "redraw-when-scrolled" <span class="type">gboolean</span> : Read / Write</pre>
1819
+ <p>If the canvas is completely redrawn when scrolled, to reduce the flicker of static items.</p>
1820
+ <p>Default value: FALSE</p>
1821
+ </div>
1822
+ <hr>
1823
+ <div class="refsect2" title='The "resolution-x" property'>
1824
+ <a name="GooCanvas--resolution-x"></a><h3>The <code class="literal">"resolution-x"</code> property</h3>
1825
+ <pre class="programlisting"> "resolution-x" <span class="type">gdouble</span> : Read / Write</pre>
1826
+ <p>The horizontal resolution of the display, in dots per inch.</p>
1827
+ <p>Allowed values: &gt;= 0</p>
1828
+ <p>Default value: 96</p>
1829
+ </div>
1830
+ <hr>
1831
+ <div class="refsect2" title='The "resolution-y" property'>
1832
+ <a name="GooCanvas--resolution-y"></a><h3>The <code class="literal">"resolution-y"</code> property</h3>
1833
+ <pre class="programlisting"> "resolution-y" <span class="type">gdouble</span> : Read / Write</pre>
1834
+ <p>The vertical resolution of the display, in dots per inch.</p>
1835
+ <p>Allowed values: &gt;= 0</p>
1836
+ <p>Default value: 96</p>
1837
+ </div>
1838
+ <hr>
1839
+ <div class="refsect2" title='The "scale" property'>
1840
+ <a name="GooCanvas--scale"></a><h3>The <code class="literal">"scale"</code> property</h3>
1841
+ <pre class="programlisting"> "scale" <span class="type">gdouble</span> : Read / Write</pre>
1842
+ <p>The magnification factor of the canvas.</p>
1843
+ <p>Allowed values: &gt;= 0</p>
1844
+ <p>Default value: 1</p>
1845
+ </div>
1846
+ <hr>
1847
+ <div class="refsect2" title='The "scale-x" property'>
1848
+ <a name="GooCanvas--scale-x"></a><h3>The <code class="literal">"scale-x"</code> property</h3>
1849
+ <pre class="programlisting"> "scale-x" <span class="type">gdouble</span> : Read / Write</pre>
1850
+ <p>The horizontal magnification factor of the canvas.</p>
1851
+ <p>Allowed values: &gt;= 0</p>
1852
+ <p>Default value: 1</p>
1853
+ </div>
1854
+ <hr>
1855
+ <div class="refsect2" title='The "scale-y" property'>
1856
+ <a name="GooCanvas--scale-y"></a><h3>The <code class="literal">"scale-y"</code> property</h3>
1857
+ <pre class="programlisting"> "scale-y" <span class="type">gdouble</span> : Read / Write</pre>
1858
+ <p>The vertical magnification factor of the canvas.</p>
1859
+ <p>Allowed values: &gt;= 0</p>
1860
+ <p>Default value: 1</p>
1861
+ </div>
1862
+ <hr>
1863
+ <div class="refsect2" title='The "units" property'>
1864
+ <a name="GooCanvas--units"></a><h3>The <code class="literal">"units"</code> property</h3>
1865
+ <pre class="programlisting"> "units" <span class="type">GtkUnit</span> : Read / Write</pre>
1866
+ <p>The units to use for the canvas.</p>
1867
+ <p>Default value: GTK_UNIT_PIXEL</p>
1868
+ </div>
1869
+ <hr>
1870
+ <div class="refsect2" title='The "x1" property'>
1871
+ <a name="GooCanvas--x1"></a><h3>The <code class="literal">"x1"</code> property</h3>
1872
+ <pre class="programlisting"> "x1" <span class="type">gdouble</span> : Read / Write</pre>
1873
+ <p>The x coordinate of the left edge of the canvas bounds, in canvas units.</p>
1874
+ <p>Default value: 0</p>
1875
+ </div>
1876
+ <hr>
1877
+ <div class="refsect2" title='The "x2" property'>
1878
+ <a name="GooCanvas--x2"></a><h3>The <code class="literal">"x2"</code> property</h3>
1879
+ <pre class="programlisting"> "x2" <span class="type">gdouble</span> : Read / Write</pre>
1880
+ <p>The x coordinate of the right edge of the canvas bounds, in canvas units.</p>
1881
+ <p>Default value: 1000</p>
1882
+ </div>
1883
+ <hr>
1884
+ <div class="refsect2" title='The "y1" property'>
1885
+ <a name="GooCanvas--y1"></a><h3>The <code class="literal">"y1"</code> property</h3>
1886
+ <pre class="programlisting"> "y1" <span class="type">gdouble</span> : Read / Write</pre>
1887
+ <p>The y coordinate of the top edge of the canvas bounds, in canvas units.</p>
1888
+ <p>Default value: 0</p>
1889
+ </div>
1890
+ <hr>
1891
+ <div class="refsect2" title='The "y2" property'>
1892
+ <a name="GooCanvas--y2"></a><h3>The <code class="literal">"y2"</code> property</h3>
1893
+ <pre class="programlisting"> "y2" <span class="type">gdouble</span> : Read / Write</pre>
1894
+ <p>The y coordinate of the bottom edge of the canvas bounds, in canvas units.</p>
1895
+ <p>Default value: 1000</p>
1896
+ </div>
1897
+ </div>
1898
+ <div class="refsect1" title="Signal Details">
1899
+ <a name="GooCanvas.signal-details"></a><h2>Signal Details</h2>
1900
+ <div class="refsect2" title='The "item-created" signal'>
1901
+ <a name="GooCanvas-item-created"></a><h3>The <code class="literal">"item-created"</code> signal</h3>
1902
+ <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas,
1903
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *item,
1904
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model,
1905
+ <span class="type">gpointer</span> user_data) : Run Last</pre>
1906
+ <p>
1907
+ This is emitted when a new canvas item is created, in model/view mode.
1908
+ </p>
1909
+ <p>
1910
+ Applications can set up signal handlers for the new items here.
1911
+ </p>
1912
+ <div class="variablelist"><table border="0">
1913
+ <col align="left" valign="top">
1914
+ <tbody>
1915
+ <tr>
1916
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1917
+ <td>the canvas.
1918
+ </td>
1919
+ </tr>
1920
+ <tr>
1921
+ <td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
1922
+ <td>the new item.
1923
+ </td>
1924
+ </tr>
1925
+ <tr>
1926
+ <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
1927
+ <td>the item's model.
1928
+ </td>
1929
+ </tr>
1930
+ <tr>
1931
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1932
+ <td>user data set when the signal handler was connected.</td>
1933
+ </tr>
1934
+ </tbody>
1935
+ </table></div>
1936
+ </div>
1937
+ <hr>
1938
+ <div class="refsect2" title='The "set-scroll-adjustments" signal'>
1939
+ <a name="GooCanvas-set-scroll-adjustments"></a><h3>The <code class="literal">"set-scroll-adjustments"</code> signal</h3>
1940
+ <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *canvas,
1941
+ <span class="type">GtkAdjustment</span> *hadjustment,
1942
+ <span class="type">GtkAdjustment</span> *vadjustment,
1943
+ <span class="type">gpointer</span> user_data) : Run Last / Action</pre>
1944
+ <p>
1945
+ This is used when the <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> is placed inside a <span class="type">GtkScrolledWindow</span>,
1946
+ to connect up the adjustments so scrolling works properly.
1947
+ </p>
1948
+ <p>
1949
+ It isn't useful for applications.
1950
+ </p>
1951
+ <div class="variablelist"><table border="0">
1952
+ <col align="left" valign="top">
1953
+ <tbody>
1954
+ <tr>
1955
+ <td><p><span class="term"><em class="parameter"><code>canvas</code></em> :</span></p></td>
1956
+ <td>the canvas.
1957
+ </td>
1958
+ </tr>
1959
+ <tr>
1960
+ <td><p><span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></p></td>
1961
+ <td>the horizontal adjustment.
1962
+ </td>
1963
+ </tr>
1964
+ <tr>
1965
+ <td><p><span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></p></td>
1966
+ <td>the vertical adjustment.
1967
+ </td>
1968
+ </tr>
1969
+ <tr>
1970
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1971
+ <td>user data set when the signal handler was connected.</td>
1972
+ </tr>
1973
+ </tbody>
1974
+ </table></div>
1975
+ </div>
1976
+ </div>
1977
+ </div>
1978
+ <div class="footer">
1979
+ <hr>
1980
+ Generated by GTK-Doc V1.14</div>
1981
+ </body>
1982
+ </html>