ScummVM API documentation
Pegasus::SpriteDragger Class Reference
Inheritance diagram for Pegasus::SpriteDragger:
Pegasus::Tracker Pegasus::InputHandler Pegasus::ItemDragger

Public Member Functions

void setDragSprite (Sprite *)
 
SpritegetDragSprite ()
 
void setDragConstraints (const Common::Rect &, const Common::Rect &)
 
void getDragConstraints (Common::Rect &, Common::Rect &) const
 
void startTracking (const Input &) override
 
void continueTracking (const Input &) override
 
HotspotgetLastHotspot () const
 
- Public Member Functions inherited from Pegasus::Tracker
void handleInput (const Input &, const Hotspot *) override
 
virtual bool stopTrackingInput (const Input &)
 
virtual void stopTracking (const Input &)
 
bool isTracking ()
 
bool isClickInput (const Input &, const Hotspot *) override
 
bool releaseInputFocus () override
 
- Public Member Functions inherited from Pegasus::InputHandler
 InputHandler (InputHandler *)
 
virtual void setNextHandler (InputHandler *nextHandler)
 
virtual InputHandlergetNextHandler ()
 
virtual void clickInHotspot (const Input &, const Hotspot *)
 
virtual void activateHotspots ()
 
virtual void updateCursor (const Common::Point, const Hotspot *)
 
virtual bool wantsCursor ()
 
virtual void grabInputFocus ()
 
virtual InputBits getInputFilter ()
 
virtual InputBits getClickFilter ()
 
virtual void allowInput (const bool allow)
 

Protected Member Functions

virtual void enterHotspot (Hotspot *)
 
virtual void exitHotspot (Hotspot *)
 
void pinPointInRect (const Common::Rect &, Common::Point &)
 

Protected Attributes

Sprite_draggingSprite
 
Common::Point _startPoint
 
Common::Point _lastPoint
 
Common::Point _dragOffset
 
Common::Point _startRawPoint
 
Common::Point _lastRawPoint
 
Common::Rect _rawLimitRect
 
Common::Rect _limitRect
 
Common::Rect _slopRect
 
Hotspot_lastHotspot
 
- Protected Attributes inherited from Pegasus::Tracker
InputHandler_savedHandler
 
- Protected Attributes inherited from Pegasus::InputHandler
InputHandler_nextHandler
 
bool _allowInput
 

Additional Inherited Members

- Static Public Member Functions inherited from Pegasus::InputHandler
static InputHandlersetInputHandler (InputHandler *)
 
static InputHandlergetCurrentHandler ()
 
static void pollForInput ()
 
static void getInput (Input &, Hotspot *&)
 
static void readInputDevice (Input &)
 
static void invalHotspots ()
 
static InputBits getCurrentFilter ()
 
- Static Protected Attributes inherited from Pegasus::Tracker
static Tracker_currentTracker
 
- Static Protected Attributes inherited from Pegasus::InputHandler
static InputHandler_inputHandler
 
static bool _invalHotspots
 
static InputBits _lastFilter
 

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