ScummVM API documentation
Kyra::GUI_v1 Class Referenceabstract
Inheritance diagram for Kyra::GUI_v1:
Kyra::GUI Kyra::GUI_LoK Kyra::GUI_v2 Kyra::GUI_HoF Kyra::GUI_MR

Public Member Functions

 GUI_v1 (KyraEngine_v1 *vm)
 
virtual ButtonaddButtonToList (Button *list, Button *newButton)
 
void processButton (Button *button) override=0
 
int processButtonList (Button *buttonList, uint16 inputFlags, int8 mouseWheel) override=0
 
virtual int redrawShadedButtonCallback (Button *button)
 
virtual int redrawButtonCallback (Button *button)
 
virtual void initMenuLayout (Menu &menu)
 
void initMenu (Menu &menu)
 
void processHighlights (Menu &menu)
 
void createScreenThumbnail (Graphics::Surface &dst) override=0
 
- Public Member Functions inherited from Kyra::GUI
 GUI (KyraEngine_v1 *vm)
 
void notifyUpdateSaveSlotsList ()
 

Protected Member Functions

virtual void printMenuText (const Common::String &str, int x, int y, uint8 c0, uint8 c1, uint8 c2)
 
virtual int getMenuCenterStringX (const Common::String &str, int x1, int x2)
 
virtual ButtongetButtonListData ()=0
 
virtual ButtongetScrollUpButton ()=0
 
virtual ButtongetScrollDownButton ()=0
 
virtual Button::Callback getScrollUpButtonHandler () const =0
 
virtual Button::Callback getScrollDownButtonHandler () const =0
 
virtual uint8 defaultColor1 () const =0
 
virtual uint8 defaultColor2 () const =0
 
virtual uint8 menuItemLabelColor () const =0
 
virtual Common::String getMenuTitle (const Menu &menu)=0
 
virtual Common::String getMenuItemTitle (const MenuItem &menuItem)=0
 
virtual Common::String getMenuItemLabel (const MenuItem &menuItem)=0
 
void updateAllMenuButtons ()
 
void updateMenuButton (Button *button)
 
virtual void updateButton (Button *button)
 
void redrawText (const Menu &menu)
 
void redrawHighlight (const Menu &menu)
 
void checkTextfieldInput ()
 
- Protected Member Functions inherited from Kyra::GUI
void updateSaveFileList (Common::String targetName, bool excludeQuickSaves=false)
 
int getNextSavegameSlot ()
 
void updateSaveSlotsList (Common::String targetName, bool force=false)
 
virtual void sortSaveSlots ()
 

Protected Attributes

TextDisplayer_text
 
Button_menuButtonList
 
bool _displayMenu
 
bool _displaySubMenu
 
bool _cancelSubMenu
 
Button::Callback _redrawShadedButtonFunctor
 
Button::Callback _redrawButtonFunctor
 
uint32 _lastScreenUpdate
 
int _menuLabelYOffset
 
- Protected Attributes inherited from Kyra::GUI
KyraEngine_v1_vm
 
Screen_screen
 
Common::Array< int > _saveSlots
 
char ** _savegameList
 
int _savegameListSize
 
bool _saveSlotsListUpdateNeeded
 
Common::KeyState _keyPressed
 

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