Public Member Functions | |
ButtonWidget (GuiScreen &gui, const Common::Rect &area, const Graphics::Surface &normalSurface, const Graphics::Surface &pressedSurface) | |
void | setCallback (ButtonWidgetCallback *callback) |
void | handleEvent (const Common::Event &event) override |
Public Member Functions inherited from MutationOfJB::Widget | |
Widget (GuiScreen &gui, const Common::Rect &area) | |
int | getId () const |
void | setId (int id) |
bool | isVisible () const |
void | setVisible (bool visible) |
bool | isEnabled () const |
void | setEnabled (bool enabled) |
Common::Rect | getArea () const |
void | setArea (const Common::Rect &area) |
bool | isDirty () const |
void | markDirty (uint32 dirtyBits=DIRTY_ALL) |
void | update (Graphics::ManagedSurface &) |
Protected Member Functions | |
void | draw (Graphics::ManagedSurface &) override |
Additional Inherited Members | |
Public Types inherited from MutationOfJB::Widget | |
enum | : uint { DIRTY_NONE = 0, DIRTY_ALL = 0xFFFFFFFF } |
Protected Attributes inherited from MutationOfJB::Widget | |
GuiScreen & | _gui |
Common::Rect | _area |
int | _id |
bool | _visible |
bool | _enabled |
uint32 | _dirtyBits |