Winter Cardinal UI - v0.442.0 / DColorRecent

Class: DColorRecent

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DColorRecent(recents, capacity): DColorRecent

Parameters

Name Type
recents DColorAndAlpha[]
capacity number

Returns

DColorRecent

Overrides

utils.EventEmitter.constructor

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:18

Properties

_capacity

Protected _capacity: number

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:16


_recents

Protected _recents: DColorAndAlpha[]

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:15

Methods

add

add(colorAndAlpha): this

Parameters

Name Type
colorAndAlpha DColorAndAlpha

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:67


addAll

addAll(colorAndAlphas): this

Parameters

Name Type
colorAndAlphas DColorAndAlpha[]

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:80


addListener

addListener(event, fn, context?): this

Alias method for on

Parameters

Name Type
event string | symbol
fn Function
context? any

Returns

this

Inherited from

utils.EventEmitter.addListener

Defined in

node_modules/pixi.js/pixi.js.d.ts:25495


clear

clear(): this

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:58


clearAndAddAll

clearAndAddAll(colorAndAlphas): this

Parameters

Name Type
colorAndAlphas DColorAndAlpha[]

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:99


contains

contains(colorAndAlpha): boolean

Parameters

Name Type
colorAndAlpha DColorAndAlpha

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:47


emit

emit(event, ...args): boolean

Calls each of the listeners registered for a given event.

Parameters

Name Type Description
event string | symbol The event name.
...args any[] Arguments that are passed to registered listeners

Returns

boolean

true if the event had listeners, else false.

Inherited from

utils.EventEmitter.emit

Defined in

node_modules/pixi.js/pixi.js.d.ts:25441


eventNames

eventNames(): (string | symbol)[]

Return an array listing the events for which the emitter has registered listeners.

Returns

(string | symbol)[]

Inherited from

utils.EventEmitter.eventNames

Defined in

node_modules/pixi.js/pixi.js.d.ts:25415


get

get(index): null | DColorAndAlpha

Parameters

Name Type
index number

Returns

null | DColorAndAlpha

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:25


listenerCount

listenerCount(event): number

Return the number of listeners listening to a given event.

Parameters

Name Type Description
event string | symbol The event name.

Returns

number

Inherited from

utils.EventEmitter.listenerCount

Defined in

node_modules/pixi.js/pixi.js.d.ts:25432


listeners

listeners(event): Function[]

Return the listeners registered for a given event.

Parameters

Name Type Description
event string | symbol The event name.

Returns

Function[]

Inherited from

utils.EventEmitter.listeners

Defined in

node_modules/pixi.js/pixi.js.d.ts:25424


off

off(event, fn?, context?, once?): this

Alias method for removeListener

Parameters

Name Type
event string | symbol
fn? Function
context? any
once? boolean

Returns

this

Inherited from

utils.EventEmitter.off

Defined in

node_modules/pixi.js/pixi.js.d.ts:25489


on

on(event, fn, context?): this

Add a listener for a given event.

Parameters

Name Type Description
event string | symbol The event name.
fn Function The listener function.
context? any The context to invoke the listener with.

Returns

this

this.

Inherited from

utils.EventEmitter.on

Defined in

node_modules/pixi.js/pixi.js.d.ts:25452


once

once(event, fn, context?): this

Add a one-time listener for a given event.

Parameters

Name Type Description
event string | symbol The event name.
fn Function The listener function.
context? any The context to invoke the listener with.

Returns

this

this.

Inherited from

utils.EventEmitter.once

Defined in

node_modules/pixi.js/pixi.js.d.ts:25463


pop

pop(): null | DColorAndAlpha

Returns

null | DColorAndAlpha

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:130


removeAllListeners

removeAllListeners(event?): this

Remove all listeners, or those of the specified event.

Parameters

Name Type Description
event? string | symbol The event name.

Returns

this

this.

Inherited from

utils.EventEmitter.removeAllListeners

Defined in

node_modules/pixi.js/pixi.js.d.ts:25483


removeListener

removeListener(event, fn?, context?, once?): this

Remove the listeners of a given event.

Parameters

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.

Returns

this

this.

Inherited from

utils.EventEmitter.removeListener

Defined in

node_modules/pixi.js/pixi.js.d.ts:25475


set

set(index, colorAndAlpha): null | DColorAndAlpha

Parameters

Name Type
index number
colorAndAlpha DColorAndAlpha

Returns

null | DColorAndAlpha

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:33


size

size(): number

Returns

number

Defined in

src/main/typescript/wcardinal/ui/d-color-recent.ts:140