Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIFalXMLEnumHelper_h_
28 #define _CEGUIFalXMLEnumHelper_h_
30 #include "../String.h"
31 #include "../Window.h"
32 #include "CEGUI/falagard/Enums.h"
69 if (str == CentreAligned)
72 else if (str == BottomAligned)
75 else if (str == Tiled)
78 else if (str == Stretched)
108 return CentreAligned;
123 if (str == CentreAligned)
126 else if (str == RightAligned)
129 else if (str == Tiled)
132 else if (str == Stretched)
159 return BottomAligned;
162 return CentreAligned;
171 if (str == CentreAligned)
174 else if (str == BottomAligned)
202 return CentreAligned;
211 if (str == CentreAligned)
214 else if (str == RightAligned)
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)
335 return BottomAligned;
338 return CentreAligned;
347 if (str == CentreAligned)
350 else if (str == BottomAligned)
378 return CentreAligned;
384 return WordWrapLeftAligned;
387 return WordWrapRightAligned;
390 return WordWrapCentreAligned;
393 return WordWrapJustified;
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)
462 if (str == LineSpacing)
465 else if (str == Baseline)
510 else if (str == Subtract)
513 else if (str == Multiply)
516 else if (str == Divide)
542 return TopLeftCorner;
545 return TopRightCorner;
548 return BottomLeftCorner;
551 return BottomRightCorner;
572 if (str == TopLeftCorner)
575 if (str == TopRightCorner)
578 if (str == BottomLeftCorner)
581 if (str == BottomRightCorner)
587 if (str == RightEdge)
593 if (str == BottomEdge)
630 "Invalid enumeration value given."));
644 "' does not represent a ChildEventAction enumerated value."));
668 static const String& getDataTypeName()
670 static String type(
"VerticalFormatting");
695 static const String& getDataTypeName()
697 static String type(
"HorizontalFormatting");
722 static const String& getDataTypeName()
724 static String type(
"VerticalTextFormatting");
749 static const String& getDataTypeName()
751 static String type(
"HorizontalTextFormatting");
@ FIC_BACKGROUND
References image used for the background.
Definition: Enums.h:137
@ HF_STRETCHED
Image should be stretched horizontally to fill the destination area.
Definition: Enums.h:76
DimensionType
Enumeration of possible values to indicate what a given dimension represents.
Definition: Enums.h:40
@ HTF_WORDWRAP_JUSTIFIED
text should be spaced so that it takes the full width of the destination area (word wrapped to multip...
Definition: Enums.h:104
@ HF_LEFT_ALIGNED
Left of Image should be aligned with the left of the destination area.
Definition: Enums.h:73
static const CEGUI::String TopAligned
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:182
@ DT_INVALID
Invalid / uninitialised DimensionType.
Definition: Enums.h:51
@ HA_LEFT
Definition: Element.h:58
VerticalTextFormatting
Enumeration of possible values to indicate the vertical formatting to be used for a text component.
Definition: Enums.h:85
@ VF_BOTTOM_ALIGNED
Bottom of Image should be aligned with the bottom of the destination area.
Definition: Enums.h:62
Exception class used when some impossible request was made of the system.
Definition: Exceptions.h:305
@ HTF_WORDWRAP_RIGHT_ALIGNED
Right of text should be aligned with the right of the destination area (word wrapped to multiple line...
Definition: Enums.h:102
@ VTF_BOTTOM_ALIGNED
Bottom of text should be aligned with the bottom of the destination area.
Definition: Enums.h:88
static const CEGUI::String LeftAligned
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:428
@ VTF_CENTRE_ALIGNED
text should be vertically centred within the destination area.
Definition: Enums.h:87
@ DT_WIDTH
Dimension represents the width of some entity.
Definition: Enums.h:47
@ HTF_RIGHT_ALIGNED
Right of text should be aligned with the right of the destination area (single line of text only).
Definition: Enums.h:98
@ DOP_SUBTRACT
Dims should be subtracted.
Definition: Enums.h:126
@ HTF_CENTRE_ALIGNED
text should be horizontally centred within the destination area (single line of text only).
Definition: Enums.h:99
@ DOP_ADD
Dims should be added.
Definition: Enums.h:125
@ DT_X_POSITION
Dimension represents the x position of some entity (same as DT_LEFT_EDGE).
Definition: Enums.h:42
@ FIC_TOP_LEFT_CORNER
References image used for the top-left corner.
Definition: Enums.h:138
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
@ VF_TOP_ALIGNED
Top of Image should be aligned with the top of the destination area.
Definition: Enums.h:60
@ FMT_BASELINE
Vertical baseline value for font.
Definition: Enums.h:114
static const CEGUI::String LeftAligned
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:222
ChildEventAction
Enumeration of actions a WidgetLook can take in response to some event firing on a child WidgetCompon...
Definition: Enums.h:155
static const CEGUI::String LeftEdge
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:310
@ FIC_TOP_RIGHT_CORNER
References image used for the top-right corner.
Definition: Enums.h:139
@ VTF_TOP_ALIGNED
Top of text should be aligned with the top of the destination area.
Definition: Enums.h:86
DimensionOperator
Enumeration of values representing mathematical operations on dimensions.
Definition: Enums.h:123
@ HF_CENTRE_ALIGNED
Image should be horizontally centred within the destination area.
Definition: Enums.h:74
@ FIC_LEFT_EDGE
References image used for the left edge.
Definition: Enums.h:142
FontMetricType
Enumeration of possible values to indicate a particular font metric.
Definition: Enums.h:112
@ FIC_RIGHT_EDGE
References image used for the right edge.
Definition: Enums.h:143
@ CEA_REDRAW
The window with the WidgetComponent as child is redrawn.
Definition: Enums.h:157
@ FIC_BOTTOM_LEFT_CORNER
References image used for the bottom-left corner.
Definition: Enums.h:140
@ HTF_WORDWRAP_LEFT_ALIGNED
Left of text should be aligned with the left of the destination area (word wrapped to multiple lines ...
Definition: Enums.h:101
@ HF_TILED
Image should be tiled horizontally to fill the destination area (right-most tile may be clipped).
Definition: Enums.h:77
@ HF_RIGHT_ALIGNED
Right of Image should be aligned with the right of the destination area.
Definition: Enums.h:75
@ FIC_BOTTOM_RIGHT_CORNER
References image used for the bottom-right corner.
Definition: Enums.h:141
@ HTF_JUSTIFIED
text should be spaced so that it takes the full width of the destination area (single line of text on...
Definition: Enums.h:100
@ DT_LEFT_EDGE
Dimension represents the left edge of some entity (same as DT_X_POSITION).
Definition: Enums.h:41
@ VA_BOTTOM
Definition: Element.h:146
@ HA_CENTRE
Definition: Element.h:63
HorizontalFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for an image componen...
Definition: Enums.h:72
@ DT_X_OFFSET
Dimension represents the x offset of some entity (usually only applies to an Image entity).
Definition: Enums.h:49
FrameImageComponent
Enumeration of values referencing available images forming a frame component.
Definition: Enums.h:136
VerticalFormatting
Enumeration of possible values to indicate the vertical formatting to be used for an image component.
Definition: Enums.h:59
@ CEA_LAYOUT
The window with the WidgetComponent as child performs child layout.
Definition: Enums.h:159
Definition: XMLEnumHelper.h:37
@ FIC_BOTTOM_EDGE
References image used for the bottom edge.
Definition: Enums.h:145
@ HTF_WORDWRAP_CENTRE_ALIGNED
text should be horizontally centred within the destination area (word wrapped to multiple lines as ne...
Definition: Enums.h:103
@ DT_RIGHT_EDGE
Dimension represents the right edge of some entity.
Definition: Enums.h:45
HorizontalTextFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for a text component.
Definition: Enums.h:96
@ VF_CENTRE_ALIGNED
Image should be vertically centred within the destination area.
Definition: Enums.h:61
@ FMT_LINE_SPACING
Vertical line spacing value for font.
Definition: Enums.h:113
static const CEGUI::String TopAligned
Definitions of the possible values represented as Strings.
Definition: XMLEnumHelper.h:358
@ DOP_NOOP
Do nothing operator.
Definition: Enums.h:124
@ FMT_HORZ_EXTENT
Horizontal extent of a string.
Definition: Enums.h:115
@ HTF_LEFT_ALIGNED
Left of text should be aligned with the left of the destination area (single line of text only).
Definition: Enums.h:97
@ DT_TOP_EDGE
Dimension represents the top edge of some entity (same as DT_Y_POSITION).
Definition: Enums.h:43
@ VA_TOP
Definition: Element.h:136
String class used within the GUI system.
Definition: String.h:64
@ DT_Y_OFFSET
Dimension represents the y offset of some entity (usually only applies to an Image entity).
Definition: Enums.h:50
@ VA_CENTRE
Definition: Element.h:141
@ DOP_MULTIPLY
Dims should be multiplied.
Definition: Enums.h:127
@ DT_BOTTOM_EDGE
Dimension represents the bottom edge of some entity.
Definition: Enums.h:46
@ DT_HEIGHT
Dimension represents the height of some entity.
Definition: Enums.h:48
HorizontalAlignment
Enumerated type used when specifying horizontal alignments for Element.
Definition: Element.h:53
@ VF_TILED
Image should be tiled vertically to fill the destination area (bottom-most tile may be clipped).
Definition: Enums.h:64
@ HA_RIGHT
Definition: Element.h:68
@ FIC_TOP_EDGE
References image used for the top edge.
Definition: Enums.h:144
@ VF_STRETCHED
Image should be stretched vertically to fill the destination area.
Definition: Enums.h:63
Helper class used to convert various data types to and from the format expected in Property strings.
Definition: ForwardRefs.h:84
@ DOP_DIVIDE
Dims should be divided.
Definition: Enums.h:128
VerticalAlignment
Enumerated type used when specifying vertical alignments for Element.
Definition: Element.h:131
@ DT_Y_POSITION
Dimension represents the y position of some entity (same as DT_TOP_EDGE).
Definition: Enums.h:44