goocanvas 0.90.6-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +87 -0
- data/README +37 -0
- data/Rakefile +14 -0
- data/ext/goocanvas/depend +5 -0
- data/ext/goocanvas/extconf.rb +66 -0
- data/ext/goocanvas/goocanvas.def +2 -0
- data/ext/goocanvas/rbgoocairo.c +74 -0
- data/ext/goocanvas/rbgoocanvas.c +236 -0
- data/ext/goocanvas/rbgoocanvas.h +66 -0
- data/ext/goocanvas/rbgoocanvasellipse.c +50 -0
- data/ext/goocanvas/rbgoocanvasgroup.c +41 -0
- data/ext/goocanvas/rbgoocanvasimage.c +45 -0
- data/ext/goocanvas/rbgoocanvasitem.c +358 -0
- data/ext/goocanvas/rbgoocanvaspolyline.c +102 -0
- data/ext/goocanvas/rbgoocanvasrect.c +47 -0
- data/ext/goocanvas/rbgoocanvasstyle.c +61 -0
- data/ext/goocanvas/rbgoocanvastable.c +41 -0
- data/ext/goocanvas/rbgoocanvastext.c +58 -0
- data/ext/goocanvas/rbgoocanvaswidget.c +48 -0
- data/ext/goocanvas/rbgooutils.c +44 -0
- data/extconf.rb +49 -0
- data/lib/1.8/goocanvas.so +0 -0
- data/lib/1.9/goocanvas.so +0 -0
- data/lib/goocanvas.rb +145 -0
- data/sample/demo-arrowhead.rb +315 -0
- data/sample/demo-fifteen.rb +218 -0
- data/sample/demo-primitives.rb +720 -0
- data/sample/demo.rb +84 -0
- data/sample/flower.png +0 -0
- data/sample/scalability-demo.rb +130 -0
- data/sample/simple-demo.rb +35 -0
- data/sample/table-demo.rb +137 -0
- data/sample/toroid.png +0 -0
- data/sample/units-demo.rb +80 -0
- data/sample/widgets-demo.rb +197 -0
- data/vendor/local/bin/libgoocanvas-3.dll +0 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvas.h +334 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasatk.h +22 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasellipse.h +120 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasenumtypes.h +33 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasgrid.h +153 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasgroup.h +109 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasimage.h +121 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasitem.h +479 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasitemmodel.h +275 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasitemsimple.h +247 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasmarshal.h +61 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvaspath.h +116 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvaspolyline.h +176 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasprivate.h +59 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasrect.h +121 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasstyle.h +110 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvastable.h +139 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvastext.h +133 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvasutils.h +333 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/goocanvaswidget.h +66 -0
- data/vendor/local/include/goocanvas-1.0.0/goocanvas/stamp-goocanvasmarshal.h +1 -0
- data/vendor/local/lib/libgoocanvas.a +0 -0
- data/vendor/local/lib/libgoocanvas.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/goocanvas.pc +13 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvas.html +1982 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasEllipse.html +269 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasEllipseModel.html +274 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasGrid.html +469 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasGridModel.html +476 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasGroup.html +183 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasGroupModel.html +184 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasImage.html +247 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasImageModel.html +252 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasItem.html +3014 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasItemModel.html +1764 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasItemModelSimple.html +298 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasItemSimple.html +809 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasPath.html +279 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasPathModel.html +280 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasPolyline.html +369 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasPolylineModel.html +375 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasRect.html +247 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasRectModel.html +252 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasStyle.html +489 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasTable.html +452 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasTableModel.html +452 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasText.html +324 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasTextModel.html +287 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/GooCanvasWidget.html +266 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/ch01.html +53 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/ch02.html +50 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/ch03.html +62 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/ch04.html +60 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/ch05.html +33 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-GooCanvas-Types.html +815 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-architecture.html +157 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-coordinates.html +106 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-creating-items.html +420 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-model-view-canvas.html +246 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-overview.html +106 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-simple-canvas.html +238 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas-wysiwyg.html +84 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas.devhelp +608 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/goocanvas.devhelp2 +639 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/index.html +138 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/index.sgml +814 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/goocanvas/up.png +0 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/dummy.sgml +0 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvas-unused.sgml +0 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvas.sgml +536 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasellipse.sgml +82 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasellipsemodel.sgml +82 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasgrid.sgml +176 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasgridmodel.sgml +176 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasgroup.sgml +58 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasgroupmodel.sgml +58 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasimage.sgml +81 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasimagemodel.sgml +81 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasitem.sgml +773 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasitemmodel.sgml +490 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasitemmodelsimple.sgml +135 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasitemsimple.sgml +254 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaspath.sgml +64 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaspathmodel.sgml +64 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaspolyline.sgml +109 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaspolylinemodel.sgml +109 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasrect.sgml +72 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasrectmodel.sgml +72 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasstyle.sgml +186 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvastable.sgml +158 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvastablemodel.sgml +158 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvastext.sgml +103 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvastextmodel.sgml +93 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvasutils.sgml +241 -0
- data/vendor/local/share/gtk-doc/tmpl/goocanvas/goocanvaswidget.sgml +73 -0
- metadata +218 -0
@@ -0,0 +1,269 @@
|
|
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>GooCanvasEllipse</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="GooCanvasGroup.html" title="GooCanvasGroup">
|
10
|
+
<link rel="next" href="GooCanvasGrid.html" title="GooCanvasGrid">
|
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="GooCanvasGroup.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="GooCanvasGrid.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="#GooCanvasEllipse.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#GooCanvasEllipse.description" class="shortcut">Description</a>
|
27
|
+
|
|
28
|
+
<a href="#GooCanvasEllipse.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
+
|
|
30
|
+
<a href="#GooCanvasEllipse.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
31
|
+
|
|
32
|
+
<a href="#GooCanvasEllipse.properties" class="shortcut">Properties</a>
|
33
|
+
</td></tr>
|
34
|
+
</table>
|
35
|
+
<div class="refentry" title="GooCanvasEllipse">
|
36
|
+
<a name="GooCanvasEllipse"></a><div class="titlepage"></div>
|
37
|
+
<div class="refnamediv"><table width="100%"><tr>
|
38
|
+
<td valign="top">
|
39
|
+
<h2><span class="refentrytitle"><a name="GooCanvasEllipse.top_of_page"></a>GooCanvasEllipse</span></h2>
|
40
|
+
<p>GooCanvasEllipse — an ellipse item.</p>
|
41
|
+
</td>
|
42
|
+
<td valign="top" align="right"></td>
|
43
|
+
</tr></table></div>
|
44
|
+
<div class="refsynopsisdiv" title="Synopsis">
|
45
|
+
<a name="GooCanvasEllipse.synopsis"></a><h2>Synopsis</h2>
|
46
|
+
<pre class="synopsis"> <a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse-struct" title="GooCanvasEllipse">GooCanvasEllipse</a>;
|
47
|
+
<a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* <a class="link" href="GooCanvasEllipse.html#goo-canvas-ellipse-new" title="goo_canvas_ellipse_new ()">goo_canvas_ellipse_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">gdouble</span> center_x</code></em>,
|
49
|
+
<em class="parameter"><code><span class="type">gdouble</span> center_y</code></em>,
|
50
|
+
<em class="parameter"><code><span class="type">gdouble</span> radius_x</code></em>,
|
51
|
+
<em class="parameter"><code><span class="type">gdouble</span> radius_y</code></em>,
|
52
|
+
<em class="parameter"><code>...</code></em>);
|
53
|
+
</pre>
|
54
|
+
</div>
|
55
|
+
<div class="refsect1" title="Object Hierarchy">
|
56
|
+
<a name="GooCanvasEllipse.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
57
|
+
<pre class="synopsis">
|
58
|
+
GObject
|
59
|
+
+----<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a>
|
60
|
+
+----GooCanvasEllipse
|
61
|
+
</pre>
|
62
|
+
</div>
|
63
|
+
<div class="refsect1" title="Implemented Interfaces">
|
64
|
+
<a name="GooCanvasEllipse.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
65
|
+
<p>
|
66
|
+
GooCanvasEllipse implements
|
67
|
+
<a class="link" href="GooCanvasItem.html" title="GooCanvasItem">GooCanvasItem</a>.</p>
|
68
|
+
</div>
|
69
|
+
<div class="refsect1" title="Properties">
|
70
|
+
<a name="GooCanvasEllipse.properties"></a><h2>Properties</h2>
|
71
|
+
<pre class="synopsis">
|
72
|
+
"<a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse--center-x" title='The "center-x" property'>center-x</a>" <span class="type">gdouble</span> : Read / Write
|
73
|
+
"<a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse--center-y" title='The "center-y" property'>center-y</a>" <span class="type">gdouble</span> : Read / Write
|
74
|
+
"<a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse--height" title='The "height" property'>height</a>" <span class="type">gdouble</span> : Read / Write
|
75
|
+
"<a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse--radius-x" title='The "radius-x" property'>radius-x</a>" <span class="type">gdouble</span> : Read / Write
|
76
|
+
"<a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse--radius-y" title='The "radius-y" property'>radius-y</a>" <span class="type">gdouble</span> : Read / Write
|
77
|
+
"<a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse--width" title='The "width" property'>width</a>" <span class="type">gdouble</span> : Read / Write
|
78
|
+
"<a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse--x" title='The "x" property'>x</a>" <span class="type">gdouble</span> : Read / Write
|
79
|
+
"<a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse--y" title='The "y" property'>y</a>" <span class="type">gdouble</span> : Read / Write
|
80
|
+
</pre>
|
81
|
+
</div>
|
82
|
+
<div class="refsect1" title="Description">
|
83
|
+
<a name="GooCanvasEllipse.description"></a><h2>Description</h2>
|
84
|
+
<p>
|
85
|
+
GooCanvasEllipse represents an ellipse item.
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
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
|
89
|
+
properties such as "stroke-color", "fill-color" and "line-width".
|
90
|
+
</p>
|
91
|
+
<p>
|
92
|
+
It also implements the <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> interface, so you can use the
|
93
|
+
<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
|
94
|
+
<a class="link" href="GooCanvasItem.html#goo-canvas-item-rotate" title="goo_canvas_item_rotate ()"><code class="function">goo_canvas_item_rotate()</code></a>.
|
95
|
+
</p>
|
96
|
+
<p>
|
97
|
+
To create a <a class="link" href="GooCanvasEllipse.html" title="GooCanvasEllipse"><span class="type">GooCanvasEllipse</span></a> use <a class="link" href="GooCanvasEllipse.html#goo-canvas-ellipse-new" title="goo_canvas_ellipse_new ()"><code class="function">goo_canvas_ellipse_new()</code></a>.
|
98
|
+
</p>
|
99
|
+
<p>
|
100
|
+
To get or set the properties of an existing <a class="link" href="GooCanvasEllipse.html" title="GooCanvasEllipse"><span class="type">GooCanvasEllipse</span></a>, use
|
101
|
+
<code class="function">g_object_get()</code> and <code class="function">g_object_set()</code>.
|
102
|
+
</p>
|
103
|
+
<p>
|
104
|
+
The ellipse can be specified either with the "center-x", "center-y",
|
105
|
+
"radius-x" and "radius-y" properties, or with the "x", "y", "width" and
|
106
|
+
"height" properties.
|
107
|
+
</p>
|
108
|
+
</div>
|
109
|
+
<div class="refsect1" title="Details">
|
110
|
+
<a name="GooCanvasEllipse.details"></a><h2>Details</h2>
|
111
|
+
<div class="refsect2" title="GooCanvasEllipse">
|
112
|
+
<a name="GooCanvasEllipse-struct"></a><h3>GooCanvasEllipse</h3>
|
113
|
+
<pre class="programlisting">typedef struct _GooCanvasEllipse GooCanvasEllipse;</pre>
|
114
|
+
<p>
|
115
|
+
The <a class="link" href="GooCanvasEllipse.html#GooCanvasEllipse-struct" title="GooCanvasEllipse"><span class="type">GooCanvasEllipse</span></a> struct contains private data only.
|
116
|
+
</p>
|
117
|
+
</div>
|
118
|
+
<hr>
|
119
|
+
<div class="refsect2" title="goo_canvas_ellipse_new ()">
|
120
|
+
<a name="goo-canvas-ellipse-new"></a><h3>goo_canvas_ellipse_new ()</h3>
|
121
|
+
<pre class="programlisting"><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="returnvalue">GooCanvasItem</span></a>* goo_canvas_ellipse_new (<em class="parameter"><code><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *parent</code></em>,
|
122
|
+
<em class="parameter"><code><span class="type">gdouble</span> center_x</code></em>,
|
123
|
+
<em class="parameter"><code><span class="type">gdouble</span> center_y</code></em>,
|
124
|
+
<em class="parameter"><code><span class="type">gdouble</span> radius_x</code></em>,
|
125
|
+
<em class="parameter"><code><span class="type">gdouble</span> radius_y</code></em>,
|
126
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
127
|
+
<p>
|
128
|
+
Creates a new ellipse item.
|
129
|
+
</p>
|
130
|
+
<div class="variablelist"><table border="0">
|
131
|
+
<col align="left" valign="top">
|
132
|
+
<tbody>
|
133
|
+
<tr>
|
134
|
+
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
|
135
|
+
<td>the parent item, or <code class="literal">NULL</code>. If a parent is specified, it will assume
|
136
|
+
ownership of the item, and the item will automatically be freed when it is
|
137
|
+
removed from the parent. Otherwise call <code class="function">g_object_unref()</code> to free it.
|
138
|
+
</td>
|
139
|
+
</tr>
|
140
|
+
<tr>
|
141
|
+
<td><p><span class="term"><em class="parameter"><code>center_x</code></em> :</span></p></td>
|
142
|
+
<td>the x coordinate of the center of the ellipse.
|
143
|
+
</td>
|
144
|
+
</tr>
|
145
|
+
<tr>
|
146
|
+
<td><p><span class="term"><em class="parameter"><code>center_y</code></em> :</span></p></td>
|
147
|
+
<td>the y coordinate of the center of the ellipse.
|
148
|
+
</td>
|
149
|
+
</tr>
|
150
|
+
<tr>
|
151
|
+
<td><p><span class="term"><em class="parameter"><code>radius_x</code></em> :</span></p></td>
|
152
|
+
<td>the horizontal radius of the ellipse.
|
153
|
+
</td>
|
154
|
+
</tr>
|
155
|
+
<tr>
|
156
|
+
<td><p><span class="term"><em class="parameter"><code>radius_y</code></em> :</span></p></td>
|
157
|
+
<td>the vertical radius of the ellipse.
|
158
|
+
</td>
|
159
|
+
</tr>
|
160
|
+
<tr>
|
161
|
+
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
162
|
+
<td>optional pairs of property names and values, and a terminating <code class="literal">NULL</code>.
|
163
|
+
</td>
|
164
|
+
</tr>
|
165
|
+
<tr>
|
166
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
167
|
+
<td> a new ellipse item.
|
168
|
+
</td>
|
169
|
+
</tr>
|
170
|
+
</tbody>
|
171
|
+
</table></div>
|
172
|
+
<p>
|
173
|
+
Here's an example showing how to create an ellipse centered at (100.0,
|
174
|
+
100.0), with a horizontal radius of 50.0 and a vertical radius of 30.0.
|
175
|
+
It is drawn with a red outline with a width of 5.0 and filled with blue:
|
176
|
+
</p>
|
177
|
+
<p>
|
178
|
+
</p>
|
179
|
+
<div class="informalexample">
|
180
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
181
|
+
<tbody>
|
182
|
+
<tr>
|
183
|
+
<td class="listing_lines" align="right"><pre>1
|
184
|
+
2
|
185
|
+
3
|
186
|
+
4
|
187
|
+
5</pre></td>
|
188
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal"><a href="GooCanvasItem.html">GooCanvasItem</a> </span><span class="symbol">*</span><span class="normal">ellipse </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvasEllipse.html#goo-canvas-ellipse-new">goo_canvas_ellipse_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mygroup</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><span class="normal"> </span><span class="number">50.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">30.0</span><span class="symbol">,</span>
|
189
|
+
<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>
|
190
|
+
<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>
|
191
|
+
<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>
|
192
|
+
<span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
|
193
|
+
</tr>
|
194
|
+
</tbody>
|
195
|
+
</table>
|
196
|
+
</div>
|
197
|
+
|
198
|
+
<p>
|
199
|
+
</p>
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
<div class="refsect1" title="Property Details">
|
203
|
+
<a name="GooCanvasEllipse.property-details"></a><h2>Property Details</h2>
|
204
|
+
<div class="refsect2" title='The "center-x" property'>
|
205
|
+
<a name="GooCanvasEllipse--center-x"></a><h3>The <code class="literal">"center-x"</code> property</h3>
|
206
|
+
<pre class="programlisting"> "center-x" <span class="type">gdouble</span> : Read / Write</pre>
|
207
|
+
<p>The x coordinate of the center of the ellipse.</p>
|
208
|
+
<p>Default value: 0</p>
|
209
|
+
</div>
|
210
|
+
<hr>
|
211
|
+
<div class="refsect2" title='The "center-y" property'>
|
212
|
+
<a name="GooCanvasEllipse--center-y"></a><h3>The <code class="literal">"center-y"</code> property</h3>
|
213
|
+
<pre class="programlisting"> "center-y" <span class="type">gdouble</span> : Read / Write</pre>
|
214
|
+
<p>The y coordinate of the center of the ellipse.</p>
|
215
|
+
<p>Default value: 0</p>
|
216
|
+
</div>
|
217
|
+
<hr>
|
218
|
+
<div class="refsect2" title='The "height" property'>
|
219
|
+
<a name="GooCanvasEllipse--height"></a><h3>The <code class="literal">"height"</code> property</h3>
|
220
|
+
<pre class="programlisting"> "height" <span class="type">gdouble</span> : Read / Write</pre>
|
221
|
+
<p>The height of the ellipse.</p>
|
222
|
+
<p>Allowed values: >= 0</p>
|
223
|
+
<p>Default value: 0</p>
|
224
|
+
</div>
|
225
|
+
<hr>
|
226
|
+
<div class="refsect2" title='The "radius-x" property'>
|
227
|
+
<a name="GooCanvasEllipse--radius-x"></a><h3>The <code class="literal">"radius-x"</code> property</h3>
|
228
|
+
<pre class="programlisting"> "radius-x" <span class="type">gdouble</span> : Read / Write</pre>
|
229
|
+
<p>The horizontal radius of the ellipse.</p>
|
230
|
+
<p>Allowed values: >= 0</p>
|
231
|
+
<p>Default value: 0</p>
|
232
|
+
</div>
|
233
|
+
<hr>
|
234
|
+
<div class="refsect2" title='The "radius-y" property'>
|
235
|
+
<a name="GooCanvasEllipse--radius-y"></a><h3>The <code class="literal">"radius-y"</code> property</h3>
|
236
|
+
<pre class="programlisting"> "radius-y" <span class="type">gdouble</span> : Read / Write</pre>
|
237
|
+
<p>The vertical radius of the ellipse.</p>
|
238
|
+
<p>Allowed values: >= 0</p>
|
239
|
+
<p>Default value: 0</p>
|
240
|
+
</div>
|
241
|
+
<hr>
|
242
|
+
<div class="refsect2" title='The "width" property'>
|
243
|
+
<a name="GooCanvasEllipse--width"></a><h3>The <code class="literal">"width"</code> property</h3>
|
244
|
+
<pre class="programlisting"> "width" <span class="type">gdouble</span> : Read / Write</pre>
|
245
|
+
<p>The width of the ellipse.</p>
|
246
|
+
<p>Allowed values: >= 0</p>
|
247
|
+
<p>Default value: 0</p>
|
248
|
+
</div>
|
249
|
+
<hr>
|
250
|
+
<div class="refsect2" title='The "x" property'>
|
251
|
+
<a name="GooCanvasEllipse--x"></a><h3>The <code class="literal">"x"</code> property</h3>
|
252
|
+
<pre class="programlisting"> "x" <span class="type">gdouble</span> : Read / Write</pre>
|
253
|
+
<p>The x coordinate of the left side of the ellipse.</p>
|
254
|
+
<p>Default value: 0</p>
|
255
|
+
</div>
|
256
|
+
<hr>
|
257
|
+
<div class="refsect2" title='The "y" property'>
|
258
|
+
<a name="GooCanvasEllipse--y"></a><h3>The <code class="literal">"y"</code> property</h3>
|
259
|
+
<pre class="programlisting"> "y" <span class="type">gdouble</span> : Read / Write</pre>
|
260
|
+
<p>The y coordinate of the top of the ellipse.</p>
|
261
|
+
<p>Default value: 0</p>
|
262
|
+
</div>
|
263
|
+
</div>
|
264
|
+
</div>
|
265
|
+
<div class="footer">
|
266
|
+
<hr>
|
267
|
+
Generated by GTK-Doc V1.14</div>
|
268
|
+
</body>
|
269
|
+
</html>
|
@@ -0,0 +1,274 @@
|
|
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>GooCanvasEllipseModel</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="GooCanvasGroupModel.html" title="GooCanvasGroupModel">
|
10
|
+
<link rel="next" href="GooCanvasGridModel.html" title="GooCanvasGridModel">
|
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="GooCanvasGroupModel.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="GooCanvasGridModel.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="#GooCanvasEllipseModel.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#GooCanvasEllipseModel.description" class="shortcut">Description</a>
|
27
|
+
|
|
28
|
+
<a href="#GooCanvasEllipseModel.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
+
|
|
30
|
+
<a href="#GooCanvasEllipseModel.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
31
|
+
|
|
32
|
+
<a href="#GooCanvasEllipseModel.properties" class="shortcut">Properties</a>
|
33
|
+
</td></tr>
|
34
|
+
</table>
|
35
|
+
<div class="refentry" title="GooCanvasEllipseModel">
|
36
|
+
<a name="GooCanvasEllipseModel"></a><div class="titlepage"></div>
|
37
|
+
<div class="refnamediv"><table width="100%"><tr>
|
38
|
+
<td valign="top">
|
39
|
+
<h2><span class="refentrytitle"><a name="GooCanvasEllipseModel.top_of_page"></a>GooCanvasEllipseModel</span></h2>
|
40
|
+
<p>GooCanvasEllipseModel — a model for ellipse items.</p>
|
41
|
+
</td>
|
42
|
+
<td valign="top" align="right"></td>
|
43
|
+
</tr></table></div>
|
44
|
+
<div class="refsynopsisdiv" title="Synopsis">
|
45
|
+
<a name="GooCanvasEllipseModel.synopsis"></a><h2>Synopsis</h2>
|
46
|
+
<pre class="synopsis"> <a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel-struct" title="GooCanvasEllipseModel">GooCanvasEllipseModel</a>;
|
47
|
+
<a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* <a class="link" href="GooCanvasEllipseModel.html#goo-canvas-ellipse-model-new" title="goo_canvas_ellipse_model_new ()">goo_canvas_ellipse_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">gdouble</span> center_x</code></em>,
|
49
|
+
<em class="parameter"><code><span class="type">gdouble</span> center_y</code></em>,
|
50
|
+
<em class="parameter"><code><span class="type">gdouble</span> radius_x</code></em>,
|
51
|
+
<em class="parameter"><code><span class="type">gdouble</span> radius_y</code></em>,
|
52
|
+
<em class="parameter"><code>...</code></em>);
|
53
|
+
</pre>
|
54
|
+
</div>
|
55
|
+
<div class="refsect1" title="Object Hierarchy">
|
56
|
+
<a name="GooCanvasEllipseModel.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
57
|
+
<pre class="synopsis">
|
58
|
+
GObject
|
59
|
+
+----<a class="link" href="GooCanvasItemModelSimple.html" title="GooCanvasItemModelSimple">GooCanvasItemModelSimple</a>
|
60
|
+
+----GooCanvasEllipseModel
|
61
|
+
</pre>
|
62
|
+
</div>
|
63
|
+
<div class="refsect1" title="Implemented Interfaces">
|
64
|
+
<a name="GooCanvasEllipseModel.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
65
|
+
<p>
|
66
|
+
GooCanvasEllipseModel implements
|
67
|
+
<a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel">GooCanvasItemModel</a>.</p>
|
68
|
+
</div>
|
69
|
+
<div class="refsect1" title="Properties">
|
70
|
+
<a name="GooCanvasEllipseModel.properties"></a><h2>Properties</h2>
|
71
|
+
<pre class="synopsis">
|
72
|
+
"<a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel--center-x" title='The "center-x" property'>center-x</a>" <span class="type">gdouble</span> : Read / Write
|
73
|
+
"<a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel--center-y" title='The "center-y" property'>center-y</a>" <span class="type">gdouble</span> : Read / Write
|
74
|
+
"<a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel--height" title='The "height" property'>height</a>" <span class="type">gdouble</span> : Read / Write
|
75
|
+
"<a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel--radius-x" title='The "radius-x" property'>radius-x</a>" <span class="type">gdouble</span> : Read / Write
|
76
|
+
"<a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel--radius-y" title='The "radius-y" property'>radius-y</a>" <span class="type">gdouble</span> : Read / Write
|
77
|
+
"<a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel--width" title='The "width" property'>width</a>" <span class="type">gdouble</span> : Read / Write
|
78
|
+
"<a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel--x" title='The "x" property'>x</a>" <span class="type">gdouble</span> : Read / Write
|
79
|
+
"<a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel--y" title='The "y" property'>y</a>" <span class="type">gdouble</span> : Read / Write
|
80
|
+
</pre>
|
81
|
+
</div>
|
82
|
+
<div class="refsect1" title="Description">
|
83
|
+
<a name="GooCanvasEllipseModel.description"></a><h2>Description</h2>
|
84
|
+
<p>
|
85
|
+
GooCanvasEllipseModel represents a model for ellipse items.
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
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
|
89
|
+
style properties such as "stroke-color", "fill-color" and "line-width".
|
90
|
+
</p>
|
91
|
+
<p>
|
92
|
+
It also implements the <a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> interface, so you can use the
|
93
|
+
<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
|
94
|
+
<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>.
|
95
|
+
</p>
|
96
|
+
<p>
|
97
|
+
To create a <a class="link" href="GooCanvasEllipseModel.html" title="GooCanvasEllipseModel"><span class="type">GooCanvasEllipseModel</span></a> use <a class="link" href="GooCanvasEllipseModel.html#goo-canvas-ellipse-model-new" title="goo_canvas_ellipse_model_new ()"><code class="function">goo_canvas_ellipse_model_new()</code></a>.
|
98
|
+
</p>
|
99
|
+
<p>
|
100
|
+
To get or set the properties of an existing <a class="link" href="GooCanvasEllipseModel.html" title="GooCanvasEllipseModel"><span class="type">GooCanvasEllipseModel</span></a>, use
|
101
|
+
<code class="function">g_object_get()</code> and <code class="function">g_object_set()</code>.
|
102
|
+
</p>
|
103
|
+
<p>
|
104
|
+
The ellipse can be specified either with the "center-x", "center-y",
|
105
|
+
"radius-x" and "radius-y" properties, or with the "x", "y", "width" and
|
106
|
+
"height" properties.
|
107
|
+
</p>
|
108
|
+
<p>
|
109
|
+
To respond to events such as mouse clicks on the ellipse you must connect
|
110
|
+
to the signal handlers of the corresponding <a class="link" href="GooCanvasEllipse.html" title="GooCanvasEllipse"><span class="type">GooCanvasEllipse</span></a> objects.
|
111
|
+
(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>.)
|
112
|
+
</p>
|
113
|
+
</div>
|
114
|
+
<div class="refsect1" title="Details">
|
115
|
+
<a name="GooCanvasEllipseModel.details"></a><h2>Details</h2>
|
116
|
+
<div class="refsect2" title="GooCanvasEllipseModel">
|
117
|
+
<a name="GooCanvasEllipseModel-struct"></a><h3>GooCanvasEllipseModel</h3>
|
118
|
+
<pre class="programlisting">typedef struct _GooCanvasEllipseModel GooCanvasEllipseModel;</pre>
|
119
|
+
<p>
|
120
|
+
The <a class="link" href="GooCanvasEllipseModel.html#GooCanvasEllipseModel-struct" title="GooCanvasEllipseModel"><span class="type">GooCanvasEllipseModel</span></a> struct contains private data only.
|
121
|
+
</p>
|
122
|
+
</div>
|
123
|
+
<hr>
|
124
|
+
<div class="refsect2" title="goo_canvas_ellipse_model_new ()">
|
125
|
+
<a name="goo-canvas-ellipse-model-new"></a><h3>goo_canvas_ellipse_model_new ()</h3>
|
126
|
+
<pre class="programlisting"><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="returnvalue">GooCanvasItemModel</span></a>* goo_canvas_ellipse_model_new (<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *parent</code></em>,
|
127
|
+
<em class="parameter"><code><span class="type">gdouble</span> center_x</code></em>,
|
128
|
+
<em class="parameter"><code><span class="type">gdouble</span> center_y</code></em>,
|
129
|
+
<em class="parameter"><code><span class="type">gdouble</span> radius_x</code></em>,
|
130
|
+
<em class="parameter"><code><span class="type">gdouble</span> radius_y</code></em>,
|
131
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
132
|
+
<p>
|
133
|
+
Creates a new ellipse model.
|
134
|
+
</p>
|
135
|
+
<div class="variablelist"><table border="0">
|
136
|
+
<col align="left" valign="top">
|
137
|
+
<tbody>
|
138
|
+
<tr>
|
139
|
+
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
|
140
|
+
<td>the parent model, or <code class="literal">NULL</code>. If a parent is specified, it will
|
141
|
+
assume ownership of the item, and the item will automatically be freed when
|
142
|
+
it is removed from the parent. Otherwise call <code class="function">g_object_unref()</code> to free it.
|
143
|
+
</td>
|
144
|
+
</tr>
|
145
|
+
<tr>
|
146
|
+
<td><p><span class="term"><em class="parameter"><code>center_x</code></em> :</span></p></td>
|
147
|
+
<td>the x coordinate of the center of the ellipse.
|
148
|
+
</td>
|
149
|
+
</tr>
|
150
|
+
<tr>
|
151
|
+
<td><p><span class="term"><em class="parameter"><code>center_y</code></em> :</span></p></td>
|
152
|
+
<td>the y coordinate of the center of the ellipse.
|
153
|
+
</td>
|
154
|
+
</tr>
|
155
|
+
<tr>
|
156
|
+
<td><p><span class="term"><em class="parameter"><code>radius_x</code></em> :</span></p></td>
|
157
|
+
<td>the horizontal radius of the ellipse.
|
158
|
+
</td>
|
159
|
+
</tr>
|
160
|
+
<tr>
|
161
|
+
<td><p><span class="term"><em class="parameter"><code>radius_y</code></em> :</span></p></td>
|
162
|
+
<td>the vertical radius of the ellipse.
|
163
|
+
</td>
|
164
|
+
</tr>
|
165
|
+
<tr>
|
166
|
+
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
167
|
+
<td>optional pairs of property names and values, and a terminating <code class="literal">NULL</code>.
|
168
|
+
</td>
|
169
|
+
</tr>
|
170
|
+
<tr>
|
171
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
172
|
+
<td> a new ellipse model.
|
173
|
+
</td>
|
174
|
+
</tr>
|
175
|
+
</tbody>
|
176
|
+
</table></div>
|
177
|
+
<p>
|
178
|
+
Here's an example showing how to create an ellipse centered at (100.0,
|
179
|
+
100.0), with a horizontal radius of 50.0 and a vertical radius of 30.0.
|
180
|
+
It is drawn with a red outline with a width of 5.0 and filled with blue:
|
181
|
+
</p>
|
182
|
+
<p>
|
183
|
+
</p>
|
184
|
+
<div class="informalexample">
|
185
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
186
|
+
<tbody>
|
187
|
+
<tr>
|
188
|
+
<td class="listing_lines" align="right"><pre>1
|
189
|
+
2
|
190
|
+
3
|
191
|
+
4
|
192
|
+
5</pre></td>
|
193
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal"><a href="GooCanvasItemModel.html">GooCanvasItemModel</a> </span><span class="symbol">*</span><span class="normal">ellipse </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GooCanvasEllipseModel.html#goo-canvas-ellipse-model-new">goo_canvas_ellipse_model_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mygroup</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><span class="normal"> </span><span class="number">50.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">30.0</span><span class="symbol">,</span>
|
194
|
+
<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>
|
195
|
+
<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>
|
196
|
+
<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>
|
197
|
+
<span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
|
198
|
+
</tr>
|
199
|
+
</tbody>
|
200
|
+
</table>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<p>
|
204
|
+
</p>
|
205
|
+
</div>
|
206
|
+
</div>
|
207
|
+
<div class="refsect1" title="Property Details">
|
208
|
+
<a name="GooCanvasEllipseModel.property-details"></a><h2>Property Details</h2>
|
209
|
+
<div class="refsect2" title='The "center-x" property'>
|
210
|
+
<a name="GooCanvasEllipseModel--center-x"></a><h3>The <code class="literal">"center-x"</code> property</h3>
|
211
|
+
<pre class="programlisting"> "center-x" <span class="type">gdouble</span> : Read / Write</pre>
|
212
|
+
<p>The x coordinate of the center of the ellipse.</p>
|
213
|
+
<p>Default value: 0</p>
|
214
|
+
</div>
|
215
|
+
<hr>
|
216
|
+
<div class="refsect2" title='The "center-y" property'>
|
217
|
+
<a name="GooCanvasEllipseModel--center-y"></a><h3>The <code class="literal">"center-y"</code> property</h3>
|
218
|
+
<pre class="programlisting"> "center-y" <span class="type">gdouble</span> : Read / Write</pre>
|
219
|
+
<p>The y coordinate of the center of the ellipse.</p>
|
220
|
+
<p>Default value: 0</p>
|
221
|
+
</div>
|
222
|
+
<hr>
|
223
|
+
<div class="refsect2" title='The "height" property'>
|
224
|
+
<a name="GooCanvasEllipseModel--height"></a><h3>The <code class="literal">"height"</code> property</h3>
|
225
|
+
<pre class="programlisting"> "height" <span class="type">gdouble</span> : Read / Write</pre>
|
226
|
+
<p>The height of the ellipse.</p>
|
227
|
+
<p>Allowed values: >= 0</p>
|
228
|
+
<p>Default value: 0</p>
|
229
|
+
</div>
|
230
|
+
<hr>
|
231
|
+
<div class="refsect2" title='The "radius-x" property'>
|
232
|
+
<a name="GooCanvasEllipseModel--radius-x"></a><h3>The <code class="literal">"radius-x"</code> property</h3>
|
233
|
+
<pre class="programlisting"> "radius-x" <span class="type">gdouble</span> : Read / Write</pre>
|
234
|
+
<p>The horizontal radius of the ellipse.</p>
|
235
|
+
<p>Allowed values: >= 0</p>
|
236
|
+
<p>Default value: 0</p>
|
237
|
+
</div>
|
238
|
+
<hr>
|
239
|
+
<div class="refsect2" title='The "radius-y" property'>
|
240
|
+
<a name="GooCanvasEllipseModel--radius-y"></a><h3>The <code class="literal">"radius-y"</code> property</h3>
|
241
|
+
<pre class="programlisting"> "radius-y" <span class="type">gdouble</span> : Read / Write</pre>
|
242
|
+
<p>The vertical radius of the ellipse.</p>
|
243
|
+
<p>Allowed values: >= 0</p>
|
244
|
+
<p>Default value: 0</p>
|
245
|
+
</div>
|
246
|
+
<hr>
|
247
|
+
<div class="refsect2" title='The "width" property'>
|
248
|
+
<a name="GooCanvasEllipseModel--width"></a><h3>The <code class="literal">"width"</code> property</h3>
|
249
|
+
<pre class="programlisting"> "width" <span class="type">gdouble</span> : Read / Write</pre>
|
250
|
+
<p>The width of the ellipse.</p>
|
251
|
+
<p>Allowed values: >= 0</p>
|
252
|
+
<p>Default value: 0</p>
|
253
|
+
</div>
|
254
|
+
<hr>
|
255
|
+
<div class="refsect2" title='The "x" property'>
|
256
|
+
<a name="GooCanvasEllipseModel--x"></a><h3>The <code class="literal">"x"</code> property</h3>
|
257
|
+
<pre class="programlisting"> "x" <span class="type">gdouble</span> : Read / Write</pre>
|
258
|
+
<p>The x coordinate of the left side of the ellipse.</p>
|
259
|
+
<p>Default value: 0</p>
|
260
|
+
</div>
|
261
|
+
<hr>
|
262
|
+
<div class="refsect2" title='The "y" property'>
|
263
|
+
<a name="GooCanvasEllipseModel--y"></a><h3>The <code class="literal">"y"</code> property</h3>
|
264
|
+
<pre class="programlisting"> "y" <span class="type">gdouble</span> : Read / Write</pre>
|
265
|
+
<p>The y coordinate of the top of the ellipse.</p>
|
266
|
+
<p>Default value: 0</p>
|
267
|
+
</div>
|
268
|
+
</div>
|
269
|
+
</div>
|
270
|
+
<div class="footer">
|
271
|
+
<hr>
|
272
|
+
Generated by GTK-Doc V1.14</div>
|
273
|
+
</body>
|
274
|
+
</html>
|