Classes | |
class | MacButton |
class | MacCheckbox |
class | MacDialogWindow |
class | MacEditText |
class | MacGuiObject |
class | MacListBox |
class | MacPicture |
class | MacPictureSlider |
class | MacSlider |
class | MacSliderBase |
class | MacStaticText |
struct | MacSTRSParsingEntry |
class | MacWidget |
struct | TextLine |
Public Member Functions | |
MacGuiImpl (ScummEngine *vm, const Common::Path &resourceFile) | |
virtual int | getNumColors () const =0 |
Graphics::Surface * | surface () |
uint32 | getBlack () const |
uint32 | getWhite () const |
virtual const Common::String | name () const =0 |
Common::String | readCString (uint8 *&data) |
Common::String | readPascalString (uint8 *&data) |
int | toMacRoman (int unicode) const |
void | setPalette (const byte *palette, uint size) |
virtual bool | handleEvent (Common::Event event) |
virtual void | initialize () |
void | updateWindowManager () |
const Graphics::Font * | getFont (FontId fontId) |
virtual const Graphics::Font * | getFontByScummId (int32 id)=0 |
Graphics::Surface * | loadPict (int id) |
virtual bool | isVerbGuiActive () const |
virtual void | reset () |
virtual void | resetAfterLoad ()=0 |
virtual void | update (int delta)=0 |
bool | runQuitDialog () |
bool | runRestartDialog () |
virtual void | setupCursor (int &width, int &height, int &hotspotX, int &hotspotY, int &animate)=0 |
virtual Graphics::Surface * | textArea () |
virtual void | clearTextArea () |
virtual void | initTextAreaForActor (Actor *a, byte color) |
virtual void | printCharToTextArea (int chr, int x, int y, int color) |
MacDialogWindow * | createWindow (Common::Rect bounds, MacDialogWindowStyle style=kWindowStyleNormal, MacDialogMenuStyle menuStyle=kMenuStyleDisabled) |
MacDialogWindow * | createDialog (int dialogId) |
void | drawBanner (char *message) |
void | undrawBanner () |
void | drawBitmap (Graphics::Surface *s, Common::Rect r, const uint16 *bitmap, uint32 color) const |
Static Public Member Functions | |
static void | menuCallback (int id, Common::String &name, void *data) |
Public Attributes | |
Graphics::MacWindowManager * | _windowManager = nullptr |
bool | _forceMenuClosed = false |
Protected Member Functions | |
MacGuiImpl::DelayStatus | delay (uint32 ms=0) |
virtual bool | getFontParams (FontId fontId, int &id, int &size, int &slant) const |
Common::String | getDialogString (Common::SeekableReadStream *res, int len) |
virtual bool | handleMenu (int id, Common::String &name) |
virtual void | runAboutDialog ()=0 |
virtual bool | runOpenDialog (int &saveSlotToHandle) |
virtual bool | runSaveDialog (int &saveSlotToHandle, Common::String &saveName) |
virtual bool | runOptionsDialog ()=0 |
void | prepareSaveLoad (Common::StringArray &savegameNames, bool *availSlots, int *slotIds, int size) |
bool | runOkCancelDialog (Common::String text) |
void | readStrings () |
void | parseSTRSBlock (uint8 *strsData, MacSTRSParsingEntry *parsingTable, int parsingTableSize) |
void | drawFakePathList (MacDialogWindow *window, Common::Rect r, const char *text) |
void | drawFakeDriveLabel (MacDialogWindow *window, Common::Rect r, const char *text) |
Protected Attributes | |
ScummEngine * | _vm = nullptr |
OSystem * | _system = nullptr |
Graphics::Surface * | _surface = nullptr |
MacGuiImpl::MacDialogWindow * | _bannerWindow = nullptr |
Common::Path | _resourceFile |
bool | _menuIsActive = false |
bool | _cursorWasVisible = false |
Common::HashMap< int, const Graphics::Font * > | _fonts |
Common::Array< Common::String > | _strsStrings |
int | _gameFontId = -1 |
byte | _unicodeToMacRoman [96] |