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

Public Member Functions

 PushToggleControl (ZVision *engine, uint32 key, Common::SeekableReadStream &stream)
 
bool onMouseDown (const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) override
 
bool onMouseUp (const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) override
 
bool onMouseMove (const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) 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 onKeyDown (Common::KeyState keyState)
 
virtual bool onKeyUp (Common::KeyState keyState)
 
virtual bool process (uint32 deltaTimeInMillis)
 
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

◆ onMouseDown()

bool ZVision::PushToggleControl::onMouseDown ( const Common::Point screenSpacePos,
const Common::Point backgroundImageSpacePos 
)
overridevirtual

Called when LeftMouse is pushed. 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.

◆ onMouseUp()

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

Called when LeftMouse is lifted. Calls ScriptManager::setStateValue(_key, 1);

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::PushToggleControl::onMouseMove ( const Common::Point screenSpacePos,
const Common::Point backgroundImageSpacePos 
)
overridevirtual

Called on every MouseMove. Tests if the mouse is inside _hotspot, and if so, sets the cursor.

Parameters
engineThe base engine
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.


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