44 #include "UI/widget.h"
92 virtual void UpdateEditMode();
134 virtual const String& GetTypeName()
const;
140 virtual Boole IsCurrentlyEditing()
const;
144 virtual void SetText(
const String& Text);
147 virtual String GetText()
const;
154 virtual void SetEditingEnabled(
Boole Enable);
157 virtual Boole GetEditingEnabled()
const;
164 virtual void SetInputFilter(FilterCallback* Callback);
167 virtual FilterCallback* GetIntputFilter()
const;
177 virtual void ProtoSerializeProperties(
XML::Node& SelfRoot)
const;
179 virtual void ProtoDeSerializeProperties(
const XML::Node& SelfRoot);
182 static String GetSerializableName();
188 virtual void _OnTextUpdated();
190 virtual void _OnMouseDragStart();
192 virtual void _OnMouseDragEnd();
194 virtual void _OnFocusGained();
196 virtual void _OnFocusLost();
216 virtual String GetWidgetTypeName()
const;
263 virtual void DestroyWidget(
Widget* ToBeDestroyed);
int32_t Int32
An 32-bit integer.
This class represents a collection of Glyphs in a common visual style.
Vector2 EditHighlightTarget
Stores the screen position where the mouse is located during editing. Used to find the end index for ...
bool Boole
Generally acts a single bit, true or false.
EditBoxFactory()
Class constructor.
Class used to describe a single glyph or character available for text operations. ...
int Integer
A datatype used to represent any integer close to.
Integer EditHighlightOrigin
Stores the index of the character initially highlighted while editing.
This class represents a 2D rect which can express the size and position of a renderable on screen...
A light-weight handle for manipulating nodes in DOM tree.
This is used to represent a point on a 2 dimentional area, such as a screen.
static const String TypeName
String containing the type name for this class: "EditBox".
virtual ~EditBoxFactory()
Class destructor.
RenderLayerType
This enum describes the type of RenderLayer this is for use in casting.
FilterCallback * InputFilter
A pointer to the method that will filter any input before adding it as text to this EditBox...
static const String EventTextUpdated
Event name for when the text in this widget has been updated.
The bulk of the engine components go in this namspace.
This is the factory implementation for EditBox widgets.
Boole EditingEnabled
Stores whether or not inputs into this widget will alter it's underlying text.
std::map< String, String > NameValuePairMap
This is a datatype mostly used for describing settings or parameters that can't be declared in advanc...
This class is a helper class for creating UI's. It is responsible for storing and keeping track of al...
std::string String
A datatype used to a series of characters.
This is a base class for render layers that render text.
Widget for handling the input and manipulation of text.