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

Public Member Functions

 PaintControl (ZVision *engine, uint32 key, Common::SeekableReadStream &stream)
 
bool onMouseUp (const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) override
 
bool onMouseDown (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 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::PaintControl::onMouseUp ( const Common::Point screenSpacePos,
const Common::Point backgroundImageSpacePos 
)
overridevirtual
Parameters
screenSpacePosThe position of the mouse in screen space
backgroundImageSpacePosThe position of the mouse in background image space

Reimplemented from ZVision::Control.

◆ onMouseDown()

bool ZVision::PaintControl::onMouseDown ( const Common::Point screenSpacePos,
const Common::Point backgroundImageSpacePos 
)
overridevirtual
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::PaintControl::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.

◆ process()

bool ZVision::PaintControl::process ( uint32  deltaTimeInMillis)
inlineoverridevirtual

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: