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,375 @@
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>GooCanvasPolylineModel</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="GooCanvasPathModel.html" title="GooCanvasPathModel">
10
+ <link rel="next" href="GooCanvasRectModel.html" title="GooCanvasRectModel">
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="GooCanvasPathModel.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="GooCanvasRectModel.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="#GooCanvasPolylineModel.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#GooCanvasPolylineModel.description" class="shortcut">Description</a>
27
+  | 
28
+ <a href="#GooCanvasPolylineModel.object-hierarchy" class="shortcut">Object Hierarchy</a>
29
+  | 
30
+ <a href="#GooCanvasPolylineModel.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31
+  | 
32
+ <a href="#GooCanvasPolylineModel.properties" class="shortcut">Properties</a>
33
+ </td></tr>
34
+ </table>
35
+ <div class="refentry" title="GooCanvasPolylineModel">
36
+ <a name="GooCanvasPolylineModel"></a><div class="titlepage"></div>
37
+ <div class="refnamediv"><table width="100%"><tr>
38
+ <td valign="top">
39
+ <h2><span class="refentrytitle"><a name="GooCanvasPolylineModel.top_of_page"></a>GooCanvasPolylineModel</span></h2>
40
+ <p>GooCanvasPolylineModel — a model for polyline items (a series of lines with
41
+ optional arrows).</p>
42
+ </td>
43
+ <td valign="top" align="right"></td>
44
+ </tr></table></div>
45
+ <div class="refsynopsisdiv" title="Synopsis">
46
+ <a name="GooCanvasPolylineModel.synopsis"></a><h2>Synopsis</h2>
47
+ <pre class="synopsis"> <a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel-struct" title="GooCanvasPolylineModel">GooCanvasPolylineModel</a>;
48
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* <a class="link" href="GooCanvasPolylineModel.html#goo-canvas-polyline-model-new" title="goo_canvas_polyline_model_new ()">goo_canvas_polyline_model_new</a> (<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *parent</code></em>,
49
+ <em class="parameter"><code><span class="type">gboolean</span> close_path</code></em>,
50
+ <em class="parameter"><code><span class="type">gint</span> num_points</code></em>,
51
+ <em class="parameter"><code>...</code></em>);
52
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* <a class="link" href="GooCanvasPolylineModel.html#goo-canvas-polyline-model-new-line" title="goo_canvas_polyline_model_new_line ()">goo_canvas_polyline_model_new_line</a> (<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *parent</code></em>,
53
+ <em class="parameter"><code><span class="type">gdouble</span> x1</code></em>,
54
+ <em class="parameter"><code><span class="type">gdouble</span> y1</code></em>,
55
+ <em class="parameter"><code><span class="type">gdouble</span> x2</code></em>,
56
+ <em class="parameter"><code><span class="type">gdouble</span> y2</code></em>,
57
+ <em class="parameter"><code>...</code></em>);
58
+ </pre>
59
+ </div>
60
+ <div class="refsect1" title="Object Hierarchy">
61
+ <a name="GooCanvasPolylineModel.object-hierarchy"></a><h2>Object Hierarchy</h2>
62
+ <pre class="synopsis">
63
+ GObject
64
+ +----<a class="link" href="GooCanvasItemModelSimple.html" title="GooCanvasItemModelSimple">GooCanvasItemModelSimple</a>
65
+ +----GooCanvasPolylineModel
66
+ </pre>
67
+ </div>
68
+ <div class="refsect1" title="Implemented Interfaces">
69
+ <a name="GooCanvasPolylineModel.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
70
+ <p>
71
+ GooCanvasPolylineModel implements
72
+ <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel">GooCanvasItemModel</a>.</p>
73
+ </div>
74
+ <div class="refsect1" title="Properties">
75
+ <a name="GooCanvasPolylineModel.properties"></a><h2>Properties</h2>
76
+ <pre class="synopsis">
77
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--arrow-length" title='The "arrow-length" property'>arrow-length</a>" <span class="type">gdouble</span> : Read / Write
78
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--arrow-tip-length" title='The "arrow-tip-length" property'>arrow-tip-length</a>" <span class="type">gdouble</span> : Read / Write
79
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--arrow-width" title='The "arrow-width" property'>arrow-width</a>" <span class="type">gdouble</span> : Read / Write
80
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--close-path" title='The "close-path" property'>close-path</a>" <span class="type">gboolean</span> : Read / Write
81
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--end-arrow" title='The "end-arrow" property'>end-arrow</a>" <span class="type">gboolean</span> : Read / Write
82
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--height" title='The "height" property'>height</a>" <span class="type">gdouble</span> : Read / Write
83
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--points" title='The "points" property'>points</a>" <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasPoints" title="GooCanvasPoints"><span class="type">GooCanvasPoints</span></a>* : Read / Write
84
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--start-arrow" title='The "start-arrow" property'>start-arrow</a>" <span class="type">gboolean</span> : Read / Write
85
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--width" title='The "width" property'>width</a>" <span class="type">gdouble</span> : Read / Write
86
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--x" title='The "x" property'>x</a>" <span class="type">gdouble</span> : Read / Write
87
+ "<a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel--y" title='The "y" property'>y</a>" <span class="type">gdouble</span> : Read / Write
88
+ </pre>
89
+ </div>
90
+ <div class="refsect1" title="Description">
91
+ <a name="GooCanvasPolylineModel.description"></a><h2>Description</h2>
92
+ <p>
93
+ GooCanvasPolylineModel represents a model for polyline items, which are a
94
+ series of one or more lines, with optional arrows at either end.
95
+ </p>
96
+ <p>
97
+ 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
98
+ style properties such as "stroke-color", "fill-color" and "line-width".
99
+ </p>
100
+ <p>
101
+ It also implements the <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> interface, so you can use the
102
+ <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
103
+ <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>.
104
+ </p>
105
+ <p>
106
+ To create a <a class="link" href="GooCanvasPolylineModel.html" title="GooCanvasPolylineModel"><span class="type">GooCanvasPolylineModel</span></a> use <a class="link" href="GooCanvasPolylineModel.html#goo-canvas-polyline-model-new" title="goo_canvas_polyline_model_new ()"><code class="function">goo_canvas_polyline_model_new()</code></a>, or
107
+ <a class="link" href="GooCanvasPolylineModel.html#goo-canvas-polyline-model-new-line" title="goo_canvas_polyline_model_new_line ()"><code class="function">goo_canvas_polyline_model_new_line()</code></a> for a simple line between two points.
108
+ </p>
109
+ <p>
110
+ To get or set the properties of an existing <a class="link" href="GooCanvasPolylineModel.html" title="GooCanvasPolylineModel"><span class="type">GooCanvasPolylineModel</span></a>, use
111
+ <code class="function">g_object_get()</code> and <code class="function">g_object_set()</code>.
112
+ </p>
113
+ <p>
114
+ To respond to events such as mouse clicks on the polyline you must connect
115
+ to the signal handlers of the corresponding <a class="link" href="GooCanvasPolyline.html" title="GooCanvasPolyline"><span class="type">GooCanvasPolyline</span></a> objects.
116
+ (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>.)
117
+ </p>
118
+ </div>
119
+ <div class="refsect1" title="Details">
120
+ <a name="GooCanvasPolylineModel.details"></a><h2>Details</h2>
121
+ <div class="refsect2" title="GooCanvasPolylineModel">
122
+ <a name="GooCanvasPolylineModel-struct"></a><h3>GooCanvasPolylineModel</h3>
123
+ <pre class="programlisting">typedef struct _GooCanvasPolylineModel GooCanvasPolylineModel;</pre>
124
+ <p>
125
+ The <a class="link" href="GooCanvasPolylineModel.html#GooCanvasPolylineModel-struct" title="GooCanvasPolylineModel"><span class="type">GooCanvasPolylineModel</span></a> struct contains private data only.
126
+ </p>
127
+ </div>
128
+ <hr>
129
+ <div class="refsect2" title="goo_canvas_polyline_model_new ()">
130
+ <a name="goo-canvas-polyline-model-new"></a><h3>goo_canvas_polyline_model_new ()</h3>
131
+ <pre class="programlisting"><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* goo_canvas_polyline_model_new (<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *parent</code></em>,
132
+ <em class="parameter"><code><span class="type">gboolean</span> close_path</code></em>,
133
+ <em class="parameter"><code><span class="type">gint</span> num_points</code></em>,
134
+ <em class="parameter"><code>...</code></em>);</pre>
135
+ <p>
136
+ Creates a new polyline model.
137
+ </p>
138
+ <div class="variablelist"><table border="0">
139
+ <col align="left" valign="top">
140
+ <tbody>
141
+ <tr>
142
+ <td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
143
+ <td>the parent model, or <code class="literal">NULL</code>. If a parent is specified, it will
144
+ assume ownership of the item, and the item will automatically be freed when
145
+ it is removed from the parent. Otherwise call <code class="function">g_object_unref()</code> to free it.
146
+ </td>
147
+ </tr>
148
+ <tr>
149
+ <td><p><span class="term"><em class="parameter"><code>close_path</code></em> :</span></p></td>
150
+ <td>if the last point should be connected to the first.
151
+ </td>
152
+ </tr>
153
+ <tr>
154
+ <td><p><span class="term"><em class="parameter"><code>num_points</code></em> :</span></p></td>
155
+ <td>the number of points in the polyline.
156
+ </td>
157
+ </tr>
158
+ <tr>
159
+ <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
160
+ <td>the pairs of coordinates for each point in the line, followed by
161
+ optional pairs of property names and values, and a terminating <code class="literal">NULL</code>.
162
+ </td>
163
+ </tr>
164
+ <tr>
165
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
166
+ <td> a new polyline model.
167
+ </td>
168
+ </tr>
169
+ </tbody>
170
+ </table></div>
171
+ <p>
172
+ Here's an example showing how to create a filled triangle with vertices
173
+ at (100,100), (300,100), and (200,300).
174
+ </p>
175
+ <p>
176
+ </p>
177
+ <div class="informalexample">
178
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
179
+ <tbody>
180
+ <tr>
181
+ <td class="listing_lines" align="right"><pre>1
182
+ 2
183
+ 3
184
+ 4
185
+ 5
186
+ 6
187
+ 7
188
+ 8</pre></td>
189
+ <td class="listing_code"><pre class="programlisting"><span class="normal"><a href="GooCanvasItemModel.html">GooCanvasItemModel</a> </span><span class="symbol">*</span><span class="normal">polyline </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvasPolylineModel.html#goo-canvas-polyline-model-new">goo_canvas_polyline_model_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mygroup</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">,</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span>
190
+ <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>
191
+ <span class="normal"> </span><span class="number">300.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100.0</span><span class="symbol">,</span>
192
+ <span class="normal"> </span><span class="number">200.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">300.0</span><span class="symbol">,</span>
193
+ <span class="normal"> </span><span class="string">"stroke-color"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"red"</span><span class="symbol">,</span>
194
+ <span class="normal"> </span><span class="string">"line-width"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">5.0</span><span class="symbol">,</span>
195
+ <span class="normal"> </span><span class="string">"fill-color"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"blue"</span><span class="symbol">,</span>
196
+ <span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
197
+ </tr>
198
+ </tbody>
199
+ </table>
200
+ </div>
201
+
202
+ <p>
203
+ </p>
204
+ </div>
205
+ <hr>
206
+ <div class="refsect2" title="goo_canvas_polyline_model_new_line ()">
207
+ <a name="goo-canvas-polyline-model-new-line"></a><h3>goo_canvas_polyline_model_new_line ()</h3>
208
+ <pre class="programlisting"><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* goo_canvas_polyline_model_new_line (<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *parent</code></em>,
209
+ <em class="parameter"><code><span class="type">gdouble</span> x1</code></em>,
210
+ <em class="parameter"><code><span class="type">gdouble</span> y1</code></em>,
211
+ <em class="parameter"><code><span class="type">gdouble</span> x2</code></em>,
212
+ <em class="parameter"><code><span class="type">gdouble</span> y2</code></em>,
213
+ <em class="parameter"><code>...</code></em>);</pre>
214
+ <p>
215
+ Creates a new polyline model with a single line.
216
+ </p>
217
+ <div class="variablelist"><table border="0">
218
+ <col align="left" valign="top">
219
+ <tbody>
220
+ <tr>
221
+ <td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
222
+ <td>the parent model, or <code class="literal">NULL</code>.
223
+ </td>
224
+ </tr>
225
+ <tr>
226
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
227
+ <td>the x coordinate of the start of the line.
228
+ </td>
229
+ </tr>
230
+ <tr>
231
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
232
+ <td>the y coordinate of the start of the line.
233
+ </td>
234
+ </tr>
235
+ <tr>
236
+ <td><p><span class="term"><em class="parameter"><code>x2</code></em> :</span></p></td>
237
+ <td>the x coordinate of the end of the line.
238
+ </td>
239
+ </tr>
240
+ <tr>
241
+ <td><p><span class="term"><em class="parameter"><code>y2</code></em> :</span></p></td>
242
+ <td>the y coordinate of the end of the line.
243
+ </td>
244
+ </tr>
245
+ <tr>
246
+ <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
247
+ <td>optional pairs of property names and values, and a terminating <code class="literal">NULL</code>.
248
+ </td>
249
+ </tr>
250
+ <tr>
251
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
252
+ <td> a new polyline model.
253
+ </td>
254
+ </tr>
255
+ </tbody>
256
+ </table></div>
257
+ <p>
258
+ Here's an example showing how to create a line from (100,100) to (300,300).
259
+ </p>
260
+ <p>
261
+ </p>
262
+ <div class="informalexample">
263
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
264
+ <tbody>
265
+ <tr>
266
+ <td class="listing_lines" align="right"><pre>1
267
+ 2
268
+ 3
269
+ 4
270
+ 5
271
+ 6</pre></td>
272
+ <td class="listing_code"><pre class="programlisting"><span class="normal"><a href="GooCanvasItemModel.html">GooCanvasItemModel</a> </span><span class="symbol">*</span><span class="normal">polyline </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvasPolylineModel.html#goo-canvas-polyline-model-new-line">goo_canvas_polyline_model_new_line</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mygroup</span><span class="symbol">,</span>
273
+ <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>
274
+ <span class="normal"> </span><span class="number">300.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">300.0</span><span class="symbol">,</span>
275
+ <span class="normal"> </span><span class="string">"stroke-color"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"red"</span><span class="symbol">,</span>
276
+ <span class="normal"> </span><span class="string">"line-width"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">5.0</span><span class="symbol">,</span>
277
+ <span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
278
+ </tr>
279
+ </tbody>
280
+ </table>
281
+ </div>
282
+
283
+ <p>
284
+ </p>
285
+ </div>
286
+ </div>
287
+ <div class="refsect1" title="Property Details">
288
+ <a name="GooCanvasPolylineModel.property-details"></a><h2>Property Details</h2>
289
+ <div class="refsect2" title='The "arrow-length" property'>
290
+ <a name="GooCanvasPolylineModel--arrow-length"></a><h3>The <code class="literal">"arrow-length"</code> property</h3>
291
+ <pre class="programlisting"> "arrow-length" <span class="type">gdouble</span> : Read / Write</pre>
292
+ <p>The length of the arrows, as a multiple of the line width.</p>
293
+ <p>Allowed values: &gt;= 0</p>
294
+ <p>Default value: 5</p>
295
+ </div>
296
+ <hr>
297
+ <div class="refsect2" title='The "arrow-tip-length" property'>
298
+ <a name="GooCanvasPolylineModel--arrow-tip-length"></a><h3>The <code class="literal">"arrow-tip-length"</code> property</h3>
299
+ <pre class="programlisting"> "arrow-tip-length" <span class="type">gdouble</span> : Read / Write</pre>
300
+ <p>The length of the arrow tip, as a multiple of the line width.</p>
301
+ <p>Allowed values: &gt;= 0</p>
302
+ <p>Default value: 4</p>
303
+ </div>
304
+ <hr>
305
+ <div class="refsect2" title='The "arrow-width" property'>
306
+ <a name="GooCanvasPolylineModel--arrow-width"></a><h3>The <code class="literal">"arrow-width"</code> property</h3>
307
+ <pre class="programlisting"> "arrow-width" <span class="type">gdouble</span> : Read / Write</pre>
308
+ <p>The width of the arrows, as a multiple of the line width.</p>
309
+ <p>Allowed values: &gt;= 0</p>
310
+ <p>Default value: 4</p>
311
+ </div>
312
+ <hr>
313
+ <div class="refsect2" title='The "close-path" property'>
314
+ <a name="GooCanvasPolylineModel--close-path"></a><h3>The <code class="literal">"close-path"</code> property</h3>
315
+ <pre class="programlisting"> "close-path" <span class="type">gboolean</span> : Read / Write</pre>
316
+ <p>If the last point should be connected to the first.</p>
317
+ <p>Default value: FALSE</p>
318
+ </div>
319
+ <hr>
320
+ <div class="refsect2" title='The "end-arrow" property'>
321
+ <a name="GooCanvasPolylineModel--end-arrow"></a><h3>The <code class="literal">"end-arrow"</code> property</h3>
322
+ <pre class="programlisting"> "end-arrow" <span class="type">gboolean</span> : Read / Write</pre>
323
+ <p>If an arrow should be displayed at the end of the polyline.</p>
324
+ <p>Default value: FALSE</p>
325
+ </div>
326
+ <hr>
327
+ <div class="refsect2" title='The "height" property'>
328
+ <a name="GooCanvasPolylineModel--height"></a><h3>The <code class="literal">"height"</code> property</h3>
329
+ <pre class="programlisting"> "height" <span class="type">gdouble</span> : Read / Write</pre>
330
+ <p>The height of the polyline.</p>
331
+ <p>Allowed values: &gt;= 0</p>
332
+ <p>Default value: 0</p>
333
+ </div>
334
+ <hr>
335
+ <div class="refsect2" title='The "points" property'>
336
+ <a name="GooCanvasPolylineModel--points"></a><h3>The <code class="literal">"points"</code> property</h3>
337
+ <pre class="programlisting"> "points" <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasPoints" title="GooCanvasPoints"><span class="type">GooCanvasPoints</span></a>* : Read / Write</pre>
338
+ <p>The array of points.</p>
339
+ </div>
340
+ <hr>
341
+ <div class="refsect2" title='The "start-arrow" property'>
342
+ <a name="GooCanvasPolylineModel--start-arrow"></a><h3>The <code class="literal">"start-arrow"</code> property</h3>
343
+ <pre class="programlisting"> "start-arrow" <span class="type">gboolean</span> : Read / Write</pre>
344
+ <p>If an arrow should be displayed at the start of the polyline.</p>
345
+ <p>Default value: FALSE</p>
346
+ </div>
347
+ <hr>
348
+ <div class="refsect2" title='The "width" property'>
349
+ <a name="GooCanvasPolylineModel--width"></a><h3>The <code class="literal">"width"</code> property</h3>
350
+ <pre class="programlisting"> "width" <span class="type">gdouble</span> : Read / Write</pre>
351
+ <p>The width of the polyline.</p>
352
+ <p>Allowed values: &gt;= 0</p>
353
+ <p>Default value: 0</p>
354
+ </div>
355
+ <hr>
356
+ <div class="refsect2" title='The "x" property'>
357
+ <a name="GooCanvasPolylineModel--x"></a><h3>The <code class="literal">"x"</code> property</h3>
358
+ <pre class="programlisting"> "x" <span class="type">gdouble</span> : Read / Write</pre>
359
+ <p>The x coordinate of the left-most point of the polyline.</p>
360
+ <p>Default value: 0</p>
361
+ </div>
362
+ <hr>
363
+ <div class="refsect2" title='The "y" property'>
364
+ <a name="GooCanvasPolylineModel--y"></a><h3>The <code class="literal">"y"</code> property</h3>
365
+ <pre class="programlisting"> "y" <span class="type">gdouble</span> : Read / Write</pre>
366
+ <p>The y coordinate of the top-most point of the polyline.</p>
367
+ <p>Default value: 0</p>
368
+ </div>
369
+ </div>
370
+ </div>
371
+ <div class="footer">
372
+ <hr>
373
+ Generated by GTK-Doc V1.14</div>
374
+ </body>
375
+ </html>