CharModSignal
extends Signal
in package
Table of Contents
Properties
- $codepoint : int
- The Unicode code point of the character
- $mods : int
- Bit field describing which modifier keys were held down
- $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
$mods read-only
Bit field describing which modifier keys were held down
public
int
$mods
$window read-only
The window that received the event
public
Window
$window
Methods
__construct()
Constructor
public
__construct(Window $window, int $codepoint, int $mods) : mixed
Parameters
- $window : Window
-
The window that received the event
- $codepoint : int
-
The Unicode code point of the character
- $mods : int
-
Bit field describing which modifier keys were held down
getString()
Returns the received character as a string
public
getString([null|string $encoding = null ]) : string
Parameters
- $encoding : null|string = null
Return values
stringisPropagationStopped()
Has the propagation been stopped?
public
isPropagationStopped() : bool
Return values
boolstopPropagation()
Stop the propagation of the signal
public
stopPropagation() : void