Rocket::Controls::InputTypeCheckbox Class Reference

#include <InputTypeCheckbox.h>

Inheritance diagram for Rocket::Controls::InputTypeCheckbox:
Collaboration diagram for Rocket::Controls::InputTypeCheckbox:

Public Member Functions

 InputTypeCheckbox (ElementFormControlInput *element)
virtual bool IsSubmitted ()
virtual bool OnAttributeChange (const Core::AttributeNameList &changed_attributes)
virtual void ProcessEvent (Core::Event &event)
virtual bool GetIntrinsicDimensions (Rocket::Core::Vector2f &dimensions)

Detailed Description

A checkbox input type handler.

Author:
Peter Curry

Member Function Documentation

bool Rocket::Controls::InputTypeCheckbox::IsSubmitted (  )  [virtual]

Returns if this value should be submitted with the form.

Returns:
True if the form control is to be submitted, false otherwise.

Reimplemented from Rocket::Controls::InputType.

bool Rocket::Controls::InputTypeCheckbox::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::InputTypeCheckbox::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::InputTypeCheckbox::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: