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=nullptr, uint32 cmd=0, uint8 hotkey=0)
 ButtonWidget (GuiObject *boss, const Common::String &name, const Common::String &label, const char *tooltip=nullptr, uint32 cmd=0, uint8 hotkey=0)
void getMinSize (int &minWidth, int &minHeight) override
void setCmd (uint32 cmd)
uint32 getCmd () const
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 218 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 = nullptr,
uint32  cmd = 0,
uint8  hotkey = 0 
)

Definition at line 345 of file widget.cpp.

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

Definition at line 356 of file widget.cpp.


Member Function Documentation

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

Definition at line 230 of file widget.h.

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

Reimplemented in GUI::DropdownButtonWidget.

Definition at line 365 of file widget.cpp.

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

Definition at line 380 of file widget.cpp.

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

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

Definition at line 236 of file widget.h.

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

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

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

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

Definition at line 229 of file widget.h.

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

Definition at line 414 of file widget.cpp.

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

Definition at line 389 of file widget.cpp.

void GUI::ButtonWidget::setPressedState (  ) 

Definition at line 419 of file widget.cpp.

void GUI::ButtonWidget::setUnpressedState (  ) 

Definition at line 425 of file widget.cpp.


Friends And Related Function Documentation

friend class Dialog [friend]

Definition at line 219 of file widget.h.


Member Data Documentation

Definition at line 221 of file widget.h.

Definition at line 244 of file widget.h.

Definition at line 222 of file widget.h.


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


Generated on Sat Jun 27 2020 05:02:56 for ResidualVM by doxygen 1.7.1
curved edge   curved edge