Crazy Eddies GUI System
0.7.8
Main Page
Related Pages
Namespaces
Classes
Files
File List
cegui
include
elements
CEGUIEditboxProperties.h
1
/***********************************************************************
2
filename: CEGUIEditboxProperties.h
3
created: 9/7/2004
4
author: Paul D Turner
5
6
purpose: Interface to Properties for Editbox class
7
*************************************************************************/
8
/***************************************************************************
9
* Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
10
*
11
* Permission is hereby granted, free of charge, to any person obtaining
12
* a copy of this software and associated documentation files (the
13
* "Software"), to deal in the Software without restriction, including
14
* without limitation the rights to use, copy, modify, merge, publish,
15
* distribute, sublicense, and/or sell copies of the Software, and to
16
* permit persons to whom the Software is furnished to do so, subject to
17
* the following conditions:
18
*
19
* The above copyright notice and this permission notice shall be
20
* included in all copies or substantial portions of the Software.
21
*
22
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28
* OTHER DEALINGS IN THE SOFTWARE.
29
***************************************************************************/
30
#ifndef _CEGUIEditboxProperties_h_
31
#define _CEGUIEditboxProperties_h_
32
33
#include "../CEGUIProperty.h"
34
35
36
// Start of CEGUI namespace section
37
namespace
CEGUI
38
{
39
40
// Start of EditboxProperties namespace section
45
namespace
EditboxProperties
46
{
61
class
ReadOnly
:
public
Property
62
{
63
public
:
64
ReadOnly
() :
Property
(
65
"ReadOnly"
,
66
"Property to get/set the read-only setting for the Editbox. Value is either \"True\" or \"False\"."
,
67
"False"
)
68
{}
69
70
String
get
(
const
PropertyReceiver
* receiver)
const
;
71
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
72
};
73
74
89
class
MaskText
:
public
Property
90
{
91
public
:
92
MaskText
() :
Property
(
93
"MaskText"
,
94
"Property to get/set the mask text setting for the Editbox. Value is either \"True\" or \"False\"."
,
95
"False"
)
96
{}
97
98
String
get
(
const
PropertyReceiver
* receiver)
const
;
99
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
100
};
101
102
116
class
MaskCodepoint
:
public
Property
117
{
118
public
:
119
MaskCodepoint
() :
Property
(
120
"MaskCodepoint"
,
121
"Property to get/set the utf32 codepoint value used for masking text. Value is \"[uint]\"."
,
122
"42"
)
123
{}
124
125
String
get
(
const
PropertyReceiver
* receiver)
const
;
126
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
127
};
128
129
141
class
ValidationString
:
public
Property
142
{
143
public
:
144
ValidationString
() :
Property
(
145
"ValidationString"
,
146
"Property to get/set the validation string Editbox. Value is a text string."
,
147
".*"
)
148
{}
149
150
String
get
(
const
PropertyReceiver
* receiver)
const
;
151
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
152
};
153
154
166
class
CaratIndex
:
public
Property
167
{
168
public
:
169
CaratIndex
() :
Property
(
170
"CaratIndex"
,
171
"Property to get/set the current carat index. Value is \"[uint]\"."
,
172
"0"
)
173
{}
174
175
String
get
(
const
PropertyReceiver
* receiver)
const
;
176
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
177
};
178
179
191
class
SelectionStart
:
public
Property
192
{
193
public
:
194
SelectionStart
() :
Property
(
195
"SelectionStart"
,
196
"Property to get/set the zero based index of the selection start position within the text. Value is \"[uint]\"."
,
197
"0"
)
198
{}
199
200
String
get
(
const
PropertyReceiver
* receiver)
const
;
201
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
202
};
203
204
216
class
SelectionLength
:
public
Property
217
{
218
public
:
219
SelectionLength
() :
Property
(
220
"SelectionLength"
,
221
"Property to get/set the length of the selection (as a count of the number of code points selected). Value is \"[uint]\"."
,
222
"0"
)
223
{}
224
225
String
get
(
const
PropertyReceiver
* receiver)
const
;
226
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
227
};
228
229
241
class
MaxTextLength
:
public
Property
242
{
243
public
:
244
MaxTextLength
() :
Property
(
245
"MaxTextLength"
,
246
"Property to get/set the the maximum allowed text length (as a count of code points). Value is \"[uint]\"."
,
247
"1073741824"
)
248
{}
249
250
String
get
(
const
PropertyReceiver
* receiver)
const
;
251
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
252
};
253
254
266
class
NormalTextColour
:
public
Property
267
{
268
public
:
269
NormalTextColour
() :
Property
(
270
"NormalTextColour"
,
271
"Property to get/set the normal, unselected, text colour used for rendering text. Value is \"aarrggbb\" (hex)."
,
272
"FFFFFFFF"
)
273
{}
274
275
String
get
(
const
PropertyReceiver
* receiver)
const
;
276
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
277
};
278
279
291
class
SelectedTextColour
:
public
Property
292
{
293
public
:
294
SelectedTextColour
() :
Property
(
295
"SelectedTextColour"
,
296
"Property to get/set the colour used for rendering text within the selection area. Value is \"aarrggbb\" (hex)."
,
297
"FF000000"
)
298
{}
299
300
String
get
(
const
PropertyReceiver
* receiver)
const
;
301
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
302
};
303
304
316
class
ActiveSelectionColour
:
public
Property
317
{
318
public
:
319
ActiveSelectionColour
() :
Property
(
320
"ActiveSelectionColour"
,
321
"Property to get/set the colour used for rendering the selection highlight when the edit box is active. Value is \"aarrggbb\" (hex)."
,
322
"FF6060FF"
)
323
{}
324
325
String
get
(
const
PropertyReceiver
* receiver)
const
;
326
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
327
};
328
329
341
class
InactiveSelectionColour
:
public
Property
342
{
343
public
:
344
InactiveSelectionColour
() :
Property
(
345
"InactiveSelectionColour"
,
346
"Property to get/set the colour used for rendering the selection highlight when the edit box is inactive. Value is \"aarrggbb\" (hex)."
,
347
"FF808080"
)
348
{}
349
350
String
get
(
const
PropertyReceiver
* receiver)
const
;
351
void
set
(
PropertyReceiver
* receiver,
const
String
& value);
352
};
353
354
}
// End of EditboxProperties namespace section
355
356
}
// End of CEGUI namespace section
357
358
359
#endif // end of guard _CEGUIEditboxProperties_h_
Generated by
1.8.3.1