ScummVM API documentation
MM::MM1::ViewsEnh::UIButton Class Reference

Public Member Functions

 UIButton (ButtonContainer *owner, const Common::Rect &bounds, KeybindingAction action, uint frameNum, Shared::Xeen::SpriteResource *sprites, bool draw)
 
 UIButton ()
 
void setFrame (uint frameNum)
 
void setFrame (uint frameNum, uint selectedFrame)
 
void draw (bool pressed=false)
 

Public Attributes

Common::Rect _bounds
 
Shared::Xeen::SpriteResource_sprites
 
KeybindingAction _action
 
uint _frameNum
 
uint _selectedFrame
 
bool _draw
 

Constructor & Destructor Documentation

◆ UIButton() [1/2]

MM::MM1::ViewsEnh::UIButton::UIButton ( ButtonContainer owner,
const Common::Rect bounds,
KeybindingAction  action,
uint  frameNum,
Shared::Xeen::SpriteResource sprites,
bool  draw 
)
inline

Constructor

◆ UIButton() [2/2]

MM::MM1::ViewsEnh::UIButton::UIButton ( )
inline

Constructor

Member Function Documentation

◆ setFrame() [1/2]

void MM::MM1::ViewsEnh::UIButton::setFrame ( uint  frameNum)
inline

Set the frame

◆ setFrame() [2/2]

void MM::MM1::ViewsEnh::UIButton::setFrame ( uint  frameNum,
uint  selectedFrame 
)
inline

Set the frame

◆ draw()

void MM::MM1::ViewsEnh::UIButton::draw ( bool  pressed = false)

Draw the button


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