ScummVM API documentation
ZVision::HotMovControl Class Reference
Inheritance diagram for ZVision::HotMovControl:
ZVision::Control

Public Member Functions

 HotMovControl (ZVision *engine, uint32 key, Common::SeekableReadStream &stream)
 
bool onMouseUp (const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) override
 
bool onMouseMove (const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) override
 
bool process (uint32 deltaTimeInMillis) override
 
- Public Member Functions inherited from ZVision::Control
 Control (ZVision *engine, uint32 key, ControlType type)
 
uint32 getKey ()
 
ControlType getType ()
 
virtual void focus ()
 
virtual void unfocus ()
 
virtual bool onMouseDown (const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos)
 
virtual bool onKeyDown (Common::KeyState keyState)
 
virtual bool onKeyUp (Common::KeyState keyState)
 
void setVenus ()
 

Additional Inherited Members

- Public Types inherited from ZVision::Control
enum  ControlType {
  CONTROL_UNKNOW, CONTROL_INPUT, CONTROL_PUSHTGL, CONTROL_SLOT,
  CONTROL_LEVER, CONTROL_SAVE, CONTROL_SAFE, CONTROL_FIST,
  CONTROL_TITLER, CONTROL_HOTMOV, CONTROL_PAINT
}
 
- Static Public Member Functions inherited from ZVision::Control
static void parseFlatControl (ZVision *engine)
 
static void parsePanoramaControl (ZVision *engine, Common::SeekableReadStream &stream)
 
static void parseTiltControl (ZVision *engine, Common::SeekableReadStream &stream)
 
- Protected Member Functions inherited from ZVision::Control
void getParams (const Common::String &inputStr, Common::String &parameter, Common::String &values)
 
- Protected Attributes inherited from ZVision::Control
ZVision_engine
 
uint32 _key
 
int32 _venusId
 

Member Function Documentation

◆ onMouseUp()

bool ZVision::HotMovControl::onMouseUp ( const Common::Point screenSpacePos,
const Common::Point backgroundImageSpacePos 
)
overridevirtual

Called when LeftMouse is lifted. Default is NOP.

Parameters
screenSpacePosThe position of the mouse in screen space
backgroundImageSpacePosThe position of the mouse in background image space

Reimplemented from ZVision::Control.

◆ onMouseMove()

bool ZVision::HotMovControl::onMouseMove ( const Common::Point screenSpacePos,
const Common::Point backgroundImageSpacePos 
)
overridevirtual

Called on every MouseMove. Default is NOP.

Parameters
screenSpacePosThe position of the mouse in screen space
backgroundImageSpacePosThe position of the mouse in background image space
Returns
Was the cursor changed?

Reimplemented from ZVision::Control.

◆ process()

bool ZVision::HotMovControl::process ( uint32  deltaTimeInMillis)
overridevirtual

Processes the node given the deltaTime since last frame. Default is NOP.

Parameters
deltaTimeInMillisThe number of milliseconds that have passed since last frame
Returns
If true, the node can be deleted after process() finishes

Reimplemented from ZVision::Control.


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