libRocket
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Rocket::Controls::SelectOption Class Reference

#include <SelectOption.h>

Public Member Functions

 SelectOption (Core::Element *element, const Rocket::Core::String &value, bool selectable)
 
 ~SelectOption ()
 
Core::Element * GetElement ()
 
const Rocket::Core::String & GetValue () const
 
bool IsSelectable ()
 

Detailed Description

Represents individual options within a select control.

Author
Peter Curry

Constructor & Destructor Documentation

Rocket::Controls::SelectOption::SelectOption ( Core::Element *  element,
const Rocket::Core::String &  value,
bool  selectable 
)
Rocket::Controls::SelectOption::~SelectOption ( )

Member Function Documentation

Core::Element* Rocket::Controls::SelectOption::GetElement ( )

Returns the element that represents the option visually.

Returns
The option's element.
const Rocket::Core::String& Rocket::Controls::SelectOption::GetValue ( ) const

Returns the value of the option.

Returns
The option's value.
bool Rocket::Controls::SelectOption::IsSelectable ( )
inline

Returns true if the item is selectable.

Returns
True if the item is selectable.

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