27 #ifndef _CEGUIFalXMLEnumHelper_h_
28 #define _CEGUIFalXMLEnumHelper_h_
30 #include "../String.h"
31 #include "../Window.h"
32 #include "CEGUI/falagard/Enums.h"
46 static String toString(pass_type val)
67 static return_type fromString(
const String& str)
69 if (str == CentreAligned)
72 else if (str == BottomAligned)
75 else if (str == Tiled)
78 else if (str == Stretched)
100 static String toString(pass_type val)
108 return CentreAligned;
121 static return_type fromString(
const String& str)
123 if (str == CentreAligned)
126 else if (str == RightAligned)
129 else if (str == Tiled)
132 else if (str == Stretched)
154 static String toString(pass_type val)
159 return BottomAligned;
162 return CentreAligned;
169 static return_type fromString(
const String& str)
171 if (str == CentreAligned)
174 else if (str == BottomAligned)
194 static String toString(pass_type val)
202 return CentreAligned;
209 static return_type fromString(
const String& str)
211 if (str == CentreAligned)
214 else if (str == RightAligned)
234 static String toString(pass_type val)
273 static return_type fromString(
const String& str)
278 else if (str == XPosition)
281 else if (str == TopEdge)
284 else if (str == YPosition)
287 else if (str == RightEdge)
290 else if (str == BottomEdge)
293 else if (str == Width)
296 else if (str == Height)
299 else if (str == XOffset)
302 else if (str == YOffset)
330 static String toString(pass_type val)
335 return BottomAligned;
338 return CentreAligned;
345 static return_type fromString(
const String& str)
347 if (str == CentreAligned)
350 else if (str == BottomAligned)
370 static String toString(pass_type val)
378 return CentreAligned;
384 return WordWrapLeftAligned;
387 return WordWrapRightAligned;
390 return WordWrapCentreAligned;
393 return WordWrapJustified;
400 static return_type fromString(
const String& str)
402 if (str == CentreAligned)
405 else if (str == RightAligned)
408 else if (str == Justified)
411 else if (str == WordWrapLeftAligned)
414 else if (str == WordWrapCentreAligned)
417 else if (str == WordWrapRightAligned)
420 else if (str == WordWrapJustified)
445 static String toString(pass_type val)
460 static return_type fromString(
const String& str)
462 if (str == LineSpacing)
465 else if (str == Baseline)
484 static String toString(pass_type val)
505 static return_type fromString(
const String& str)
510 else if (str == Subtract)
513 else if (str == Multiply)
516 else if (str == Divide)
537 static String toString(pass_type val)
542 return TopLeftCorner;
545 return TopRightCorner;
548 return BottomLeftCorner;
551 return BottomRightCorner;
570 static return_type fromString(
const String& str)
572 if (str == TopLeftCorner)
575 if (str == TopRightCorner)
578 if (str == BottomLeftCorner)
581 if (str == BottomRightCorner)
587 if (str == RightEdge)
593 if (str == BottomEdge)
618 static String toString(pass_type val)
630 "Invalid enumeration value given."));
634 static return_type fromString(
const String& str)
644 "' does not represent a ChildEventAction enumerated value."));
668 static const String& getDataTypeName()
670 static String type(
"VerticalFormatting");
675 static return_type fromString(
const String& str)
680 static string_return_type toString(pass_type val)
695 static const String& getDataTypeName()
697 static String type(
"HorizontalFormatting");
702 static return_type fromString(
const String& str)
707 static string_return_type toString(pass_type val)
722 static const String& getDataTypeName()
724 static String type(
"VerticalTextFormatting");
729 static return_type fromString(
const String& str)
734 static string_return_type toString(pass_type val)
749 static const String& getDataTypeName()
751 static String type(
"HorizontalTextFormatting");
756 static return_type fromString(
const String& str)
761 static string_return_type toString(pass_type val)
Dimension represents the left edge of some entity (same as DT_X_POSITION).
Definition: Enums.h:41
Top of text should be aligned with the top of the destination area.
Definition: Enums.h:86
References image used for the left edge.
Definition: Enums.h:142
References image used for the top-right corner.
Definition: Enums.h:139
References image used for the bottom-left corner.
Definition: Enums.h:140
Dimension represents the top edge of some entity (same as DT_Y_POSITION).
Definition: Enums.h:43
Vertical baseline value for font.
Definition: Enums.h:114
Image should be vertically centred within the destination area.
Definition: Enums.h:61
Left of text should be aligned with the left of the destination area (single line of text only)...
Definition: Enums.h:97
VerticalFormatting
Enumeration of possible values to indicate the vertical formatting to be used for an image component...
Definition: Enums.h:58
Image should be tiled vertically to fill the destination area (bottom-most tile may be clipped)...
Definition: Enums.h:64
Bottom of text should be aligned with the bottom of the destination area.
Definition: Enums.h:88
References image used for the top-left corner.
Definition: Enums.h:138
static const CEGUI::String TopAligned
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:182
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Dimension represents the y offset of some entity (usually only applies to an Image entity)...
Definition: Enums.h:50
Dims should be added.
Definition: Enums.h:125
Right of text should be aligned with the right of the destination area (word wrapped to multiple line...
Definition: Enums.h:102
Definition: Element.h:146
References image used for the bottom-right corner.
Definition: Enums.h:141
Dimension represents the x offset of some entity (usually only applies to an Image entity)...
Definition: Enums.h:49
DimensionOperator
Enumeration of values representing mathematical operations on dimensions.
Definition: Enums.h:122
Dims should be divided.
Definition: Enums.h:128
References image used for the bottom edge.
Definition: Enums.h:145
Dimension represents the height of some entity.
Definition: Enums.h:48
Dimension represents the x position of some entity (same as DT_LEFT_EDGE).
Definition: Enums.h:42
Right of Image should be aligned with the right of the destination area.
Definition: Enums.h:75
HorizontalTextFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for a text component...
Definition: Enums.h:95
Left of text should be aligned with the left of the destination area (word wrapped to multiple lines ...
Definition: Enums.h:101
Right of text should be aligned with the right of the destination area (single line of text only)...
Definition: Enums.h:98
Do nothing operator.
Definition: Enums.h:124
Dimension represents the right edge of some entity.
Definition: Enums.h:45
static const CEGUI::String LeftEdge
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:310
Horizontal extent of a string.
Definition: Enums.h:115
Vertical line spacing value for font.
Definition: Enums.h:113
text should be horizontally centred within the destination area (word wrapped to multiple lines as ne...
Definition: Enums.h:103
Image should be stretched vertically to fill the destination area.
Definition: Enums.h:63
Definition: Element.h:136
Dimension represents the width of some entity.
Definition: Enums.h:47
text should be spaced so that it takes the full width of the destination area (single line of text on...
Definition: Enums.h:100
text should be horizontally centred within the destination area (single line of text only)...
Definition: Enums.h:99
Invalid / uninitialised DimensionType.
Definition: Enums.h:51
References image used for the top edge.
Definition: Enums.h:144
DimensionType
Enumeration of possible values to indicate what a given dimension represents.
Definition: Enums.h:39
Dimension represents the bottom edge of some entity.
Definition: Enums.h:46
static const CEGUI::String LeftAligned
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:428
Definition: XMLEnumHelper.h:37
Image should be stretched horizontally to fill the destination area.
Definition: Enums.h:76
VerticalTextFormatting
Enumeration of possible values to indicate the vertical formatting to be used for a text component...
Definition: Enums.h:84
HorizontalFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for an image componen...
Definition: Enums.h:71
FrameImageComponent
Enumeration of values referencing available images forming a frame component.
Definition: Enums.h:135
Image should be horizontally centred within the destination area.
Definition: Enums.h:74
Top of Image should be aligned with the top of the destination area.
Definition: Enums.h:60
Helper class used to convert various data types to and from the format expected in Property strings...
Definition: ForwardRefs.h:84
text should be spaced so that it takes the full width of the destination area (word wrapped to multip...
Definition: Enums.h:104
Definition: Element.h:141
References image used for the background.
Definition: Enums.h:137
Exception class used when some impossible request was made of the system.
Definition: Exceptions.h:304
ChildEventAction
Enumeration of actions a WidgetLook can take in response to some event firing on a child WidgetCompon...
Definition: Enums.h:154
Image should be tiled horizontally to fill the destination area (right-most tile may be clipped)...
Definition: Enums.h:77
Dims should be subtracted.
Definition: Enums.h:126
Dims should be multiplied.
Definition: Enums.h:127
The window with the WidgetComponent as child performs child layout.
Definition: Enums.h:159
Left of Image should be aligned with the left of the destination area.
Definition: Enums.h:73
VerticalAlignment
Enumerated type used when specifying vertical alignments for Element.
Definition: Element.h:130
Bottom of Image should be aligned with the bottom of the destination area.
Definition: Enums.h:62
Dimension represents the y position of some entity (same as DT_TOP_EDGE).
Definition: Enums.h:44
static const CEGUI::String TopAligned
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:358
text should be vertically centred within the destination area.
Definition: Enums.h:87
References image used for the right edge.
Definition: Enums.h:143
static const CEGUI::String LeftAligned
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:222
FontMetricType
Enumeration of possible values to indicate a particular font metric.
Definition: Enums.h:111
The window with the WidgetComponent as child is redrawn.
Definition: Enums.h:157
HorizontalAlignment
Enumerated type used when specifying horizontal alignments for Element.
Definition: Element.h:52
String class used within the GUI system.
Definition: String.h:62