Winter Cardinal UI - v0.457.0 / DMenuSidedSelection
| Name |
|---|
VALUE |
EventEmitter
↳ DMenuSidedSelection
• new DMenuSidedSelection<VALUE>(content, options?): DMenuSidedSelection<VALUE>
| Name |
|---|
VALUE |
| Name | Type |
|---|---|
content |
Container |
options? |
DMenuSidedSelectionOptions<any> |
DMenuSidedSelection<VALUE>
utils.EventEmitter.constructor
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:70
• Protected _content: Container
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:64
• Protected _filter: (item: null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>>) => boolean
▸ (item): boolean
| Name | Type |
|---|---|
item |
null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>> |
boolean
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:68
• Protected _isDirty: boolean
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:66
• Protected _item: null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>>
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:65
• Protected _type: DMenuSidedSelectionType
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:67
▸ add(item): void
| Name | Type |
|---|---|
item |
DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>> |
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:133
▸ 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
▸ clear(): void
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:167
▸ 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
▸ first(): null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>>
null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>>
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:94
▸ get(index): null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>>
| Name | Type |
|---|---|
index |
number |
null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>>
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:143
▸ getFilterDefault(): (item: null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>>) => boolean
fn
▸ (item): boolean
| Name | Type |
|---|---|
item |
null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>> |
boolean
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:172
▸ getIndex(index): null | number
| Name | Type |
|---|---|
index |
number |
null | number
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:148
▸ hasMenu(child): child is Object
| Name | Type |
|---|---|
child |
any |
child is Object
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:109
▸ isEmpty(): boolean
boolean
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:156
▸ listenerCount(event): number
Return the number of listeners listening to a given event.
| Name | Type | Description |
|---|---|---|
event |
string | symbol |
The event name. |
number
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
▸ remove(item): void
| Name | Type |
|---|---|
item |
DBase<DThemeBase, DBaseOptions<DThemeBase, any>> |
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:160
▸ removeAllListeners(event?): this
Remove all listeners, or those of the specified event.
| Name | Type | Description |
|---|---|---|
event? |
string | symbol |
The event name. |
this
this.
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.
utils.EventEmitter.removeListener
node_modules/pixi.js/pixi.js.d.ts:25475
▸ set(item): void
| Name | Type |
|---|---|
item |
DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>> |
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:138
▸ setState(item, mode, isOn): void
| Name | Type |
|---|---|
item |
null | DBase<DThemeBase, DBaseOptions<DThemeBase, any>> |
mode |
DMenuSidedSelectionType |
isOn |
boolean |
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:189
▸ set_(item, emit): void
| Name | Type |
|---|---|
item |
null | DMenuItemBase<VALUE, DThemeMenuItemBase, DMenuItemBaseOptions<VALUE, DThemeMenuItemBase>> |
emit |
boolean |
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:176
▸ size(): number
number
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:152
▸ toDirty(): void
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:98
▸ update(): void
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:102
▸ update_(root): void
| Name | Type |
|---|---|
root |
Container |
void
src/main/typescript/wcardinal/ui/d-menu-sided-selection.ts:113