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;
171 if (str == CentreAligned)
174 else if (str == BottomAligned)
194 static String toString(pass_type val)
202 return CentreAligned;
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)
335 return BottomAligned;
338 return CentreAligned;
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)
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);
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);
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);
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);
References image used for the background.
Definition: Enums.h:157
Image should be stretched horizontally to fill the destination area.
Definition: Enums.h:96
DimensionType
Enumeration of possible values to indicate what a given dimension represents.
Definition: Enums.h:59
text should be spaced so that it takes the full width of the destination area (word wrapped to multip...
Definition: Enums.h:124
Left of Image should be aligned with the left of the destination area.
Definition: Enums.h:93
Invalid / uninitialised DimensionType.
Definition: Enums.h:93
Definition: Element.h:106
VerticalTextFormatting
Enumeration of possible values to indicate the vertical formatting to be used for a text component.
Definition: Enums.h:104
Bottom of Image should be aligned with the bottom of the destination area.
Definition: Enums.h:82
Exception class used when some impossible request was made of the system.
Definition: Exceptions.h:326
Right of text should be aligned with the right of the destination area (word wrapped to multiple line...
Definition: Enums.h:122
Bottom of text should be aligned with the bottom of the destination area.
Definition: Enums.h:108
text should be vertically centred within the destination area.
Definition: Enums.h:107
Dimension represents the width of some entity.
Definition: Enums.h:89
Right of text should be aligned with the right of the destination area (single line of text only).
Definition: Enums.h:118
Dims should be subtracted.
Definition: Enums.h:146
text should be horizontally centred within the destination area (single line of text only).
Definition: Enums.h:119
Dims should be added.
Definition: Enums.h:145
Dimension represents the x position of some entity (same as DT_LEFT_EDGE).
Definition: Enums.h:84
References image used for the top-left corner.
Definition: Enums.h:158
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Top of Image should be aligned with the top of the destination area.
Definition: Enums.h:80
Vertical baseline value for font.
Definition: Enums.h:134
ChildEventAction
Enumeration of actions a WidgetLook can take in response to some event firing on a child WidgetCompon...
Definition: Enums.h:174
References image used for the top-right corner.
Definition: Enums.h:159
Top of text should be aligned with the top of the destination area.
Definition: Enums.h:106
DimensionOperator
Enumeration of values representing mathematical operations on dimensions.
Definition: Enums.h:142
Image should be horizontally centred within the destination area.
Definition: Enums.h:94
References image used for the left edge.
Definition: Enums.h:162
FontMetricType
Enumeration of possible values to indicate a particular font metric.
Definition: Enums.h:131
References image used for the right edge.
Definition: Enums.h:163
The window with the WidgetComponent as child is redrawn.
Definition: Enums.h:177
References image used for the bottom-left corner.
Definition: Enums.h:160
Left of text should be aligned with the left of the destination area (word wrapped to multiple lines ...
Definition: Enums.h:121
Image should be tiled horizontally to fill the destination area (right-most tile may be clipped).
Definition: Enums.h:97
Right of Image should be aligned with the right of the destination area.
Definition: Enums.h:95
References image used for the bottom-right corner.
Definition: Enums.h:161
text should be spaced so that it takes the full width of the destination area (single line of text on...
Definition: Enums.h:120
Dimension represents the left edge of some entity (same as DT_X_POSITION).
Definition: Enums.h:83
Definition: Element.h:169
Definition: Element.h:111
HorizontalFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for an image componen...
Definition: Enums.h:91
Dimension represents the x offset of some entity (usually only applies to an Image entity).
Definition: Enums.h:91
FrameImageComponent
Enumeration of values referencing available images forming a frame component.
Definition: Enums.h:155
VerticalFormatting
Enumeration of possible values to indicate the vertical formatting to be used for an image component.
Definition: Enums.h:78
The window with the WidgetComponent as child performs child layout.
Definition: Enums.h:179
Definition: XMLEnumHelper.h:57
References image used for the bottom edge.
Definition: Enums.h:165
text should be horizontally centred within the destination area (word wrapped to multiple lines as ne...
Definition: Enums.h:123
Dimension represents the right edge of some entity.
Definition: Enums.h:87
HorizontalTextFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for a text component.
Definition: Enums.h:115
Image should be vertically centred within the destination area.
Definition: Enums.h:81
Vertical line spacing value for font.
Definition: Enums.h:133
Do nothing operator.
Definition: Enums.h:144
Horizontal extent of a string.
Definition: Enums.h:135
Left of text should be aligned with the left of the destination area (single line of text only).
Definition: Enums.h:117
Dimension represents the top edge of some entity (same as DT_Y_POSITION).
Definition: Enums.h:85
Definition: Element.h:159
String class used within the GUI system.
Definition: String.h:83
Dimension represents the y offset of some entity (usually only applies to an Image entity).
Definition: Enums.h:92
Definition: Element.h:164
Dims should be multiplied.
Definition: Enums.h:147
Dimension represents the bottom edge of some entity.
Definition: Enums.h:88
Dimension represents the height of some entity.
Definition: Enums.h:90
HorizontalAlignment
Enumerated type used when specifying horizontal alignments for Element.
Definition: Element.h:75
Image should be tiled vertically to fill the destination area (bottom-most tile may be clipped).
Definition: Enums.h:84
Definition: Element.h:116
References image used for the top edge.
Definition: Enums.h:164
Image should be stretched vertically to fill the destination area.
Definition: Enums.h:83
Dims should be divided.
Definition: Enums.h:148
VerticalAlignment
Enumerated type used when specifying vertical alignments for Element.
Definition: Element.h:153
Dimension represents the y position of some entity (same as DT_TOP_EDGE).
Definition: Enums.h:86