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::U32String &label, const Common::U32String &tooltip=Common::U32String(""), uint32 cmd=0, uint8 hotkey=0)
 ButtonWidget (GuiObject *boss, const Common::String &name, const Common::U32String &label, const Common::U32String &tooltip=Common::U32String(""), uint32 cmd=0, uint8 hotkey=0)
void getMinSize (int &minWidth, int &minHeight) override
void setCmd (uint32 cmd)
uint32 getCmd () const
void setLabel (const Common::U32String &label)
void setLabel (const Common::String &label)
void handleMouseUp (int x, int y, int button, int clickCount) override
void handleMouseDown (int x, int y, int button, int clickCount) override
void handleMouseEntered (int button) override
void handleMouseLeft (int button) override
void setHighLighted (bool enable)
void setPressedState ()
void setUnpressedState ()

Protected Member Functions

void drawWidget () override

Protected Attributes

uint32 _cmd
uint8 _hotkey
bool _duringPress

Friends

class Dialog

Detailed Description

Definition at line 219 of file widget.h.


Constructor & Destructor Documentation

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

Definition at line 347 of file widget.cpp.

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

Definition at line 358 of file widget.cpp.


Member Function Documentation

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

Definition at line 231 of file widget.h.

void GUI::ButtonWidget::getMinSize ( int &  minWidth,
int &  minHeight 
) [override]

Reimplemented in GUI::DropdownButtonWidget.

Definition at line 367 of file widget.cpp.

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

Definition at line 382 of file widget.cpp.

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

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

Definition at line 238 of file widget.h.

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

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

Definition at line 239 of file widget.h.

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

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

Definition at line 374 of file widget.cpp.

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

Definition at line 230 of file widget.h.

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

Definition at line 420 of file widget.cpp.

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

Definition at line 395 of file widget.cpp.

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

Definition at line 391 of file widget.cpp.

void GUI::ButtonWidget::setPressedState (  ) 

Definition at line 425 of file widget.cpp.

void GUI::ButtonWidget::setUnpressedState (  ) 

Definition at line 431 of file widget.cpp.


Friends And Related Function Documentation

friend class Dialog [friend]

Definition at line 220 of file widget.h.


Member Data Documentation

Definition at line 222 of file widget.h.

Definition at line 246 of file widget.h.

Definition at line 223 of file widget.h.


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


Generated on Sat Sep 19 2020 05:05:31 for ResidualVM by doxygen 1.7.1
curved edge   curved edge