VISU - PHP Game Framework

CharSignal extends Signal
in package

Table of Contents

Properties

$codepoint  : int
The Unicode code point of the character
$window  : Window
The window that received the event

Methods

__construct()  : mixed
Constructor
getString()  : string
Returns the received character as a string
isPropagationStopped()  : bool
Has the propagation been stopped?
stopPropagation()  : void
Stop the propagation of the signal

Properties

$codepoint read-only

The Unicode code point of the character

public int $codepoint

Methods

__construct()

Constructor

public __construct(Window $window, int $codepoint) : mixed
Parameters
$window : Window

The window that received the event

$codepoint : int

The Unicode code point of the character

getString()

Returns the received character as a string

public getString([null|string $encoding = null ]) : string
Parameters
$encoding : null|string = null
Return values
string

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