diff options
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.h')
-rw-r--r-- | engines/titanic/pet_control/pet_glyphs.h | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.h b/engines/titanic/pet_control/pet_glyphs.h index c7966e5e6a..e4f4b1f59a 100644 --- a/engines/titanic/pet_control/pet_glyphs.h +++ b/engines/titanic/pet_control/pet_glyphs.h @@ -25,6 +25,7 @@ #include "common/keyboard.h" #include "titanic/core/list.h" +#include "titanic/messages/mouse_messages.h" #include "titanic/pet_control/pet_gfx_element.h" #include "titanic/support/rect.h" @@ -125,9 +126,20 @@ public: */ virtual bool checkHighlight(const Point &pt) { return false; } - virtual bool MouseDragStartMsg(const CMouseDragStartMsg *msg) { return false; } - virtual int proc18() { return 0; } - virtual int proc19() { return 0; } + /** + * Called when mouse drag starts + */ + virtual bool MouseDragStartMsg(CMouseDragStartMsg *msg) { return false; } + + /** + * Called during mouse drags + */ + virtual bool MouseDragMoveMsg(CMouseDragMoveMsg *msg) { return false; } + + /** + * Called when mouse drag ends + */ + virtual bool MouseDragEndMsg(CMouseDragEndMsg *msg) { return false; } /** * Handles mouse button up messages @@ -245,7 +257,7 @@ protected: int _highlightIndex; int _field1C; int _flags; - void *_field94; + CPetGlyph *_dragGlyph; CPetSection *_owner; CPetGfxElement _selection; CPetGfxElement _scrollLeft; @@ -357,6 +369,16 @@ public: * glyph, if any */ bool leaveHighlighted(); + + /** + * Called when a dragging operation starts + */ + void startDragging(CPetGlyph *glyph, CMouseDragStartMsg *msg); + + /** + * Called when a dragging operation ends + */ + void endDragging(); }; } // End of namespace Titanic |