diff options
author | Paul Gilbert | 2012-04-30 23:16:19 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-04-30 23:16:19 +1000 |
commit | 68bcaa61b9eb1108028b3db072ade95431b9f14f (patch) | |
tree | 604032ba514b785f5a3216e7d47c9d4906e32d49 /engines/tony/font.h | |
parent | b0eef829728183b7ea170b30a33eca091bcc4574 (diff) | |
download | scummvm-rg350-68bcaa61b9eb1108028b3db072ade95431b9f14f.tar.gz scummvm-rg350-68bcaa61b9eb1108028b3db072ade95431b9f14f.tar.bz2 scummvm-rg350-68bcaa61b9eb1108028b3db072ade95431b9f14f.zip |
TONY: More header files and functionality added
Diffstat (limited to 'engines/tony/font.h')
-rw-r--r-- | engines/tony/font.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/tony/font.h b/engines/tony/font.h index 348e7618ea..57a8b1c4fb 100644 --- a/engines/tony/font.h +++ b/engines/tony/font.h @@ -55,6 +55,8 @@ namespace Tony { class RMInventory; +class RMLoc; +class RMItem; /** * Gestisce un font, in cui ha varie surface per ogni lettera @@ -318,7 +320,7 @@ class RMTextItemName : protected RMText { protected: RMPoint m_mpos; RMPoint m_curscroll; - RMItem* m_item; + RMItem *m_item; RMString m_itemName; public: @@ -330,10 +332,10 @@ public: void DoFrame(RMGfxTargetBuffer &bigBuf, RMLocation &loc, RMPointer &ptr, RMInventory &inv); virtual void Draw(RMGfxTargetBuffer& bigBuf, RMGfxPrimitive* prim); - RMPoint GetHotspot() { if (m_item==NULL) return m_mpos+m_curscroll; else return m_item->Hotspot(); } - RMItem* GetSelectedItem() { return m_item; } - bool IsItemSelected() { return m_item!=NULL; } - bool IsNormalItemSelected() { return m_item!=NULL && m_itemName.Length()>0; } + RMPoint GetHotspot(); + RMItem *GetSelectedItem(); + bool IsItemSelected(); + bool IsNormalItemSelected(); virtual bool RemoveThis() { return true; } }; |