ScummVM API documentation
M4::GUI::ButtonClass Class Reference
Inheritance diagram for M4::GUI::ButtonClass:
M4::GUI::RectClass M4::GUI::Toggler M4::Riddle::GUI::Interface::BackpackClass

Public Member Functions

 ButtonClass (const RectClass &r, const Common::String &btnName, int16 tag)
 
 ButtonClass (const RectClass &r, const Common::String &btnName, int16 tag, int16 unknown, int16 relaxed, int16 over, int16 picked, int sprite)
 
 ButtonClass (const RectClass &r, const Common::String &btnName, int16 tag, int16 relaxed, int16 over, int16 picked, int sprite)
 
void draw (GrBuff *interface_buffer)
 
int16 inside (int16 x, int16 y) const override
 
virtual ControlStatus track (int32 eventType, int16 x, int16 y)
 
void set (const ButtonClass *b)
 
void set (int16 x1, int16 y1, int16 x2, int16 y2, int16 tag)
 
void set (int16 x1, int16 y1, int16 x2, int16 y2, int16 tag, int16 unknown, int16 relaxed, int16 over, int16 picked, int32 sprite)
 
void set_name (const Common::String &btnName)
 
int16 get_tag () const
 
void hide ()
 
void unhide ()
 
bool is_hidden () const
 
void set_sprite_relaxed (int16 r)
 
void set_sprite_picked (int16 p)
 
void set_sprite_over (int16 o)
 
void set_sprite_unknown (int16 val)
 
- Public Member Functions inherited from M4::GUI::RectClass
 RectClass (int16 x1, int16 y1, int16 x2, int16 y2)
 
 RectClass (const RectClass *)
 
void copyInto (RectClass *r) const
 
void set (int16 x1, int16 y1, int16 x2, int16 y2)
 
void set (const RectClass *r)
 

Public Attributes

ButtonState _state = BUTTON_RELAXED
 
Common::String _name
 
bool _must_redraw = false
 
- Public Attributes inherited from M4::GUI::RectClass
int16 _x1 = 0
 
int16 _x2 = 0
 
int16 _y1 = 0
 
int16 _y2 = 0
 

Protected Member Functions

void init ()
 
void zap_resources ()
 

Protected Attributes

int16 _tag = 0
 
int16 _unknown = 0
 
int16 _relaxed = 0
 
int16 _over = 0
 
int16 _picked = 0
 
int16 _tracking = 0
 
int32 _sprite = 0
 
bool _highlighted = false
 
bool _hidden = false
 

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