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

Private Attributes

uint32 _lastTime

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 309 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 320 of file widget.cpp.


Member Function Documentation

void GUI::ButtonWidget::drawWidget (  )  [protected]

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

Definition at line 342 of file widget.cpp.

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 337 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::CheckboxWidget, and GUI::RadiobuttonWidget.

Definition at line 329 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 371 of file widget.cpp.

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

Definition at line 346 of file widget.cpp.

void GUI::ButtonWidget::setPressedState (  ) 

Definition at line 376 of file widget.cpp.

void GUI::ButtonWidget::setUnpressedState (  ) 

Definition at line 382 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.

Definition at line 231 of file widget.h.


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


Generated on Sat Mar 16 2019 05:06:24 for ResidualVM by doxygen 1.7.1
curved edge   curved edge