blob: 2c65309cd49f4d685adaa2553e4b433eb4426087 (
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
|
<!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: ZincObjects.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 Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
<h1>ZincObjects.hpp</h1><a href="ZincObjects_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
00016 <span class="preprocessor">#include "<a class="code" href="ZincTypes_8hpp.html">ZincTypes.hpp</a>"</span>
00017
00018 <span class="preprocessor">#include <exception></span>
00019 <span class="preprocessor">#include <string></span>
00020 <span class="preprocessor">#include <tcl.h></span>
00021
00022 <span class="preprocessor">#ifndef ZINC_OBJECTS</span>
00023 <span class="preprocessor"></span><span class="preprocessor">#define ZINC_OBJECTS</span>
00024 <span class="preprocessor"></span>
00025 <span class="comment">// Object representing a zinc item</span>
<a name="l00026"></a><a class="code" href="classZincItem.html">00026</a> <span class="keyword">class </span><a class="code" href="classZincItem.html">ZincItem</a>
00027 {
00028 <span class="keyword">protected</span>:
00032 <a class="code" href="classZincItem.html#b0">ZincItem</a> ();
00033
00034 <span class="keyword">public</span>:
<a name="l00035"></a><a class="code" href="classZincItem.html#o0">00035</a> Tcl_Obj *<a class="code" href="classZincItem.html#o0">object</a>; <span class="comment">//the object we are storing</span>
00036
00042 <a class="code" href="classZincItem.html#b0">ZincItem</a> (Tcl_Obj *obj);
00043
00047 <span class="keyword">virtual</span> <a class="code" href="classZincItem.html#a1">~ZincItem</a> ();
00048 };
00049
00050 <span class="comment">// Object representing a zinc image</span>
<a name="l00051"></a><a class="code" href="classZincImage.html">00051</a> <span class="keyword">class </span><a class="code" href="classZincImage.html">ZincImage</a> : <span class="keyword">public</span> <a class="code" href="classZincItem.html">ZincItem</a>
00052 {
00056 <a class="code" href="classZincImage.html#a0">ZincImage</a> ();
00057
00058 <span class="keywordtype">bool</span> madeFromInternal;
00059
00060 <span class="keyword">public</span>:
00066 <a class="code" href="classZincImage.html#a0">ZincImage</a> (Tcl_Obj *obj);
00067
00073 <a class="code" href="classZincImage.html#a0">ZincImage</a> (Tcl_Obj *obj, <span class="keywordtype">bool</span> internal);
00074
00078 <span class="keyword">virtual</span> <a class="code" href="classZincImage.html#a2">~ZincImage</a> ();
00079 };
00080
00081 <span class="comment">// Object representing a zinc bitmap</span>
<a name="l00082"></a><a class="code" href="classZincBitmap.html">00082</a> <span class="keyword">class </span><a class="code" href="classZincBitmap.html">ZincBitmap</a> : <span class="keyword">public</span> <a class="code" href="classZincItem.html">ZincItem</a>
00083 {
00087 <a class="code" href="classZincBitmap.html#a0">ZincBitmap</a> ();
00088
00089 <span class="keywordtype">bool</span> madeFromInternal;
00090
00091 <span class="keyword">public</span>:
00097 <a class="code" href="classZincBitmap.html#a0">ZincBitmap</a> (Tcl_Obj *obj);
00098
00104 <a class="code" href="classZincBitmap.html#a0">ZincBitmap</a> (Tcl_Obj *obj, <span class="keywordtype">bool</span> internal);
00105
00111 <a class="code" href="classZincBitmap.html#a0">ZincBitmap</a> (<a class="code" href="ZincTypes_8hpp.html#a0">String</a> name);
00112
00116 <span class="keyword">virtual</span> <a class="code" href="classZincBitmap.html#a3">~ZincBitmap</a> ();
00117 };
00118
00119 <span class="comment">// Object representing a zinc font</span>
<a name="l00120"></a><a class="code" href="classZincFont.html">00120</a> <span class="keyword">class </span><a class="code" href="classZincFont.html">ZincFont</a>
00121 {
00125 <a class="code" href="classZincFont.html#a0">ZincFont</a> ();
00126
00127 <span class="keyword">public</span>:
<a name="l00128"></a><a class="code" href="classZincFont.html#o0">00128</a> <a class="code" href="ZincTypes_8hpp.html#a0">String</a> <a class="code" href="classZincFont.html#o0">name</a>;
00129
00133 <a class="code" href="classZincFont.html#a0">ZincFont</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *font);
00134
00135 };
00136
<a name="l00140"></a><a class="code" href="classZincException.html">00140</a> <span class="keyword">class </span><a class="code" href="classZincException.html">ZincException</a> : <span class="keyword">public</span> std::exception
00141 {
00142
00143 <span class="keyword">private</span>:
00144 <a class="code" href="ZincTypes_8hpp.html#a0">String</a> msg; <span class="comment">// the exception message</span>
00145 <a class="code" href="ZincTypes_8hpp.html#a0">String</a> file; <span class="comment">// file where exception have been caught</span>
00146 <span class="keywordtype">int</span> line; <span class="comment">// line where exception have been caught</span>
00147
00148 <span class="keyword">public</span>:
00154 <a class="code" href="classZincException.html#a0">ZincException</a> (<a class="code" href="ZincTypes_8hpp.html#a0">String</a> msg, <span class="keywordtype">char</span> *file, <span class="keywordtype">int</span> lineNo);
00155
00161 <a class="code" href="classZincException.html#a0">ZincException</a> (<span class="keyword">const</span> <a class="code" href="classZincException.html">ZincException</a> &exception);
00162
00166 <span class="keyword">virtual</span> <a class="code" href="classZincException.html#a2">~ZincException</a> () <span class="keywordflow">throw</span>();
00167
00173 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classZincException.html#a3">what</a> () <span class="keyword">const</span> <span class="keywordflow">throw</span> ();
00174 };
00175
00176 <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>
|