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"
37 class FalagardXMLHelper;
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)
629 CEGUI_THROW(InvalidRequestException(
630 "Invalid enumeration value given."));
634 static return_type fromString(
const String& str)
644 "' does not represent a ChildEventAction enumerated value."));
664 typedef return_type safe_method_return_type;
666 typedef String string_return_type;
668 static const String& getDataTypeName()
670 static String type(
"VerticalFormatting");
675 static return_type fromString(
const String& str)
677 return FalagardXMLHelper<return_type>::fromString(str);
680 static string_return_type toString(pass_type val)
682 return FalagardXMLHelper<return_type>::toString(val);
691 typedef return_type safe_method_return_type;
693 typedef String string_return_type;
695 static const String& getDataTypeName()
697 static String type(
"HorizontalFormatting");
702 static return_type fromString(
const String& str)
704 return FalagardXMLHelper<return_type>::fromString(str);
707 static string_return_type toString(pass_type val)
709 return FalagardXMLHelper<return_type>::toString(val);
718 typedef return_type safe_method_return_type;
720 typedef String string_return_type;
722 static const String& getDataTypeName()
724 static String type(
"VerticalTextFormatting");
729 static return_type fromString(
const String& str)
731 return FalagardXMLHelper<return_type>::fromString(str);
734 static string_return_type toString(pass_type val)
736 return FalagardXMLHelper<return_type>::toString(val);
745 typedef return_type safe_method_return_type;
747 typedef String string_return_type;
749 static const String& getDataTypeName()
751 static String type(
"HorizontalTextFormatting");
756 static return_type fromString(
const String& str)
758 return FalagardXMLHelper<return_type>::fromString(str);
761 static string_return_type toString(pass_type val)
763 return FalagardXMLHelper<return_type>::toString(val);
@ FIC_BACKGROUND
References image used for the background.
Definition: Enums.h:161
@ HF_STRETCHED
Image should be stretched horizontally to fill the destination area.
Definition: Enums.h:100
DimensionType
Enumeration of possible values to indicate what a given dimension represents.
Definition: Enums.h:63
@ 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:128
@ HF_LEFT_ALIGNED
Left of Image should be aligned with the left of the destination area.
Definition: Enums.h:97
@ DT_INVALID
Invalid / uninitialised DimensionType.
Definition: Enums.h:99
@ HA_LEFT
Definition: Element.h:112
VerticalTextFormatting
Enumeration of possible values to indicate the vertical formatting to be used for a text component.
Definition: Enums.h:108
@ VF_BOTTOM_ALIGNED
Bottom of Image should be aligned with the bottom of the destination area.
Definition: Enums.h:86
Exception class used when some impossible request was made of the system.
Definition: Exceptions.h:330
@ 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:126
@ VTF_BOTTOM_ALIGNED
Bottom of text should be aligned with the bottom of the destination area.
Definition: Enums.h:112
@ VTF_CENTRE_ALIGNED
text should be vertically centred within the destination area.
Definition: Enums.h:111
@ DT_WIDTH
Dimension represents the width of some entity.
Definition: Enums.h:95
@ HTF_RIGHT_ALIGNED
Right of text should be aligned with the right of the destination area (single line of text only).
Definition: Enums.h:122
@ DOP_SUBTRACT
Dims should be subtracted.
Definition: Enums.h:150
@ HTF_CENTRE_ALIGNED
text should be horizontally centred within the destination area (single line of text only).
Definition: Enums.h:123
@ DOP_ADD
Dims should be added.
Definition: Enums.h:149
@ DT_X_POSITION
Dimension represents the x position of some entity (same as DT_LEFT_EDGE).
Definition: Enums.h:90
@ FIC_TOP_LEFT_CORNER
References image used for the top-left corner.
Definition: Enums.h:162
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:84
@ FMT_BASELINE
Vertical baseline value for font.
Definition: Enums.h:138
ChildEventAction
Enumeration of actions a WidgetLook can take in response to some event firing on a child WidgetCompon...
Definition: Enums.h:178
@ FIC_TOP_RIGHT_CORNER
References image used for the top-right corner.
Definition: Enums.h:163
@ VTF_TOP_ALIGNED
Top of text should be aligned with the top of the destination area.
Definition: Enums.h:110
DimensionOperator
Enumeration of values representing mathematical operations on dimensions.
Definition: Enums.h:146
@ HF_CENTRE_ALIGNED
Image should be horizontally centred within the destination area.
Definition: Enums.h:98
@ FIC_LEFT_EDGE
References image used for the left edge.
Definition: Enums.h:166
FontMetricType
Enumeration of possible values to indicate a particular font metric.
Definition: Enums.h:135
@ FIC_RIGHT_EDGE
References image used for the right edge.
Definition: Enums.h:167
@ CEA_REDRAW
The window with the WidgetComponent as child is redrawn.
Definition: Enums.h:181
@ FIC_BOTTOM_LEFT_CORNER
References image used for the bottom-left corner.
Definition: Enums.h:164
@ 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:125
@ HF_TILED
Image should be tiled horizontally to fill the destination area (right-most tile may be clipped).
Definition: Enums.h:101
@ HF_RIGHT_ALIGNED
Right of Image should be aligned with the right of the destination area.
Definition: Enums.h:99
@ FIC_BOTTOM_RIGHT_CORNER
References image used for the bottom-right corner.
Definition: Enums.h:165
@ 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:124
@ DT_LEFT_EDGE
Dimension represents the left edge of some entity (same as DT_X_POSITION).
Definition: Enums.h:89
@ VA_BOTTOM
Definition: Element.h:173
@ HA_CENTRE
Definition: Element.h:117
HorizontalFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for an image componen...
Definition: Enums.h:95
@ DT_X_OFFSET
Dimension represents the x offset of some entity (usually only applies to an Image entity).
Definition: Enums.h:97
FrameImageComponent
Enumeration of values referencing available images forming a frame component.
Definition: Enums.h:159
VerticalFormatting
Enumeration of possible values to indicate the vertical formatting to be used for an image component.
Definition: Enums.h:82
@ CEA_LAYOUT
The window with the WidgetComponent as child performs child layout.
Definition: Enums.h:183
@ FIC_BOTTOM_EDGE
References image used for the bottom edge.
Definition: Enums.h:169
@ HTF_WORDWRAP_CENTRE_ALIGNED
text should be horizontally centred within the destination area (word wrapped to multiple lines as ne...
Definition: Enums.h:127
@ DT_RIGHT_EDGE
Dimension represents the right edge of some entity.
Definition: Enums.h:93
HorizontalTextFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for a text component.
Definition: Enums.h:119
@ VF_CENTRE_ALIGNED
Image should be vertically centred within the destination area.
Definition: Enums.h:85
@ FMT_LINE_SPACING
Vertical line spacing value for font.
Definition: Enums.h:137
@ DOP_NOOP
Do nothing operator.
Definition: Enums.h:148
@ FMT_HORZ_EXTENT
Horizontal extent of a string.
Definition: Enums.h:139
@ HTF_LEFT_ALIGNED
Left of text should be aligned with the left of the destination area (single line of text only).
Definition: Enums.h:121
@ DT_TOP_EDGE
Dimension represents the top edge of some entity (same as DT_Y_POSITION).
Definition: Enums.h:91
@ VA_TOP
Definition: Element.h:163
String class used within the GUI system.
Definition: String.h:88
@ DT_Y_OFFSET
Dimension represents the y offset of some entity (usually only applies to an Image entity).
Definition: Enums.h:98
@ VA_CENTRE
Definition: Element.h:168
@ DOP_MULTIPLY
Dims should be multiplied.
Definition: Enums.h:151
@ DT_BOTTOM_EDGE
Dimension represents the bottom edge of some entity.
Definition: Enums.h:94
@ DT_HEIGHT
Dimension represents the height of some entity.
Definition: Enums.h:96
HorizontalAlignment
Enumerated type used when specifying horizontal alignments for Element.
Definition: Element.h:79
@ VF_TILED
Image should be tiled vertically to fill the destination area (bottom-most tile may be clipped).
Definition: Enums.h:88
@ HA_RIGHT
Definition: Element.h:122
@ FIC_TOP_EDGE
References image used for the top edge.
Definition: Enums.h:168
@ VF_STRETCHED
Image should be stretched vertically to fill the destination area.
Definition: Enums.h:87
Helper class used to convert various data types to and from the format expected in Property strings.
Definition: ForwardRefs.h:110
@ DOP_DIVIDE
Dims should be divided.
Definition: Enums.h:152
VerticalAlignment
Enumerated type used when specifying vertical alignments for Element.
Definition: Element.h:157
@ DT_Y_POSITION
Dimension represents the y position of some entity (same as DT_TOP_EDGE).
Definition: Enums.h:92