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

#include <widget.h>

Inheritance diagram for GUI::ButtonWidget:
Collaboration diagram for GUI::ButtonWidget:

List of all members.

Public Member Functions

 ButtonWidget (GuiObject *boss, int x, int y, int w, int h, const Common::String &label, const char *tooltip=0, uint32 cmd=0, uint8 hotkey=0)
 ButtonWidget (GuiObject *boss, const Common::String &name, const Common::String &label, const char *tooltip=0, uint32 cmd=0, uint8 hotkey=0)
void setCmd (uint32 cmd)
uint32 getCmd () const
void setLabel (const Common::String &label)
void handleMouseUp (int x, int y, int button, int clickCount)
void handleMouseDown (int x, int y, int button, int clickCount)
void handleMouseEntered (int button)
void handleMouseLeft (int button)
void setHighLighted (bool enable)
void setPressedState ()
void setUnpressedState ()

Protected Member Functions

void drawWidget ()

Protected Attributes

uint32 _cmd
uint8 _hotkey
bool _duringPress

Friends

class Dialog

Detailed Description

Definition at line 205 of file widget.h.


Constructor & Destructor Documentation

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

Definition at line 310 of file widget.cpp.

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

Definition at line 321 of file widget.cpp.


Member Function Documentation

void GUI::ButtonWidget::drawWidget (  )  [protected]
uint32 GUI::ButtonWidget::getCmd (  )  const [inline]

Definition at line 215 of file widget.h.

void GUI::ButtonWidget::handleMouseDown ( int  x,
int  y,
int  button,
int  clickCount 
)

Definition at line 338 of file widget.cpp.

void GUI::ButtonWidget::handleMouseEntered ( int  button  )  [inline]

Reimplemented in GUI::CheckboxWidget, and GUI::RadiobuttonWidget.

Definition at line 221 of file widget.h.

void GUI::ButtonWidget::handleMouseLeft ( int  button  )  [inline]

Reimplemented in GUI::CheckboxWidget, and GUI::RadiobuttonWidget.

Definition at line 222 of file widget.h.

void GUI::ButtonWidget::handleMouseUp ( int  x,
int  y,
int  button,
int  clickCount 
)

Reimplemented in GUI::DropdownButtonWidget, GUI::CheckboxWidget, and GUI::RadiobuttonWidget.

Definition at line 330 of file widget.cpp.

void GUI::ButtonWidget::setCmd ( uint32  cmd  )  [inline]

Definition at line 214 of file widget.h.

void GUI::ButtonWidget::setHighLighted ( bool  enable  ) 

Definition at line 372 of file widget.cpp.

void GUI::ButtonWidget::setLabel ( const Common::String label  ) 

Definition at line 347 of file widget.cpp.

void GUI::ButtonWidget::setPressedState (  ) 

Definition at line 377 of file widget.cpp.

void GUI::ButtonWidget::setUnpressedState (  ) 

Definition at line 383 of file widget.cpp.


Friends And Related Function Documentation

friend class Dialog [friend]

Definition at line 206 of file widget.h.


Member Data Documentation

Definition at line 208 of file widget.h.

Definition at line 229 of file widget.h.

Definition at line 209 of file widget.h.


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


Generated on Sat Jan 18 2020 05:02:38 for ResidualVM by doxygen 1.7.1
curved edge   curved edge