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,247 @@
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>GooCanvasImage</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="ch03.html" title="Standard Canvas Items">
9
+ <link rel="prev" href="GooCanvasGrid.html" title="GooCanvasGrid">
10
+ <link rel="next" href="GooCanvasPath.html" title="GooCanvasPath">
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="GooCanvasGrid.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="ch03.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="GooCanvasPath.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="#GooCanvasImage.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#GooCanvasImage.description" class="shortcut">Description</a>
27
+  | 
28
+ <a href="#GooCanvasImage.object-hierarchy" class="shortcut">Object Hierarchy</a>
29
+  | 
30
+ <a href="#GooCanvasImage.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31
+  | 
32
+ <a href="#GooCanvasImage.properties" class="shortcut">Properties</a>
33
+ </td></tr>
34
+ </table>
35
+ <div class="refentry" title="GooCanvasImage">
36
+ <a name="GooCanvasImage"></a><div class="titlepage"></div>
37
+ <div class="refnamediv"><table width="100%"><tr>
38
+ <td valign="top">
39
+ <h2><span class="refentrytitle"><a name="GooCanvasImage.top_of_page"></a>GooCanvasImage</span></h2>
40
+ <p>GooCanvasImage — an image item.</p>
41
+ </td>
42
+ <td valign="top" align="right"></td>
43
+ </tr></table></div>
44
+ <div class="refsynopsisdiv" title="Synopsis">
45
+ <a name="GooCanvasImage.synopsis"></a><h2>Synopsis</h2>
46
+ <pre class="synopsis"> <a class="link" href="GooCanvasImage.html#GooCanvasImage-struct" title="GooCanvasImage">GooCanvasImage</a>;
47
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* <a class="link" href="GooCanvasImage.html#goo-canvas-image-new" title="goo_canvas_image_new ()">goo_canvas_image_new</a> (<em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *parent</code></em>,
48
+ <em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
49
+ <em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
50
+ <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
51
+ <em class="parameter"><code>...</code></em>);
52
+ </pre>
53
+ </div>
54
+ <div class="refsect1" title="Object Hierarchy">
55
+ <a name="GooCanvasImage.object-hierarchy"></a><h2>Object Hierarchy</h2>
56
+ <pre class="synopsis">
57
+ GObject
58
+ +----<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a>
59
+ +----GooCanvasImage
60
+ </pre>
61
+ </div>
62
+ <div class="refsect1" title="Implemented Interfaces">
63
+ <a name="GooCanvasImage.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
64
+ <p>
65
+ GooCanvasImage implements
66
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem">GooCanvasItem</a>.</p>
67
+ </div>
68
+ <div class="refsect1" title="Properties">
69
+ <a name="GooCanvasImage.properties"></a><h2>Properties</h2>
70
+ <pre class="synopsis">
71
+ "<a class="link" href="GooCanvasImage.html#GooCanvasImage--alpha" title='The "alpha" property'>alpha</a>" <span class="type">gdouble</span> : Read / Write
72
+ "<a class="link" href="GooCanvasImage.html#GooCanvasImage--height" title='The "height" property'>height</a>" <span class="type">gdouble</span> : Read / Write
73
+ "<a class="link" href="GooCanvasImage.html#GooCanvasImage--pattern" title='The "pattern" property'>pattern</a>" <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoPattern" title="GooCairoPattern"><span class="type">GooCairoPattern</span></a>* : Read / Write
74
+ "<a class="link" href="GooCanvasImage.html#GooCanvasImage--pixbuf" title='The "pixbuf" property'>pixbuf</a>" <span class="type">GdkPixbuf</span>* : Write
75
+ "<a class="link" href="GooCanvasImage.html#GooCanvasImage--scale-to-fit" title='The "scale-to-fit" property'>scale-to-fit</a>" <span class="type">gboolean</span> : Read / Write
76
+ "<a class="link" href="GooCanvasImage.html#GooCanvasImage--width" title='The "width" property'>width</a>" <span class="type">gdouble</span> : Read / Write
77
+ "<a class="link" href="GooCanvasImage.html#GooCanvasImage--x" title='The "x" property'>x</a>" <span class="type">gdouble</span> : Read / Write
78
+ "<a class="link" href="GooCanvasImage.html#GooCanvasImage--y" title='The "y" property'>y</a>" <span class="type">gdouble</span> : Read / Write
79
+ </pre>
80
+ </div>
81
+ <div class="refsect1" title="Description">
82
+ <a name="GooCanvasImage.description"></a><h2>Description</h2>
83
+ <p>
84
+ GooCanvasImage represents an image item.
85
+ </p>
86
+ <p>
87
+ It is a subclass of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> and so inherits all of the style
88
+ properties such as "operator" and "pointer-events".
89
+ </p>
90
+ <p>
91
+ It also implements the <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> interface, so you can use the
92
+ <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> functions such as <a class="link" href="GooCanvasItem.html#goo-canvas-item-raise" title="goo_canvas_item_raise ()"><code class="function">goo_canvas_item_raise()</code></a> and
93
+ <a class="link" href="GooCanvasItem.html#goo-canvas-item-rotate" title="goo_canvas_item_rotate ()"><code class="function">goo_canvas_item_rotate()</code></a>.
94
+ </p>
95
+ <p>
96
+ To create a <a class="link" href="GooCanvasImage.html" title="GooCanvasImage"><span class="type">GooCanvasImage</span></a> use <a class="link" href="GooCanvasImage.html#goo-canvas-image-new" title="goo_canvas_image_new ()"><code class="function">goo_canvas_image_new()</code></a>.
97
+ </p>
98
+ <p>
99
+ To get or set the properties of an existing <a class="link" href="GooCanvasImage.html" title="GooCanvasImage"><span class="type">GooCanvasImage</span></a>, use
100
+ <code class="function">g_object_get()</code> and <code class="function">g_object_set()</code>.
101
+ </p>
102
+ </div>
103
+ <div class="refsect1" title="Details">
104
+ <a name="GooCanvasImage.details"></a><h2>Details</h2>
105
+ <div class="refsect2" title="GooCanvasImage">
106
+ <a name="GooCanvasImage-struct"></a><h3>GooCanvasImage</h3>
107
+ <pre class="programlisting">typedef struct _GooCanvasImage GooCanvasImage;</pre>
108
+ <p>
109
+ The <a class="link" href="GooCanvasImage.html#GooCanvasImage-struct" title="GooCanvasImage"><span class="type">GooCanvasImage</span></a> struct contains private data only.
110
+ </p>
111
+ </div>
112
+ <hr>
113
+ <div class="refsect2" title="goo_canvas_image_new ()">
114
+ <a name="goo-canvas-image-new"></a><h3>goo_canvas_image_new ()</h3>
115
+ <pre class="programlisting"><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* goo_canvas_image_new (<em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *parent</code></em>,
116
+ <em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
117
+ <em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
118
+ <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
119
+ <em class="parameter"><code>...</code></em>);</pre>
120
+ <p>
121
+ Creates a new image item.
122
+ </p>
123
+ <div class="variablelist"><table border="0">
124
+ <col align="left" valign="top">
125
+ <tbody>
126
+ <tr>
127
+ <td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
128
+ <td>the parent item, or <code class="literal">NULL</code>. If a parent is specified, it will assume
129
+ ownership of the item, and the item will automatically be freed when it is
130
+ removed from the parent. Otherwise call <code class="function">g_object_unref()</code> to free it.
131
+ </td>
132
+ </tr>
133
+ <tr>
134
+ <td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
135
+ <td>the <span class="type">GdkPixbuf</span> containing the image data, or <code class="literal">NULL</code>.
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
140
+ <td>the x coordinate of the image.
141
+ </td>
142
+ </tr>
143
+ <tr>
144
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
145
+ <td>the y coordinate of the image.
146
+ </td>
147
+ </tr>
148
+ <tr>
149
+ <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
150
+ <td>optional pairs of property names and values, and a terminating <code class="literal">NULL</code>.
151
+ </td>
152
+ </tr>
153
+ <tr>
154
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
155
+ <td> a new image item.
156
+ </td>
157
+ </tr>
158
+ </tbody>
159
+ </table></div>
160
+ <p>
161
+ Here's an example showing how to create an image at (100.0, 100.0), using
162
+ the given pixbuf at its natural width and height:
163
+ </p>
164
+ <p>
165
+ </p>
166
+ <div class="informalexample">
167
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
168
+ <tbody>
169
+ <tr>
170
+ <td class="listing_lines" align="right"><pre>1
171
+ 2</pre></td>
172
+ <td class="listing_code"><pre class="programlisting"><span class="normal"><a href="GooCanvasItem.html">GooCanvasItem</a> </span><span class="symbol">*</span><span class="normal">image </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvasImage.html#goo-canvas-image-new">goo_canvas_image_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mygroup</span><span class="symbol">,</span><span class="normal"> pixbuf</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100.0</span><span class="symbol">,</span>
173
+ <span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
174
+ </tr>
175
+ </tbody>
176
+ </table>
177
+ </div>
178
+
179
+ <p>
180
+ </p>
181
+ </div>
182
+ </div>
183
+ <div class="refsect1" title="Property Details">
184
+ <a name="GooCanvasImage.property-details"></a><h2>Property Details</h2>
185
+ <div class="refsect2" title='The "alpha" property'>
186
+ <a name="GooCanvasImage--alpha"></a><h3>The <code class="literal">"alpha"</code> property</h3>
187
+ <pre class="programlisting"> "alpha" <span class="type">gdouble</span> : Read / Write</pre>
188
+ <p>The opacity of the image, 0.0 is fully transparent, and 1.0 is opaque.</p>
189
+ <p>Allowed values: [0,1]</p>
190
+ <p>Default value: 1</p>
191
+ </div>
192
+ <hr>
193
+ <div class="refsect2" title='The "height" property'>
194
+ <a name="GooCanvasImage--height"></a><h3>The <code class="literal">"height"</code> property</h3>
195
+ <pre class="programlisting"> "height" <span class="type">gdouble</span> : Read / Write</pre>
196
+ <p>The height of the image.</p>
197
+ <p>Allowed values: &gt;= 0</p>
198
+ <p>Default value: 0</p>
199
+ </div>
200
+ <hr>
201
+ <div class="refsect2" title='The "pattern" property'>
202
+ <a name="GooCanvasImage--pattern"></a><h3>The <code class="literal">"pattern"</code> property</h3>
203
+ <pre class="programlisting"> "pattern" <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoPattern" title="GooCairoPattern"><span class="type">GooCairoPattern</span></a>* : Read / Write</pre>
204
+ <p>The cairo pattern to paint.</p>
205
+ </div>
206
+ <hr>
207
+ <div class="refsect2" title='The "pixbuf" property'>
208
+ <a name="GooCanvasImage--pixbuf"></a><h3>The <code class="literal">"pixbuf"</code> property</h3>
209
+ <pre class="programlisting"> "pixbuf" <span class="type">GdkPixbuf</span>* : Write</pre>
210
+ <p>The GdkPixbuf to display.</p>
211
+ </div>
212
+ <hr>
213
+ <div class="refsect2" title='The "scale-to-fit" property'>
214
+ <a name="GooCanvasImage--scale-to-fit"></a><h3>The <code class="literal">"scale-to-fit"</code> property</h3>
215
+ <pre class="programlisting"> "scale-to-fit" <span class="type">gboolean</span> : Read / Write</pre>
216
+ <p>If the image is scaled to fit the width and height settings.</p>
217
+ <p>Default value: FALSE</p>
218
+ </div>
219
+ <hr>
220
+ <div class="refsect2" title='The "width" property'>
221
+ <a name="GooCanvasImage--width"></a><h3>The <code class="literal">"width"</code> property</h3>
222
+ <pre class="programlisting"> "width" <span class="type">gdouble</span> : Read / Write</pre>
223
+ <p>The width of the image.</p>
224
+ <p>Allowed values: &gt;= 0</p>
225
+ <p>Default value: 0</p>
226
+ </div>
227
+ <hr>
228
+ <div class="refsect2" title='The "x" property'>
229
+ <a name="GooCanvasImage--x"></a><h3>The <code class="literal">"x"</code> property</h3>
230
+ <pre class="programlisting"> "x" <span class="type">gdouble</span> : Read / Write</pre>
231
+ <p>The x coordinate of the image.</p>
232
+ <p>Default value: 0</p>
233
+ </div>
234
+ <hr>
235
+ <div class="refsect2" title='The "y" property'>
236
+ <a name="GooCanvasImage--y"></a><h3>The <code class="literal">"y"</code> property</h3>
237
+ <pre class="programlisting"> "y" <span class="type">gdouble</span> : Read / Write</pre>
238
+ <p>The y coordinate of the image.</p>
239
+ <p>Default value: 0</p>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ <div class="footer">
244
+ <hr>
245
+ Generated by GTK-Doc V1.14</div>
246
+ </body>
247
+ </html>
@@ -0,0 +1,252 @@
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>GooCanvasImageModel</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="ch04.html" title="Standard Canvas Item Models">
9
+ <link rel="prev" href="GooCanvasGridModel.html" title="GooCanvasGridModel">
10
+ <link rel="next" href="GooCanvasPathModel.html" title="GooCanvasPathModel">
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="GooCanvasGridModel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="ch04.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="GooCanvasPathModel.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="#GooCanvasImageModel.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#GooCanvasImageModel.description" class="shortcut">Description</a>
27
+  | 
28
+ <a href="#GooCanvasImageModel.object-hierarchy" class="shortcut">Object Hierarchy</a>
29
+  | 
30
+ <a href="#GooCanvasImageModel.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31
+  | 
32
+ <a href="#GooCanvasImageModel.properties" class="shortcut">Properties</a>
33
+ </td></tr>
34
+ </table>
35
+ <div class="refentry" title="GooCanvasImageModel">
36
+ <a name="GooCanvasImageModel"></a><div class="titlepage"></div>
37
+ <div class="refnamediv"><table width="100%"><tr>
38
+ <td valign="top">
39
+ <h2><span class="refentrytitle"><a name="GooCanvasImageModel.top_of_page"></a>GooCanvasImageModel</span></h2>
40
+ <p>GooCanvasImageModel — a model for image items.</p>
41
+ </td>
42
+ <td valign="top" align="right"></td>
43
+ </tr></table></div>
44
+ <div class="refsynopsisdiv" title="Synopsis">
45
+ <a name="GooCanvasImageModel.synopsis"></a><h2>Synopsis</h2>
46
+ <pre class="synopsis"> <a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel-struct" title="GooCanvasImageModel">GooCanvasImageModel</a>;
47
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* <a class="link" href="GooCanvasImageModel.html#goo-canvas-image-model-new" title="goo_canvas_image_model_new ()">goo_canvas_image_model_new</a> (<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *parent</code></em>,
48
+ <em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
49
+ <em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
50
+ <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
51
+ <em class="parameter"><code>...</code></em>);
52
+ </pre>
53
+ </div>
54
+ <div class="refsect1" title="Object Hierarchy">
55
+ <a name="GooCanvasImageModel.object-hierarchy"></a><h2>Object Hierarchy</h2>
56
+ <pre class="synopsis">
57
+ GObject
58
+ +----<a class="link" href="GooCanvasItemModelSimple.html" title="GooCanvasItemModelSimple">GooCanvasItemModelSimple</a>
59
+ +----GooCanvasImageModel
60
+ </pre>
61
+ </div>
62
+ <div class="refsect1" title="Implemented Interfaces">
63
+ <a name="GooCanvasImageModel.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
64
+ <p>
65
+ GooCanvasImageModel implements
66
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel">GooCanvasItemModel</a>.</p>
67
+ </div>
68
+ <div class="refsect1" title="Properties">
69
+ <a name="GooCanvasImageModel.properties"></a><h2>Properties</h2>
70
+ <pre class="synopsis">
71
+ "<a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel--alpha" title='The "alpha" property'>alpha</a>" <span class="type">gdouble</span> : Read / Write
72
+ "<a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel--height" title='The "height" property'>height</a>" <span class="type">gdouble</span> : Read / Write
73
+ "<a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel--pattern" title='The "pattern" property'>pattern</a>" <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoPattern" title="GooCairoPattern"><span class="type">GooCairoPattern</span></a>* : Read / Write
74
+ "<a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel--pixbuf" title='The "pixbuf" property'>pixbuf</a>" <span class="type">GdkPixbuf</span>* : Write
75
+ "<a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel--scale-to-fit" title='The "scale-to-fit" property'>scale-to-fit</a>" <span class="type">gboolean</span> : Read / Write
76
+ "<a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel--width" title='The "width" property'>width</a>" <span class="type">gdouble</span> : Read / Write
77
+ "<a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel--x" title='The "x" property'>x</a>" <span class="type">gdouble</span> : Read / Write
78
+ "<a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel--y" title='The "y" property'>y</a>" <span class="type">gdouble</span> : Read / Write
79
+ </pre>
80
+ </div>
81
+ <div class="refsect1" title="Description">
82
+ <a name="GooCanvasImageModel.description"></a><h2>Description</h2>
83
+ <p>
84
+ GooCanvasImageModel represent a model for image items.
85
+ </p>
86
+ <p>
87
+ It is a subclass of <a class="link" href="GooCanvasItemModelSimple.html" title="GooCanvasItemModelSimple"><span class="type">GooCanvasItemModelSimple</span></a> and so inherits all of the
88
+ style properties such as "operator" and "pointer-events".
89
+ </p>
90
+ <p>
91
+ It also implements the <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> interface, so you can use the
92
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> functions such as <a class="link" href="GooCanvasItemModel.html#goo-canvas-item-model-raise" title="goo_canvas_item_model_raise ()"><code class="function">goo_canvas_item_model_raise()</code></a> and
93
+ <a class="link" href="GooCanvasItemModel.html#goo-canvas-item-model-rotate" title="goo_canvas_item_model_rotate ()"><code class="function">goo_canvas_item_model_rotate()</code></a>.
94
+ </p>
95
+ <p>
96
+ To create a <a class="link" href="GooCanvasImageModel.html" title="GooCanvasImageModel"><span class="type">GooCanvasImageModel</span></a> use <a class="link" href="GooCanvasImageModel.html#goo-canvas-image-model-new" title="goo_canvas_image_model_new ()"><code class="function">goo_canvas_image_model_new()</code></a>.
97
+ </p>
98
+ <p>
99
+ To get or set the properties of an existing <a class="link" href="GooCanvasImageModel.html" title="GooCanvasImageModel"><span class="type">GooCanvasImageModel</span></a>, use
100
+ <code class="function">g_object_get()</code> and <code class="function">g_object_set()</code>.
101
+ </p>
102
+ <p>
103
+ To respond to events such as mouse clicks on the image you must connect
104
+ to the signal handlers of the corresponding <a class="link" href="GooCanvasImage.html" title="GooCanvasImage"><span class="type">GooCanvasImage</span></a> objects.
105
+ (See <a class="link" href="GooCanvas.html#goo-canvas-get-item" title="goo_canvas_get_item ()"><code class="function">goo_canvas_get_item()</code></a> and <a class="link" href="GooCanvas.html#GooCanvas-item-created" title='The "item-created" signal'><span class="type">"item-created"</span></a>.)
106
+ </p>
107
+ </div>
108
+ <div class="refsect1" title="Details">
109
+ <a name="GooCanvasImageModel.details"></a><h2>Details</h2>
110
+ <div class="refsect2" title="GooCanvasImageModel">
111
+ <a name="GooCanvasImageModel-struct"></a><h3>GooCanvasImageModel</h3>
112
+ <pre class="programlisting">typedef struct _GooCanvasImageModel GooCanvasImageModel;</pre>
113
+ <p>
114
+ The <a class="link" href="GooCanvasImageModel.html#GooCanvasImageModel-struct" title="GooCanvasImageModel"><span class="type">GooCanvasImageModel</span></a> struct contains private data only.
115
+ </p>
116
+ </div>
117
+ <hr>
118
+ <div class="refsect2" title="goo_canvas_image_model_new ()">
119
+ <a name="goo-canvas-image-model-new"></a><h3>goo_canvas_image_model_new ()</h3>
120
+ <pre class="programlisting"><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* goo_canvas_image_model_new (<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *parent</code></em>,
121
+ <em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
122
+ <em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
123
+ <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
124
+ <em class="parameter"><code>...</code></em>);</pre>
125
+ <p>
126
+ Creates a new image model.
127
+ </p>
128
+ <div class="variablelist"><table border="0">
129
+ <col align="left" valign="top">
130
+ <tbody>
131
+ <tr>
132
+ <td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
133
+ <td>the parent model, or <code class="literal">NULL</code>. If a parent is specified, it will
134
+ assume ownership of the item, and the item will automatically be freed when
135
+ it is removed from the parent. Otherwise call <code class="function">g_object_unref()</code> to free it.
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
140
+ <td>the <span class="type">GdkPixbuf</span> containing the image data, or <code class="literal">NULL</code>.
141
+ </td>
142
+ </tr>
143
+ <tr>
144
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
145
+ <td>the x coordinate of the image.
146
+ </td>
147
+ </tr>
148
+ <tr>
149
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
150
+ <td>the y coordinate of the image.
151
+ </td>
152
+ </tr>
153
+ <tr>
154
+ <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
155
+ <td>optional pairs of property names and values, and a terminating <code class="literal">NULL</code>.
156
+ </td>
157
+ </tr>
158
+ <tr>
159
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
160
+ <td> a new image model.
161
+ </td>
162
+ </tr>
163
+ </tbody>
164
+ </table></div>
165
+ <p>
166
+ Here's an example showing how to create an image at (100.0, 100.0), using
167
+ the given pixbuf at its natural width and height:
168
+ </p>
169
+ <p>
170
+ </p>
171
+ <div class="informalexample">
172
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
173
+ <tbody>
174
+ <tr>
175
+ <td class="listing_lines" align="right"><pre>1
176
+ 2</pre></td>
177
+ <td class="listing_code"><pre class="programlisting"><span class="normal"><a href="GooCanvasItemModel.html">GooCanvasItemModel</a> </span><span class="symbol">*</span><span class="normal">image </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvasImageModel.html#goo-canvas-image-model-new">goo_canvas_image_model_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mygroup</span><span class="symbol">,</span><span class="normal"> pixbuf</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100.0</span><span class="symbol">,</span>
178
+ <span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
179
+ </tr>
180
+ </tbody>
181
+ </table>
182
+ </div>
183
+
184
+ <p>
185
+ </p>
186
+ </div>
187
+ </div>
188
+ <div class="refsect1" title="Property Details">
189
+ <a name="GooCanvasImageModel.property-details"></a><h2>Property Details</h2>
190
+ <div class="refsect2" title='The "alpha" property'>
191
+ <a name="GooCanvasImageModel--alpha"></a><h3>The <code class="literal">"alpha"</code> property</h3>
192
+ <pre class="programlisting"> "alpha" <span class="type">gdouble</span> : Read / Write</pre>
193
+ <p>The opacity of the image, 0.0 is fully transparent, and 1.0 is opaque.</p>
194
+ <p>Allowed values: [0,1]</p>
195
+ <p>Default value: 1</p>
196
+ </div>
197
+ <hr>
198
+ <div class="refsect2" title='The "height" property'>
199
+ <a name="GooCanvasImageModel--height"></a><h3>The <code class="literal">"height"</code> property</h3>
200
+ <pre class="programlisting"> "height" <span class="type">gdouble</span> : Read / Write</pre>
201
+ <p>The height of the image.</p>
202
+ <p>Allowed values: &gt;= 0</p>
203
+ <p>Default value: 0</p>
204
+ </div>
205
+ <hr>
206
+ <div class="refsect2" title='The "pattern" property'>
207
+ <a name="GooCanvasImageModel--pattern"></a><h3>The <code class="literal">"pattern"</code> property</h3>
208
+ <pre class="programlisting"> "pattern" <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoPattern" title="GooCairoPattern"><span class="type">GooCairoPattern</span></a>* : Read / Write</pre>
209
+ <p>The cairo pattern to paint.</p>
210
+ </div>
211
+ <hr>
212
+ <div class="refsect2" title='The "pixbuf" property'>
213
+ <a name="GooCanvasImageModel--pixbuf"></a><h3>The <code class="literal">"pixbuf"</code> property</h3>
214
+ <pre class="programlisting"> "pixbuf" <span class="type">GdkPixbuf</span>* : Write</pre>
215
+ <p>The GdkPixbuf to display.</p>
216
+ </div>
217
+ <hr>
218
+ <div class="refsect2" title='The "scale-to-fit" property'>
219
+ <a name="GooCanvasImageModel--scale-to-fit"></a><h3>The <code class="literal">"scale-to-fit"</code> property</h3>
220
+ <pre class="programlisting"> "scale-to-fit" <span class="type">gboolean</span> : Read / Write</pre>
221
+ <p>If the image is scaled to fit the width and height settings.</p>
222
+ <p>Default value: FALSE</p>
223
+ </div>
224
+ <hr>
225
+ <div class="refsect2" title='The "width" property'>
226
+ <a name="GooCanvasImageModel--width"></a><h3>The <code class="literal">"width"</code> property</h3>
227
+ <pre class="programlisting"> "width" <span class="type">gdouble</span> : Read / Write</pre>
228
+ <p>The width of the image.</p>
229
+ <p>Allowed values: &gt;= 0</p>
230
+ <p>Default value: 0</p>
231
+ </div>
232
+ <hr>
233
+ <div class="refsect2" title='The "x" property'>
234
+ <a name="GooCanvasImageModel--x"></a><h3>The <code class="literal">"x"</code> property</h3>
235
+ <pre class="programlisting"> "x" <span class="type">gdouble</span> : Read / Write</pre>
236
+ <p>The x coordinate of the image.</p>
237
+ <p>Default value: 0</p>
238
+ </div>
239
+ <hr>
240
+ <div class="refsect2" title='The "y" property'>
241
+ <a name="GooCanvasImageModel--y"></a><h3>The <code class="literal">"y"</code> property</h3>
242
+ <pre class="programlisting"> "y" <span class="type">gdouble</span> : Read / Write</pre>
243
+ <p>The y coordinate of the image.</p>
244
+ <p>Default value: 0</p>
245
+ </div>
246
+ </div>
247
+ </div>
248
+ <div class="footer">
249
+ <hr>
250
+ Generated by GTK-Doc V1.14</div>
251
+ </body>
252
+ </html>