aboutsummaryrefslogtreecommitdiff
path: root/zinclib.d/doc/html/ZincTypes_8hpp-source.html
blob: 4476d2336e607ccbac9da589f400b7bbe1e60d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>IntuiKit: ZincTypes.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.3 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>ZincTypes.hpp</h1><a href="ZincTypes_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00015 <span class="preprocessor">#include &lt;string&gt;</span>
00016 
00017 <span class="preprocessor">#ifndef ZINC_TYPES</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define ZINC_TYPES</span>
00019 <span class="preprocessor"></span>
<a name="l00020"></a><a class="code" href="ZincTypes_8hpp.html#a0">00020</a> <span class="keyword">typedef</span> std::string <a class="code" href="ZincTypes_8hpp.html#a0">String</a>;
00021 
00022 <span class="comment">/**********************************</span>
00023 <span class="comment">   Predeclaration of Zinc types</span>
00024 <span class="comment">**********************************/</span>
00025 <span class="keyword">class </span><a class="code" href="classZinc.html">Zinc</a>;
00026 <span class="keyword">class </span><a class="code" href="classZincPath.html">ZincPath</a>;
00027 <span class="keyword">class </span><a class="code" href="classZincItem.html">ZincItem</a>;
00028 <span class="keyword">class </span><a class="code" href="classZincImage.html">ZincImage</a>;
00029 <span class="keyword">class </span><a class="code" href="classZincFont.html">ZincFont</a>;
00030 <span class="keyword">struct </span><a class="code" href="structZincEvent.html">ZincEvent</a>;
00031 
00032 <span class="comment">/*******************************************************</span>
00033 <span class="comment">     Signature to use when binding with a callback</span>
00034 <span class="comment">*******************************************************/</span>
00035 <span class="keyword">typedef</span> void (*ZincItemCallback)
<a name="l00036"></a><a class="code" href="ZincTypes_8hpp.html#a1">00036</a>              (<a class="code" href="classZinc.html">Zinc</a> *zinc,        <span class="comment">// Information about the widget.</span>
00037               <a class="code" href="classZincItem.html">ZincItem</a> *item,    <span class="comment">// the item being evented</span>
00038               <a class="code" href="structZincEvent.html">ZincEvent</a> *event,  <span class="comment">// event information</span>
00039               <span class="keywordtype">void</span> *userData);   <span class="comment">// user data provided with bind</span>
00040 
00041 <span class="keyword">typedef</span> void (*ZincWidgetCallback)
<a name="l00042"></a><a class="code" href="ZincTypes_8hpp.html#a2">00042</a>              (<a class="code" href="classZinc.html">Zinc</a> *zinc,        <span class="comment">// Information about the widget.</span>
00043               <a class="code" href="structZincEvent.html">ZincEvent</a> *event,  <span class="comment">// event information</span>
00044               <span class="keywordtype">void</span> *userData);   <span class="comment">// user data provided with bind</span>
00045 
00046 
00047 <span class="comment">/***********************************</span>
00048 <span class="comment">       Library constants</span>
00049 <span class="comment">***********************************/</span>
00050 
00051 <span class="comment">// Rendering model</span>
<a name="l00052"></a><a class="code" href="ZincTypes_8hpp.html#a3">00052</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="ZincTypes_8hpp.html#a3">ZINC_BACKEND_X11</a> = 0;
<a name="l00053"></a><a class="code" href="ZincTypes_8hpp.html#a4">00053</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="ZincTypes_8hpp.html#a4">ZINC_BACKEND_OPENGL</a> = 1;
00054 
00055 
00056 <span class="comment">/***********************************</span>
00057 <span class="comment">       Library enums</span>
00058 <span class="comment">***********************************/</span>
00059 
00060 <span class="comment">//Styles for line items</span>
<a name="l00061"></a><a class="code" href="ZincTypes_8hpp.html#a52">00061</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00062 {
00063   <a class="code" href="ZincTypes_8hpp.html#a52a5">lineStyle_simple</a> = 0,  
00064   <a class="code" href="ZincTypes_8hpp.html#a52a6">lineStyle_dashed</a>,
00065   <a class="code" href="ZincTypes_8hpp.html#a52a7">lineStyle_mixed</a>,
00066   <a class="code" href="ZincTypes_8hpp.html#a52a8">lineStyle_dotted</a>
00067 } <a class="code" href="ZincTypes_8hpp.html#a52">lineStyle</a>;
00068 
00069 <span class="comment">//Styles for line cap</span>
<a name="l00070"></a><a class="code" href="ZincTypes_8hpp.html#a53">00070</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00071 {
00072   <a class="code" href="ZincTypes_8hpp.html#a53a9">capStyle_butt</a> = 0,
00073   <a class="code" href="ZincTypes_8hpp.html#a53a10">capStyle_projecting</a>,
00074   <a class="code" href="ZincTypes_8hpp.html#a53a11">capStyle_round</a>
00075 } <a class="code" href="ZincTypes_8hpp.html#a53">capStyle</a>;
00076 
00077 <span class="comment">//List of fill rules</span>
<a name="l00078"></a><a class="code" href="ZincTypes_8hpp.html#a54">00078</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00079 {
00080   <a class="code" href="ZincTypes_8hpp.html#a54a12">fillRule_odd</a> = 0 ,
00081   <a class="code" href="ZincTypes_8hpp.html#a54a13">fillRule_nonzero</a>,
00082   <a class="code" href="ZincTypes_8hpp.html#a54a14">fillRule_positive</a>,
00083   <a class="code" href="ZincTypes_8hpp.html#a54a15">fillRule_negative</a>,
00084   <a class="code" href="ZincTypes_8hpp.html#a54a16">fillRule_abs_geq_2</a>
00085 } <a class="code" href="ZincTypes_8hpp.html#a54">fillRule</a>;
00086 
00087 <span class="comment">//list of join style</span>
<a name="l00088"></a><a class="code" href="ZincTypes_8hpp.html#a55">00088</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00089 {
00090   <a class="code" href="ZincTypes_8hpp.html#a55a17">joinStyle_bevel</a> = 0,
00091   <a class="code" href="ZincTypes_8hpp.html#a55a18">joinStyle_miter</a>,
00092   <a class="code" href="ZincTypes_8hpp.html#a55a19">joinStyle_round</a>
00093 } <a class="code" href="ZincTypes_8hpp.html#a55">joinStyle</a>;
00094 
00095 <span class="comment">//list of reliefs</span>
<a name="l00096"></a><a class="code" href="ZincTypes_8hpp.html#a56">00096</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00097 {
00098   <a class="code" href="ZincTypes_8hpp.html#a56a20">relief_flat</a> = 0,
00099   <a class="code" href="ZincTypes_8hpp.html#a56a21">relief_raised</a>,
00100   <a class="code" href="ZincTypes_8hpp.html#a56a22">relief_sunken</a>,
00101   <a class="code" href="ZincTypes_8hpp.html#a56a23">relief_ridge</a>,
00102   <a class="code" href="ZincTypes_8hpp.html#a56a24">relief_groove</a>,
00103   <a class="code" href="ZincTypes_8hpp.html#a56a25">relief_roundraised</a>,
00104   <a class="code" href="ZincTypes_8hpp.html#a56a26">relief_roundsunken</a>,
00105   <a class="code" href="ZincTypes_8hpp.html#a56a27">relief_roundridge</a>,
00106   <a class="code" href="ZincTypes_8hpp.html#a56a28">relief_roundgroove</a>,
00107   <a class="code" href="ZincTypes_8hpp.html#a56a29">relief_raisedrule</a>,
00108   <a class="code" href="ZincTypes_8hpp.html#a56a30">relief_sunkenrule</a>
00109 } <a class="code" href="ZincTypes_8hpp.html#a56">relief</a>;
00110 
00111 <span class="comment">//List of alignments</span>
<a name="l00112"></a><a class="code" href="ZincTypes_8hpp.html#a57">00112</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00113 {
00114   <a class="code" href="ZincTypes_8hpp.html#a57a31">alignment_left</a> = 0,
00115   <a class="code" href="ZincTypes_8hpp.html#a57a32">alignment_right</a>,
00116   <a class="code" href="ZincTypes_8hpp.html#a57a33">alignment_center</a>
00117 } <a class="code" href="ZincTypes_8hpp.html#a57">alignment</a>;
00118 
00119 <span class="comment">//list of anchors</span>
<a name="l00120"></a><a class="code" href="ZincTypes_8hpp.html#a58">00120</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00121 {
00122   <a class="code" href="ZincTypes_8hpp.html#a58a34">anchor_nw</a> = 0,
00123   <a class="code" href="ZincTypes_8hpp.html#a58a35">anchor_n</a>,
00124   <a class="code" href="ZincTypes_8hpp.html#a58a36">anchor_ne</a>,
00125   <a class="code" href="ZincTypes_8hpp.html#a58a37">anchor_e</a>,
00126   <a class="code" href="ZincTypes_8hpp.html#a58a38">anchor_se</a>,
00127   <a class="code" href="ZincTypes_8hpp.html#a58a39">anchor_s</a>,
00128   <a class="code" href="ZincTypes_8hpp.html#a58a40">anchor_sw</a>,
00129   <a class="code" href="ZincTypes_8hpp.html#a58a41">anchor_w</a>,
00130   <a class="code" href="ZincTypes_8hpp.html#a58a42">anchor_center</a>
00131 } <a class="code" href="ZincTypes_8hpp.html#a58">anchor</a>;
00132 
00133 <span class="comment">//actions to take when calling contour</span>
<a name="l00134"></a><a class="code" href="ZincTypes_8hpp.html#a59">00134</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00135 {
00136   <a class="code" href="ZincTypes_8hpp.html#a59a43">item_add_clockwise</a>,
00137   <a class="code" href="ZincTypes_8hpp.html#a59a44">item_add_counterclockwise</a>,
00138   <a class="code" href="ZincTypes_8hpp.html#a59a45">item_remove</a>
00139 } <a class="code" href="ZincTypes_8hpp.html#a59">itemOperator</a>;
00140 
00141 <span class="comment">//list of possible itemtypes</span>
<a name="l00142"></a><a class="code" href="ZincTypes_8hpp.html#a60">00142</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
00143 {
00144   <a class="code" href="ZincTypes_8hpp.html#a60a46">item_group</a>,
00145   <a class="code" href="ZincTypes_8hpp.html#a60a47">item_arc</a>,
00146   <a class="code" href="ZincTypes_8hpp.html#a60a48">item_text</a>,
00147   <a class="code" href="ZincTypes_8hpp.html#a60a49">item_rectangle</a>,
00148   <a class="code" href="ZincTypes_8hpp.html#a60a50">item_curve</a>,
00149   <a class="code" href="ZincTypes_8hpp.html#a60a51">item_icon</a>
00150 } <a class="code" href="ZincTypes_8hpp.html#a60">itemType</a>;
00151 
00152 <span class="comment">//informations contained in an event</span>
<a name="l00153"></a><a class="code" href="structZincEvent.html">00153</a> <span class="keyword">struct </span><a class="code" href="structZincEvent.html">ZincEvent</a>
00154 {
<a name="l00155"></a><a class="code" href="structZincEvent.html#o1">00155</a>   <span class="keywordtype">int</span> <a class="code" href="structZincEvent.html#o0">x</a>,<a class="code" href="structZincEvent.html#o1">y</a>;  <span class="comment">// pointer position  none -&gt; 0</span>
<a name="l00156"></a><a class="code" href="structZincEvent.html#o2">00156</a>   <span class="keywordtype">int</span> <a class="code" href="structZincEvent.html#o2">k</a>;    <span class="comment">// keycode           none -&gt; 0</span>
<a name="l00157"></a><a class="code" href="structZincEvent.html#o3">00157</a>   <span class="keywordtype">long</span> <a class="code" href="structZincEvent.html#o3">t</a>;   <span class="comment">// timestamp         none -&gt; 0</span>
<a name="l00158"></a><a class="code" href="structZincEvent.html#o4">00158</a>   <a class="code" href="ZincTypes_8hpp.html#a0">String</a> <a class="code" href="structZincEvent.html#o4">K</a>; <span class="comment">// keysym            none -&gt; "??"</span>
00159 };
00160 
00161 
00162 
00163 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Apr 18 17:40:44 2005 for IntuiKit by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.3 </small></address>
</body>
</html>