ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::CheckboxWidget Class Reference

Widget with a checkbox. More...

#include <settingsmenu.h>

Inheritance diagram for Stark::CheckboxWidget:
Collaboration diagram for Stark::CheckboxWidget:

List of all members.

Public Member Functions

 CheckboxWidget (const char *renderEntryName, bool isChecked, WidgetOnClickCallback *onClickCallback, WidgetOnMouseMoveCallback *onMouseMoveCallback)
virtual ~CheckboxWidget ()
void render () override
 Draw the widget.
bool isMouseInside (const Common::Point &mousePos) const override
 Is the specified point inside the widget?
void onClick () override
 Called when the widget is clicked.

Private Member Functions

bool isMouseInsideCheckbox (const Common::Point &mousePos) const

Private Attributes

VisualImageXMG_currentImage
VisualImageXMG_checkBoxImage [2]
Common::Point _position
int _checkboxWidth
int _checkboxHeight
bool _isChecked

Detailed Description

Widget with a checkbox.

Definition at line 118 of file settingsmenu.h.


Constructor & Destructor Documentation

Stark::CheckboxWidget::CheckboxWidget ( const char *  renderEntryName,
bool  isChecked,
WidgetOnClickCallback onClickCallback,
WidgetOnMouseMoveCallback onMouseMoveCallback 
)

Definition at line 236 of file settingsmenu.cpp.

virtual Stark::CheckboxWidget::~CheckboxWidget (  )  [inline, virtual]

Definition at line 123 of file settingsmenu.h.


Member Function Documentation

bool Stark::CheckboxWidget::isMouseInside ( const Common::Point mousePos  )  const [override, virtual]

Is the specified point inside the widget?

Reimplemented from Stark::StaticLocationWidget.

Definition at line 259 of file settingsmenu.cpp.

bool Stark::CheckboxWidget::isMouseInsideCheckbox ( const Common::Point mousePos  )  const [private]

Definition at line 269 of file settingsmenu.cpp.

void Stark::CheckboxWidget::onClick (  )  [override, virtual]

Called when the widget is clicked.

Reimplemented from Stark::StaticLocationWidget.

Definition at line 263 of file settingsmenu.cpp.

void Stark::CheckboxWidget::render (  )  [override, virtual]

Draw the widget.

Reimplemented from Stark::StaticLocationWidget.

Definition at line 254 of file settingsmenu.cpp.


Member Data Documentation

Definition at line 134 of file settingsmenu.h.

Definition at line 132 of file settingsmenu.h.

Definition at line 134 of file settingsmenu.h.

Definition at line 135 of file settingsmenu.h.

Definition at line 133 of file settingsmenu.h.


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


Generated on Sat Jan 12 2019 05:05:11 for ResidualVM by doxygen 1.7.1
curved edge   curved edge