summaryrefslogtreecommitdiff
path: root/freebsdtvision/doc/html/classTColorGroup.html
blob: caa14fbcacb9e2dfeddc68996065af81e307a032 (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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!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>TColorGroup class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>TColorGroup Class Reference</h1>Stores a set of color items. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="colorsel_8h-source.html">colorsel.h</a>&gt;</code>
<p>
<a href="classTColorGroup-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classTColorGroup.html#a0">TColorGroup</a> (const char *nm, <a class="el" href="classTColorItem.html">TColorItem</a> *itm=0, TColorGroup *nxt=0)</td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classTColorGroup.html#a1">~TColorGroup</a> ()</td></tr>
<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top>const char *&nbsp;</td><td valign=bottom><a class="el" href="classTColorGroup.html#m0">name</a></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="ttypes_8h.html#a1">uchar</a>&nbsp;</td><td valign=bottom><a class="el" href="classTColorGroup.html#m1">index</a></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classTColorItem.html">TColorItem</a> *&nbsp;</td><td valign=bottom><a class="el" href="classTColorGroup.html#m2">items</a></td></tr>
<tr><td nowrap align=right valign=top>TColorGroup *&nbsp;</td><td valign=bottom><a class="el" href="classTColorGroup.html#m3">next</a></td></tr>
<tr><td colspan=2><br><h2>Friends</h2></td></tr>
<tr><td nowrap align=right valign=top>TColorGroup &amp;&nbsp;</td><td valign=bottom><a class="el" href="classTColorGroup.html#l0">operator+</a> (TColorGroup &amp;g, <a class="el" href="classTColorItem.html">TColorItem</a> &amp;i)</td></tr>
<tr><td nowrap align=right valign=top>TColorGroup &amp;&nbsp;</td><td valign=bottom><a class="el" href="classTColorGroup.html#l1">operator+</a> (TColorGroup &amp;g1, TColorGroup &amp;g2)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The interrelated classes <a class="el" href="classTColorItem.html">TColorItem</a>, TColorGroup, <a class="el" href="classTColorSelector.html">TColorSelector</a>, <a class="el" href="classTMonoSelector.html">TMonoSelector</a>, <a class="el" href="classTColorDisplay.html">TColorDisplay</a>, <a class="el" href="classTColorGroupList.html">TColorGroupList</a>, <a class="el" href="classTColorItemList.html">TColorItemList</a> and <a class="el" href="classTColorDialog.html">TColorDialog</a> provide viewers and dialog boxes from which the user can select and change the color assignments from available palettes with immediate effect on the screen.
<p>
The TColorGroup class defines a group of linked lists of <a class="el" href="classTColorItem.html">TColorItem</a> objects. Each member of a color group consists of a set of color names and their associated color codes. 
<p>

<p>
Definition at line <a class="el" href="colorsel_8h-source.html#l00115">115</a> of file <a class="el" href="colorsel_8h-source.html">colorsel.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="TColorGroup::TColorGroup"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> TColorGroup::TColorGroup </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>nm</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classTColorItem.html">TColorItem</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>itm</em> = 0, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>TColorGroup *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>nxt</em> = 0</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor.
<p>
Creates a color group with the given argument values.
<p>
`nm' is a pointer to the name of the color group. A local copy of the string is created. `itm' is a pointer to the first color item of the color group (its default value is 0). `nxt' is a pointer to the next color group (its default value is 0).
<p>
See file `demo/tvdemo2.cc' for an example.     </td>
  </tr>
</table>
<a name="a1" doxytag="TColorGroup::~TColorGroup"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual TColorGroup::~TColorGroup </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destructor.     </td>
  </tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a name="l1" doxytag="TColorGroup::operator+"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> TColorGroup&amp; operator+ </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">TColorGroup &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>g1</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>TColorGroup &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>g2</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [friend]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Inserts another color group after this one by changing the <a class="el" href="classTColorGroup.html#m3">TColorGroup::next</a> pointer.  <dl compact><dt><b>See also: </b></dt><dd>
<a class="el" href="classTColorItem.html">TColorItem</a> </dl>    </td>
  </tr>
</table>
<a name="l0" doxytag="TColorGroup::operator+"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> TColorGroup&amp; operator+ </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">TColorGroup &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>g</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classTColorItem.html">TColorItem</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>i</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [friend]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Inserts color item `i' in color group `g'. <dl compact><dt><b>See also: </b></dt><dd>
TColorGroup </dl>    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="m1" doxytag="TColorGroup::index"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="ttypes_8h.html#a1">uchar</a> TColorGroup::index
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The start index of the color group. 
<p>
Definition at line <a class="el" href="colorsel_8h-source.html#l00142">142</a> of file <a class="el" href="colorsel_8h-source.html">colorsel.h</a>.    </td>
  </tr>
</table>
<a name="m2" doxytag="TColorGroup::items"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classTColorItem.html">TColorItem</a>* TColorGroup::items
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Pointer to the associated list of color items associated with this color group. 
<p>
Definition at line <a class="el" href="colorsel_8h-source.html#l00147">147</a> of file <a class="el" href="colorsel_8h-source.html">colorsel.h</a>.    </td>
  </tr>
</table>
<a name="m0" doxytag="TColorGroup::name"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const char* TColorGroup::name
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The name of the color group. 
<p>
Definition at line <a class="el" href="colorsel_8h-source.html#l00138">138</a> of file <a class="el" href="colorsel_8h-source.html">colorsel.h</a>.    </td>
  </tr>
</table>
<a name="m3" doxytag="TColorGroup::next"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> TColorGroup* TColorGroup::next
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Pointer to next color group, or 0 if no next. 
<p>
Definition at line <a class="el" href="colorsel_8h-source.html#l00151">151</a> of file <a class="el" href="colorsel_8h-source.html">colorsel.h</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="colorsel_8h-source.html">colorsel.h</a></ul>
<hr><address style="align: right;"><small>Generated on Wed Apr 2 22:13:12 2003 for TVision by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>