Winter Cardinal UI - v0.442.0 / DControllerFocusImpl
EventEmitter
↳ DControllerFocusImpl
• new DControllerFocusImpl(): DControllerFocusImpl
utils.EventEmitter.constructor
▸ addListener(event
, fn
, context?
): this
Alias method for on
Name | Type |
---|---|
event |
string | symbol |
fn |
Function |
context? |
any |
this
utils.EventEmitter.addListener
node_modules/pixi.js/pixi.js.d.ts:25495
▸ blur(focusable
): null
| DFocusable
Name | Type |
---|---|
focusable |
null | DFocusable |
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:36
▸ clear(): null
| DFocusable
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:46
▸ emit(event
, ...args
): boolean
Calls each of the listeners registered for a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
...args |
any [] |
Arguments that are passed to registered listeners |
boolean
true
if the event had listeners, else false
.
utils.EventEmitter.emit
node_modules/pixi.js/pixi.js.d.ts:25441
▸ eventNames(): (string
| symbol
)[]
Return an array listing the events for which the emitter has registered listeners.
(string
| symbol
)[]
utils.EventEmitter.eventNames
node_modules/pixi.js/pixi.js.d.ts:25415
▸ find(target
, includesTarget
, includesTargetChildren
, direction
, root?
): null
| DFocusable
Searches a focusable and returns a firstly-found focusable. If no focusable is found, returns null. The search starts from the given target in the depth-first manner. If the root is given, the search will be limited to the root’s children. The root itself will not be checked. This method assumes the root is the one of the parents of the given target.
Name | Type | Description |
---|---|---|
target |
DFocusableMightBe |
a target where a search starts at |
includesTarget |
boolean |
true to check the target itself |
includesTargetChildren |
boolean |
true to check the target’s children |
direction |
boolean |
true to search in the descending order |
root? |
unknown |
a root of a search |
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:74
▸ findNext(target
, includesTarget
, includesTargetChildren
): null
| DFocusable
Name | Type |
---|---|
target |
DFocusableMightBe |
includesTarget |
boolean |
includesTargetChildren |
boolean |
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:193
▸ findParent(mightBeFocusable
): null
| DFocusable
Returns the closest focusable parent of the specified target. If the specified target is focusable, returns the specified target.
Name | Type | Description |
---|---|---|
mightBeFocusable |
null | DFocusableMightBe |
the node a search starts from |
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:62
▸ findPrevious(target
, includesTarget
, includesTargetChildren
): null
| DFocusable
Name | Type |
---|---|
target |
DFocusableMightBe |
includesTarget |
boolean |
includesTargetChildren |
boolean |
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:230
▸ focus(focusable
): null
| DFocusable
Name | Type |
---|---|
focusable |
null | DFocusable |
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:17
▸ get(): null
| DFocusable
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:58
▸ isFocusReverse(target
): boolean
Name | Type |
---|---|
target |
any |
boolean
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:288
▸ isFocusRoot(target
, root
): target is DFocusable
Name | Type |
---|---|
target |
any |
root |
unknown |
target is DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:281
▸ isFocusable(target
): target is DFocusable
Name | Type |
---|---|
target |
any |
target is DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:267
▸ isFocusableContainer(target
): target is DFocusableContainer
Name | Type |
---|---|
target |
any |
target is DFocusableContainer
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:277
▸ listenerCount(event
): number
Return the number of listeners listening to a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
number
DControllerFocus.listenerCount
utils.EventEmitter.listenerCount
node_modules/pixi.js/pixi.js.d.ts:25432
▸ listeners(event
): Function
[]
Return the listeners registered for a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
Function
[]
utils.EventEmitter.listeners
node_modules/pixi.js/pixi.js.d.ts:25424
▸ off(event
, fn?
, context?
, once?
): this
Alias method for removeListener
Name | Type |
---|---|
event |
string | symbol |
fn? |
Function |
context? |
any |
once? |
boolean |
this
utils.EventEmitter.off
node_modules/pixi.js/pixi.js.d.ts:25489
▸ on(event
, fn
, context?
): this
Add a listener for a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
fn |
Function |
The listener function. |
context? |
any |
The context to invoke the listener with. |
this
this
.
utils.EventEmitter.on
node_modules/pixi.js/pixi.js.d.ts:25452
▸ once(event
, fn
, context?
): this
Add a one-time listener for a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
fn |
Function |
The listener function. |
context? |
any |
The context to invoke the listener with. |
this
this
.
utils.EventEmitter.once
node_modules/pixi.js/pixi.js.d.ts:25463
▸ removeAllListeners(event?
): this
Remove all listeners, or those of the specified event.
Name | Type | Description |
---|---|---|
event? |
string | symbol |
The event name. |
this
this
.
DControllerFocus.removeAllListeners
utils.EventEmitter.removeAllListeners
node_modules/pixi.js/pixi.js.d.ts:25483
▸ removeListener(event
, fn?
, context?
, once?
): this
Remove the listeners of a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
fn? |
Function |
Only remove the listeners that match this function. |
context? |
any |
Only remove the listeners that have this context. |
once? |
boolean |
Only remove one-time listeners. |
this
this
.
DControllerFocus.removeListener
utils.EventEmitter.removeListener
node_modules/pixi.js/pixi.js.d.ts:25475
▸ set(focusable
, isFocused
): null
| DFocusable
Name | Type |
---|---|
focusable |
null | DFocusable |
isFocused |
boolean |
null
| DFocusable
src/main/typescript/wcardinal/ui/d-controller-focus-impl.ts:50