VISU - PHP Game Framework

CursorPosSignal extends Signal
in package

Table of Contents

Properties

$offsetX  : float
The offset in x-direction since the last cursor position event
$offsetY  : float
The offset in y-direction since the last cursor position event
$window  : Window
The window that received the event
$x  : float
The new cursor x-coordinate, relative to the left edge of the content area
$y  : float
The new cursor y-coordinate, relative to the top edge of the content area

Methods

__construct()  : mixed
Constructor
__debugInfo()  : array<string, mixed>
Omits the window property from the debug output
isPropagationStopped()  : bool
Has the propagation been stopped?
stopPropagation()  : void
Stop the propagation of the signal

Properties

$offsetX read-only

The offset in x-direction since the last cursor position event

public float $offsetX

$offsetY read-only

The offset in y-direction since the last cursor position event

public float $offsetY

$x read-only

The new cursor x-coordinate, relative to the left edge of the content area

public float $x

$y read-only

The new cursor y-coordinate, relative to the top edge of the content area

public float $y

Methods

__construct()

Constructor

public __construct(Window $window, float $x, float $y, float $offsetX, float $offsetY) : mixed
Parameters
$window : Window

The window that received the event

$x : float

The new cursor x-coordinate, relative to the left edge of the content area

$y : float

The new cursor y-coordinate, relative to the top edge of the content area

$offsetX : float

The offset in x-direction since the last cursor position event

$offsetY : float

The offset in y-direction since the last cursor position event

__debugInfo()

Omits the window property from the debug output

public __debugInfo() : array<string, mixed>
Return values
array<string, mixed>

isPropagationStopped()

Has the propagation been stopped?

public isPropagationStopped() : bool
Return values
bool

stopPropagation()

Stop the propagation of the signal

public stopPropagation() : void

        
On this page

Search results