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

#include <widget.h>

Inheritance diagram for GUI::CheckboxWidget:
Collaboration diagram for GUI::CheckboxWidget:

List of all members.

Public Member Functions

 CheckboxWidget (GuiObject *boss, int x, int y, int w, int h, const Common::String &label, const char *tooltip=nullptr, uint32 cmd=0, uint8 hotkey=0)
 CheckboxWidget (GuiObject *boss, const Common::String &name, const Common::String &label, const char *tooltip=nullptr, uint32 cmd=0, uint8 hotkey=0)
void handleMouseUp (int x, int y, int button, int clickCount) override
void handleMouseEntered (int button) override
void handleMouseLeft (int button) override
void setState (bool state)
void toggleState ()
bool getState () const

Protected Member Functions

void drawWidget () override

Protected Attributes

bool _state

Detailed Description

Definition at line 306 of file widget.h.


Constructor & Destructor Documentation

GUI::CheckboxWidget::CheckboxWidget ( GuiObject boss,
int  x,
int  y,
int  w,
int  h,
const Common::String label,
const char *  tooltip = nullptr,
uint32  cmd = 0,
uint8  hotkey = 0 
)

Definition at line 620 of file widget.cpp.

GUI::CheckboxWidget::CheckboxWidget ( GuiObject boss,
const Common::String name,
const Common::String label,
const char *  tooltip = nullptr,
uint32  cmd = 0,
uint8  hotkey = 0 
)

Definition at line 626 of file widget.cpp.


Member Function Documentation

void GUI::CheckboxWidget::drawWidget (  )  [override, protected]

Reimplemented from GUI::ButtonWidget.

Definition at line 648 of file widget.cpp.

bool GUI::CheckboxWidget::getState (  )  const [inline]

Definition at line 319 of file widget.h.

void GUI::CheckboxWidget::handleMouseEntered ( int  button  )  [inline, override]

Reimplemented from GUI::ButtonWidget.

Definition at line 314 of file widget.h.

void GUI::CheckboxWidget::handleMouseLeft ( int  button  )  [inline, override]

Reimplemented from GUI::ButtonWidget.

Definition at line 315 of file widget.h.

void GUI::CheckboxWidget::handleMouseUp ( int  x,
int  y,
int  button,
int  clickCount 
) [override]

Reimplemented from GUI::ButtonWidget.

Definition at line 632 of file widget.cpp.

void GUI::CheckboxWidget::setState ( bool  state  ) 

Definition at line 639 of file widget.cpp.

void GUI::CheckboxWidget::toggleState (  )  [inline]

Definition at line 318 of file widget.h.


Member Data Documentation

bool GUI::CheckboxWidget::_state [protected]

Definition at line 308 of file widget.h.


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


Generated on Sat Jul 4 2020 05:03:59 for ResidualVM by doxygen 1.7.1
curved edge   curved edge