VISU - PHP Game Framework

ScrollSignal extends Signal
in package

Table of Contents

Properties

$window  : Window
The window that received the event
$x  : float
The scroll offset along the x-axis
$y  : float
The scroll offset along the y-axis

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

$x read-only

The scroll offset along the x-axis

public float $x

$y read-only

The scroll offset along the y-axis

public float $y

Methods

__construct()

Constructor

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

The window that received the event

$x : float

The scroll offset along the x-axis

$y : float

The scroll offset along the y-axis

__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