22 #ifndef GRAPHICS_MACGUI_MACWIDGET_H 23 #define GRAPHICS_MACGUI_MACWIDGET_H 25 #include "common/array.h" 26 #include "common/events.h" 27 #include "common/rect.h" 28 #include "graphics/managed_surface.h" 37 class MacWindowManager;
42 MacWidget(
MacWidget *parent,
int x,
int y,
int w,
int h,
MacWindowManager *wm,
bool focusable, uint16 border = 0, uint16 gutter = 0, uint16 shadow = 0, uint32 fgcolor = 0, uint32 bgcolor= 0xff);
56 virtual void setActive(
bool active);
62 void setDirty(
bool dirty) { _contentIsDirty = dirty; }
64 virtual bool needsRedraw() {
return _contentIsDirty; }
67 virtual bool draw(
bool forceRedraw =
false);
70 virtual bool hasAllFocus() {
return _active; }
71 virtual bool isEditable() {
return _editable; }
73 virtual void setColors(uint32 fg, uint32 bg);
82 void removeWidget(
MacWidget *child,
bool del =
true);
91 uint32 _fgcolor, _bgcolor;
Definition: managed_surface.h:51
Definition: macwindowmanager.h:149
Definition: algorithm.h:29
Definition: formatinfo.h:28