Crazy Eddies GUI System
0.7.2
|
Editbox class for the FalagardBase module. More...
Public Member Functions | |
FalagardEditbox (const String &type) | |
Constructor. | |
colour | getUnselectedTextColour () const |
return the colour to be used for rendering Editbox text oustside of the selected region. More... | |
colour | getSelectedTextColour () const |
return the colour to be used for rendering Editbox text falling within the selected region. More... | |
colour | getOptionalPropertyColour (const String &propertyName) const |
Return a colour object fetched from the named property if it exists, else a default colour (black). More... | |
bool | isCaretBlinkEnabled () const |
return whether the blinking caret is enabled. | |
float | getCaretBlinkTimeout () const |
return the caret blink timeout period (only used if blink is enabled). | |
void | setCaretBlinkEnabled (bool enable) |
set whether the blinking caret is enabled. | |
void | setCaretBlinkTimeout (float seconds) |
set the caret blink timeout period (only used if blink is enabled). | |
void | render () |
Populate render cache. More... | |
size_t | getTextIndexFromPosition (const Point &pt) const |
Return the text code point index that is rendered closest to screen position pt. More... | |
void | update (float elapsed) |
perform any time based updates for this WindowRenderer. | |
Public Member Functions inherited from CEGUI::EditboxWindowRenderer | |
EditboxWindowRenderer (const String &name) | |
Constructor. | |
Public Member Functions inherited from CEGUI::WindowRenderer | |
WindowRenderer (const String &name, const String &class_name="Window") | |
Constructor. More... | |
virtual | ~WindowRenderer () |
Destructor. | |
const String & | getName () const |
Returns the factory type name of this window renderer. | |
Window * | getWindow () const |
Get the window this windowrenderer is attached to. | |
const String & | getClass () const |
Get the "minimum" Window class this renderer requires. | |
const WidgetLookFeel & | getLookNFeel () const |
Get the Look'N'Feel assigned to our window. | |
virtual Rect | getUnclippedInnerRect () const |
Get unclipped inner rectangle that our window should return from its member function with the same name. | |
virtual void | performChildWindowLayout () |
Method called to perform extended laying out of the window's attached child windows. | |
virtual void | getRenderingContext (RenderingContext &ctx) const |
update the RenderingContext as needed for our window. This is normally invoked via our window's member function with the same name. | |
Static Public Attributes | |
static const utf8 | TypeName [] |
type name for this widget. | |
static const String | UnselectedTextColourPropertyName |
Name of property to access for unselected text colour. | |
static const String | SelectedTextColourPropertyName |
Name of property to access for selected text colour. | |
static const float | DefaultCaretBlinkTimeout |
The default timeout (in seconds) used when blinking the caret. | |
Protected Attributes | |
float | d_lastTextOffset |
x rendering offset used last time we drew the widget. | |
bool | d_blinkCaret |
true if the caret imagery should blink. | |
float | d_caretBlinkTimeout |
time-out in seconds used for blinking the caret. | |
float | d_caretBlinkElapsed |
current time elapsed since last caret blink state change. | |
bool | d_showCaret |
true if caret should be shown. | |
Static Protected Attributes | |
static FalagardEditboxProperties::BlinkCaret | d_blinkCaretProperty |
static FalagardEditboxProperties::BlinkCaretTimeout | d_blinkCaretTimeoutProperty |
Additional Inherited Members | |
Protected Types inherited from CEGUI::WindowRenderer | |
typedef std::pair< Property *, bool > | PropertyEntry |
type used for entries in the PropertyList. | |
typedef std::vector < PropertyEntry > | PropertyList |
type to use for the property list. | |
Protected Member Functions inherited from CEGUI::WindowRenderer | |
void | registerProperty (Property *property, const bool ban_from_xml) |
Register a property class that will be properly managed by this window renderer. More... | |
void | registerProperty (Property *property) |
Register a property class that will be properly managed by this window renderer. More... | |
virtual void | onAttach () |
Handler called when this windowrenderer is attached to a window. | |
virtual void | onDetach () |
Handler called when this windowrenderer is detached from its window. | |
virtual void | onLookNFeelAssigned () |
Handler called when a Look'N'Feel is assigned to our window. | |
virtual void | onLookNFeelUnassigned () |
Handler called when a Look'N'Feel is removed/unassigned from our window. | |
void | operator= (const WindowRenderer &) |
Editbox class for the FalagardBase module.
This class requires LookNFeel to be assigned. The LookNFeel should provide the following:
States:
NamedAreas:
PropertyDefinitions (optional)
Imagery Sections:
Return a colour object fetched from the named property if it exists, else a default colour (black).
propertyName | String object holding the name of the property to be accessed if it exists. |
colour CEGUI::FalagardEditbox::getSelectedTextColour | ( | ) | const |
return the colour to be used for rendering Editbox text falling within the selected region.
|
virtual |
Return the text code point index that is rendered closest to screen position pt.
pt | Point object describing a position on the screen in pixels. |
Implements CEGUI::EditboxWindowRenderer.
colour CEGUI::FalagardEditbox::getUnselectedTextColour | ( | ) | const |
return the colour to be used for rendering Editbox text oustside of the selected region.
|
virtual |
Populate render cache.
This method must be implemented by all window renderers and should perform the rendering operations needed for this widget. Normally using the Falagard API...
Implements CEGUI::WindowRenderer.