Rocket::Controls::InputTypeText Class Reference

#include <InputTypeText.h>

Inheritance diagram for Rocket::Controls::InputTypeText:
Collaboration diagram for Rocket::Controls::InputTypeText:

Public Types

enum  Visibility { VISIBLE, OBSCURED }

Public Member Functions

 InputTypeText (ElementFormControlInput *element, Visibility visibility=VISIBLE)
virtual void OnUpdate ()
 Called every update from the host element.
virtual void OnRender ()
 Called every render from the host element.
virtual bool OnAttributeChange (const Core::AttributeNameList &changed_attributes)
virtual void OnPropertyChange (const Core::PropertyNameList &changed_properties)
virtual void ProcessEvent (Core::Event &event)
virtual bool GetIntrinsicDimensions (Rocket::Core::Vector2f &dimensions)

Detailed Description

A single-line input type handler.

Author:
Peter Curry

Member Function Documentation

bool Rocket::Controls::InputTypeText::OnAttributeChange ( const Core::AttributeNameList &  changed_attributes  )  [virtual]

Checks for necessary functional changes in the control as a result of changed attributes.

Parameters:
[in] changed_attributes The list of changed attributes.
Returns:
True if no layout is required, false if the layout needs to be dirtied.

Reimplemented from Rocket::Controls::InputType.

void Rocket::Controls::InputTypeText::OnPropertyChange ( const Core::PropertyNameList &  changed_properties  )  [virtual]

Called when properties on the control are changed.

Parameters:
[in] changed_properties The properties changed on the element.

Reimplemented from Rocket::Controls::InputType.

virtual void Rocket::Controls::InputTypeText::ProcessEvent ( Core::Event event  )  [virtual]

Checks for necessary functional changes in the control as a result of the event.

Parameters:
[in] event The event to process.

Implements Rocket::Controls::InputType.

bool Rocket::Controls::InputTypeText::GetIntrinsicDimensions ( Rocket::Core::Vector2f dimensions  )  [virtual]

Sizes the dimensions to the element's inherent size.

Returns:
True.

Implements Rocket::Controls::InputType.


The documentation for this class was generated from the following files: