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

#include <widget.h>

Inheritance diagram for GUI::PicButtonWidget:
Collaboration diagram for GUI::PicButtonWidget:

List of all members.

Public Member Functions

 PicButtonWidget (GuiObject *boss, int x, int y, int w, int h, const char *tooltip=nullptr, uint32 cmd=0, uint8 hotkey=0)
 PicButtonWidget (GuiObject *boss, const Common::String &name, const char *tooltip=nullptr, uint32 cmd=0, uint8 hotkey=0)
 ~PicButtonWidget () override
void setGfx (const Graphics::Surface *gfx, int statenum=kPicButtonStateEnabled)
void setGfx (int w, int h, int r, int g, int b, int statenum=kPicButtonStateEnabled)
void useAlpha (int alpha)
void useThemeTransparency (bool enable)
void setButtonDisplay (bool enable)

Protected Member Functions

void drawWidget () override

Protected Attributes

Graphics::Surface _gfx [kPicButtonStateMax+1]
int _alpha
bool _transparency
bool _showButton

Detailed Description

Definition at line 283 of file widget.h.


Constructor & Destructor Documentation

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

Definition at line 538 of file widget.cpp.

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

Definition at line 546 of file widget.cpp.

GUI::PicButtonWidget::~PicButtonWidget (  )  [override]

Definition at line 553 of file widget.cpp.


Member Function Documentation

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

Reimplemented from GUI::ButtonWidget.

Definition at line 585 of file widget.cpp.

void GUI::PicButtonWidget::setButtonDisplay ( bool  enable  )  [inline]

Definition at line 294 of file widget.h.

void GUI::PicButtonWidget::setGfx ( int  w,
int  h,
int  r,
int  g,
int  b,
int  statenum = kPicButtonStateEnabled 
)

Definition at line 572 of file widget.cpp.

void GUI::PicButtonWidget::setGfx ( const Graphics::Surface gfx,
int  statenum = kPicButtonStateEnabled 
)

Definition at line 558 of file widget.cpp.

void GUI::PicButtonWidget::useAlpha ( int  alpha  )  [inline]

Definition at line 292 of file widget.h.

void GUI::PicButtonWidget::useThemeTransparency ( bool  enable  )  [inline]

Definition at line 293 of file widget.h.


Member Data Documentation

Definition at line 300 of file widget.h.

Graphics::Surface GUI::PicButtonWidget::_gfx[kPicButtonStateMax+1] [protected]

Definition at line 299 of file widget.h.

Definition at line 302 of file widget.h.

Definition at line 301 of file widget.h.


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


Generated on Sat Jul 11 2020 05:03:24 for ResidualVM by doxygen 1.7.1
curved edge   curved edge