|
| MacMenu (int id, const Common::Rect &bounds, MacWindowManager *wm) |
|
ManagedSurface * | getBorderSurface () override |
|
const Common::Rect & | getInnerDimensions () override |
|
bool | isDirty () override |
|
void | setAlignment (Graphics::TextAlign align) |
|
void | setCommandsCallback (void(*callback)(int, Common::String &, void *), void *data) |
|
void | setCommandsCallback (void(*callback)(int, Common::U32String &, void *), void *data) |
|
void | addStaticMenus (const MacMenuData *data) |
|
void | calcDimensions () |
|
int | numberOfMenus () |
|
int | numberOfMenuItems (MacMenuItem *menu) |
|
MacMenuItem * | getMenuItem (int menuId) |
|
MacMenuItem * | getMenuItem (const Common::String &menuId) |
|
MacMenuItem * | getSubMenuItem (MacMenuItem *menu, int itemId) |
|
MacMenuItem * | getSubMenuItem (MacMenuItem *menu, const Common::String &itemId) |
|
MacMenuSubMenu * | addSubMenu (MacMenuSubMenu *submenu, int index=-1) |
|
int | addMenuItem (MacMenuSubMenu *submenu, const Common::String &text, int action=-1, int style=0, char shortcut=0, bool enabled=true, bool checked=false) |
|
int | addMenuItem (MacMenuSubMenu *submenu, const Common::U32String &text, int action=0, int style=0, char shortcut=0, bool enabled=true, bool checked=false) |
|
void | insertMenuItem (MacMenuSubMenu *submenu, const Common::String &text, uint pos, int action=-1, int style=0, char shortcut=0, bool enabled=true, bool checked=false) |
|
void | insertMenuItem (MacMenuSubMenu *submenu, const Common::U32String &text, uint pos, int action=0, int style=0, char shortcut=0, bool enabled=true, bool checked=false) |
|
void | removeMenuItem (MacMenuSubMenu *submenu, uint pos) |
|
void | loadMenuResource (Common::MacResManager *resFork, uint16 id) |
|
void | loadMenuBarResource (Common::MacResManager *resFork, uint16 id) |
|
void | createSubMenuFromString (int id, const char *string, int commandId) |
|
void | clearSubMenu (int id) |
|
MacMenuSubMenu * | getSubmenu (MacMenuSubMenu *submenu, int index) |
|
bool | draw (ManagedSurface *g, bool forceRedraw=false) override |
|
void | eventLoop () |
|
bool | mouseClick (int x, int y) |
|
bool | draw (bool forceRedraw=false) override |
|
void | blit (ManagedSurface *g, Common::Rect &dest) override |
|
bool | processEvent (Common::Event &event) override |
|
void | enableCommand (int menunum, int action, bool state) |
|
void | enableCommand (const char *menuitem, const char *menuaction, bool state) |
|
void | enableCommand (const Common::U32String &menuitem, const Common::U32String &menuaction, bool state) |
|
void | enableAllMenus () |
|
void | disableAllMenus () |
|
bool | isVisible () |
|
void | setVisible (bool visible, bool silent=false) override |
|
void | printMenu (int level=0, MacMenuSubMenu *submenu=nullptr) |
|
virtual void | closeMenu () |
|
bool | checkIntersects (Common::Rect &rect) |
|
void | setCheckMark (MacMenuItem *menuItem, bool checkMark) |
|
bool | getCheckMark (MacMenuItem *menuItem) |
|
void | setEnabled (MacMenuItem *menuItem, bool enabled) |
|
bool | getEnabled (MacMenuItem *menuItem) |
|
void | setName (MacMenuItem *menuItem, const Common::String &name) |
|
Common::String | getName (MacMenuItem *menuItem) |
|
void | setAction (MacMenuItem *menuItem, int actionId) |
|
int | getAction (MacMenuItem *menuItem) |
|
int | getLastSelectedMenuItem () |
|
int | getLastSelectedSubmenuItem () |
|
void | renderSubmenu (MacMenuSubMenu *menu, bool recursive=true) |
|
int | getScrollDirection () |
|
int | getDropdownItemHeight () |
|
| BaseMacWindow (int id, bool editable, MacWindowManager *wm) |
|
int | getId () |
|
WindowType | getType () |
|
bool | isEditable () |
|
bool | isVisible () |
|
ManagedSurface * | getWindowSurface () |
|
void | setCallback (bool(*callback)(WindowClick, Common::Event &, void *), void *data) |
|
| 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) |
|
const Common::Rect & | getDimensions () |
|
virtual void | setActive (bool active) |
|
void | setDirty (bool dirty) |
|
virtual bool | needsRedraw () |
|
virtual bool | hasAllFocus () |
|
virtual void | setColors (uint32 fg, uint32 bg) |
|
virtual void | setDimensions (const Common::Rect &r) |
|
Common::Point | getAbsolutePos () |
|
MacWidget * | findEventHandler (Common::Event &event, int dx, int dy) |
|
void | removeWidget (MacWidget *child, bool del=true) |
|
Graphics::ManagedSurface * | getSurface () |
|