00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _CEGUIEditboxProperties_h_
00031 #define _CEGUIEditboxProperties_h_
00032
00033 #include "CEGUIProperty.h"
00034
00035
00036
00037 namespace CEGUI
00038 {
00039
00040
00045 namespace EditboxProperties
00046 {
00061 class ReadOnly : public Property
00062 {
00063 public:
00064 ReadOnly() : Property(
00065 "ReadOnly",
00066 "Property to get/set the read-only setting for the Editbox. Value is either \"True\" or \"False\".",
00067 "False")
00068 {}
00069
00070 String get(const PropertyReceiver* receiver) const;
00071 void set(PropertyReceiver* receiver, const String& value);
00072 };
00073
00074
00089 class MaskText : public Property
00090 {
00091 public:
00092 MaskText() : Property(
00093 "MaskText",
00094 "Property to get/set the mask text setting for the Editbox. Value is either \"True\" or \"False\".",
00095 "False")
00096 {}
00097
00098 String get(const PropertyReceiver* receiver) const;
00099 void set(PropertyReceiver* receiver, const String& value);
00100 };
00101
00102
00116 class MaskCodepoint : public Property
00117 {
00118 public:
00119 MaskCodepoint() : Property(
00120 "MaskCodepoint",
00121 "Property to get/set the utf32 codepoint value used for masking text. Value is \"[uint]\".",
00122 "42")
00123 {}
00124
00125 String get(const PropertyReceiver* receiver) const;
00126 void set(PropertyReceiver* receiver, const String& value);
00127 };
00128
00129
00141 class ValidationString : public Property
00142 {
00143 public:
00144 ValidationString() : Property(
00145 "ValidationString",
00146 "Property to get/set the validation string Editbox. Value is a text string.",
00147 ".*")
00148 {}
00149
00150 String get(const PropertyReceiver* receiver) const;
00151 void set(PropertyReceiver* receiver, const String& value);
00152 };
00153
00154
00166 class CaratIndex : public Property
00167 {
00168 public:
00169 CaratIndex() : Property(
00170 "CaratIndex",
00171 "Property to get/set the current carat index. Value is \"[uint]\".",
00172 "0")
00173 {}
00174
00175 String get(const PropertyReceiver* receiver) const;
00176 void set(PropertyReceiver* receiver, const String& value);
00177 };
00178
00179
00191 class SelectionStart : public Property
00192 {
00193 public:
00194 SelectionStart() : Property(
00195 "SelectionStart",
00196 "Property to get/set the zero based index of the selection start position within the text. Value is \"[uint]\".",
00197 "0")
00198 {}
00199
00200 String get(const PropertyReceiver* receiver) const;
00201 void set(PropertyReceiver* receiver, const String& value);
00202 };
00203
00204
00216 class SelectionLength : public Property
00217 {
00218 public:
00219 SelectionLength() : Property(
00220 "SelectionLength",
00221 "Property to get/set the length of the selection (as a count of the number of code points selected). Value is \"[uint]\".",
00222 "0")
00223 {}
00224
00225 String get(const PropertyReceiver* receiver) const;
00226 void set(PropertyReceiver* receiver, const String& value);
00227 };
00228
00229
00241 class MaxTextLength : public Property
00242 {
00243 public:
00244 MaxTextLength() : Property(
00245 "MaxTextLength",
00246 "Property to get/set the the maximum allowed text length (as a count of code points). Value is \"[uint]\".",
00247 "1073741824")
00248 {}
00249
00250 String get(const PropertyReceiver* receiver) const;
00251 void set(PropertyReceiver* receiver, const String& value);
00252 };
00253
00254
00266 class NormalTextColour : public Property
00267 {
00268 public:
00269 NormalTextColour() : Property(
00270 "NormalTextColour",
00271 "Property to get/set the normal, unselected, text colour used for rendering text. Value is \"aarrggbb\" (hex).",
00272 "FFFFFFFF")
00273 {}
00274
00275 String get(const PropertyReceiver* receiver) const;
00276 void set(PropertyReceiver* receiver, const String& value);
00277 };
00278
00279
00291 class SelectedTextColour : public Property
00292 {
00293 public:
00294 SelectedTextColour() : Property(
00295 "SelectedTextColour",
00296 "Property to get/set the colour used for rendering text within the selection area. Value is \"aarrggbb\" (hex).",
00297 "FF000000")
00298 {}
00299
00300 String get(const PropertyReceiver* receiver) const;
00301 void set(PropertyReceiver* receiver, const String& value);
00302 };
00303
00304
00316 class ActiveSelectionColour : public Property
00317 {
00318 public:
00319 ActiveSelectionColour() : Property(
00320 "ActiveSelectionColour",
00321 "Property to get/set the colour used for rendering the selection highlight when the edit box is active. Value is \"aarrggbb\" (hex).",
00322 "FF6060FF")
00323 {}
00324
00325 String get(const PropertyReceiver* receiver) const;
00326 void set(PropertyReceiver* receiver, const String& value);
00327 };
00328
00329
00341 class InactiveSelectionColour : public Property
00342 {
00343 public:
00344 InactiveSelectionColour() : Property(
00345 "InactiveSelectionColour",
00346 "Property to get/set the colour used for rendering the selection highlight when the edit box is inactive. Value is \"aarrggbb\" (hex).",
00347 "FF808080")
00348 {}
00349
00350 String get(const PropertyReceiver* receiver) const;
00351 void set(PropertyReceiver* receiver, const String& value);
00352 };
00353
00354 }
00355
00356 }
00357
00358
00359 #endif // end of guard _CEGUIEditboxProperties_h_