diff options
Diffstat (limited to 'engines/gob/hotspots.h')
| -rw-r--r-- | engines/gob/hotspots.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/gob/hotspots.h b/engines/gob/hotspots.h index b47cf39980..1801a10591 100644 --- a/engines/gob/hotspots.h +++ b/engines/gob/hotspots.h @@ -171,7 +171,7 @@ private: /** Which hotspot is the mouse cursor currently at? */ uint16 checkMouse(Type type, uint16 &id, uint16 &index) const; -void checkHotspotChanged(); + void checkHotspotChanged(); uint16 readString(uint16 xPos, uint16 yPos, uint16 width, uint16 height, uint16 backColor, uint16 frontColor, char *str, uint16 fontIndex, @@ -183,17 +183,21 @@ void checkHotspotChanged(); void evaluateNew(uint16 i, uint16 *ids, InputDesc *inputs, uint16 &validId, bool &hasInput, uint16 &inputCount); - void updateAllTexts(const InputDesc *inputs) const; - + // Finding certain inputs uint16 findInput(uint16 input) const; uint16 findClickedInput(uint16 index) const; uint16 findNthInput(uint16 n) const; - void printText(uint16 x, uint16 y, const char *str, uint16 fontIndex, uint16 color) const; - void fillRect(uint16 x, uint16 y, uint16 width, uint16 height, uint16 color) const; + /** Calculate the graphical cursor position. */ void getTextCursorPos(const Video::FontDesc &font, const char *str, uint32 pos, uint16 x, uint16 y, uint16 width, uint16 height, uint16 &cursorX, uint16 &cursorY, uint16 &cursorWidth, uint16 &cursorHeight) const; + + // Drawing functions + void fillRect(uint16 x, uint16 y, uint16 width, uint16 height, uint16 color) const; + void printText(uint16 x, uint16 y, const char *str, uint16 fontIndex, uint16 color) const; + + void updateAllTexts(const InputDesc *inputs) const; }; } // End of namespace Gob |
