Winter Cardinal UI - v0.442.0 / EShapeButtonRuntimeAction

Class: EShapeButtonRuntimeAction

A base class of action runtimes.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EShapeButtonRuntimeAction(runtime): EShapeButtonRuntimeAction

Parameters

Name Type
runtime EShapeRuntime

Returns

EShapeButtonRuntimeAction

Overrides

EShapeActionRuntimeBase.constructor

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:42

Properties

_fillAlpha

Protected Readonly _fillAlpha: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:19


_fillAlphaDisabled

Protected Readonly _fillAlphaDisabled: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:20


_fillColor

Protected Readonly _fillColor: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:14


_fillColorDisabled

Protected Readonly _fillColorDisabled: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:15


_fillColorHovered

Protected Readonly _fillColorHovered: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:17


_fillColorPressed

Protected Readonly _fillColorPressed: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:16


_strokeAlpha

Protected Readonly _strokeAlpha: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:27


_strokeAlphaDisabled

Protected Readonly _strokeAlphaDisabled: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:28


_strokeColor

Protected Readonly _strokeColor: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:22


_strokeColorDisabled

Protected Readonly _strokeColorDisabled: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:23


_strokeColorHovered

Protected Readonly _strokeColorHovered: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:25


_strokeColorPressed

Protected Readonly _strokeColorPressed: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:24


_textAlpha

Protected Readonly _textAlpha: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:33


_textAlphaDisabled

Protected Readonly _textAlphaDisabled: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:34


_textColor

Protected Readonly _textColor: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:30


_textColorDisabled

Protected Readonly _textColorDisabled: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:31


_textOutlineAlpha

Protected Readonly _textOutlineAlpha: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:39


_textOutlineAlphaDisabled

Protected Readonly _textOutlineAlphaDisabled: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:40


_textOutlineColor

Protected Readonly _textOutlineColor: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:36


_textOutlineColorDisabled

Protected Readonly _textOutlineColorDisabled: number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:37


reset

Readonly reset: number

Inherited from

EShapeActionRuntimeBase.reset

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:16

Methods

execute

execute(shape, runtime, time): void

Called to execute this action for the given shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
time number a current time

Returns

void

Overrides

EShapeActionRuntimeBase.execute

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:106


getCursor

getCursor(state): string

Parameters

Name Type
state EShapeStateSet

Returns

string

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:192


getFillAlpha

getFillAlpha(state): number

Parameters

Name Type
state EShapeStateSet

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:132


getFillColor

getFillColor(state): number

Parameters

Name Type
state EShapeStateSet

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:120


getStrokeAlpha

getStrokeAlpha(state): number

Parameters

Name Type
state EShapeStateSet

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:152


getStrokeColor

getStrokeColor(state): number

Parameters

Name Type
state EShapeStateSet

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:140


getTextAlpha

getTextAlpha(state): number

Parameters

Name Type
state EShapeStateSet

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:168


getTextColor

getTextColor(state): number

Parameters

Name Type
state EShapeStateSet

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:160


getTextOutlineAlpha

getTextOutlineAlpha(state): number

Parameters

Name Type
state EShapeStateSet

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:184


getTextOutlineColor

getTextOutlineColor(state): number

Parameters

Name Type
state EShapeStateSet

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:176


initialize

initialize(shape, runtime): void

Called to initialize this action runtime for the given shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime

Returns

void

Inherited from

EShapeActionRuntimeBase.initialize

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:22


onBlur

onBlur(shape, runtime): void

Called when a shape losees a focuse.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime

Returns

void

Inherited from

EShapeActionRuntimeBase.onBlur

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:38


onClick

onClick(shape, runtime, e): void

Called when a shape is clicked.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent | InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onClick

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:42


onDblClick

onDblClick(shape, runtime, e, manager): void

Called when a shape is double clicked.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e MouseEvent | TouchEvent an event object
manager InteractionManager the interaction manager

Returns

void

Inherited from

EShapeActionRuntimeBase.onDblClick

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:46


onDown

onDown(shape, runtime, e): void

Called when a pointer or a key get pressed on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent | InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onDown

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:59


onDowning

onDowning(shape, runtime, e): void

Called when a pointer or a key are about to be pressed on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent | InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onDowning

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:55


onFocus

onFocus(shape, runtime): void

Called when a shape get focused.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime

Returns

void

Inherited from

EShapeActionRuntimeBase.onFocus

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:34


onKeyDown

onKeyDown(shape, runtime, e): void

Called when a key is pressed on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onKeyDown

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:91


onKeyUp

onKeyUp(shape, runtime, e): void

Called when a key is released on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onKeyUp

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:95


onMove

onMove(shape, runtime, e): void

Called when a pointer is moved on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onMove

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:63


onOut

onOut(shape, runtime, e): void

Called when a pointer gets out of a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onOut

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:71


onOver

onOver(shape, runtime, e): void

Called when a pointer gets on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onOver

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:67


onPressed

onPressed(shape, runtime, e): void

Called when a shape is pressed.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent | InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onPressed

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:83


onRender

onRender(shape, runtime, time, renderer): void

Called when a shape get rendered.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
time number -
renderer Renderer -

Returns

void

Inherited from

EShapeActionRuntimeBase.onRender

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:127


onResize

onResize(shape, runtime): void

Called when the shape size is changed.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime

Returns

void

Inherited from

EShapeActionRuntimeBase.onResize

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:30


onRightClick

onRightClick(shape, runtime, e): void

Called when a shape is right-clicked.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onRightClick

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:99


onRightDown

onRightDown(shape, runtime, e): void

Called when a secondary button gets pressed on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onRightDown

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:107


onRightDowning

onRightDowning(shape, runtime, e): void

Called when a secondary button is about to be pressed on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onRightDowning

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:103


onRightPressed

onRightPressed(shape, runtime, e): void

Called when a secondary button is pressed on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onRightPressed

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:119


onRightUnpressed

onRightUnpressed(shape, runtime, e): void

Called when a secondary button is released on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onRightUnpressed

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:123


onRightUp

onRightUp(shape, runtime, e): void

Called when a secondary button gets released on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onRightUp

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:111


onRightUpOutside

onRightUpOutside(shape, runtime, e): void

Called when a secondary button get released outside of a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onRightUpOutside

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:115


onUnpressed

onUnpressed(shape, runtime, e): void

Called when a shape is released.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent | InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onUnpressed

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:87


onUp

onUp(shape, runtime, e): void

Called when a pointer or a key get released on a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent | InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onUp

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:75


onUpOutside

onUpOutside(shape, runtime, e): void

Called when a pointer or a key get released outside of a shape.

Parameters

Name Type Description
shape EShape a shape
runtime EShapeRuntime a runtime
e KeyboardEvent | InteractionEvent an event object

Returns

void

Inherited from

EShapeActionRuntimeBase.onUpOutside

Defined in

src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts:79


toOnHovered

toOnHovered(color): number

Parameters

Name Type
color number

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts:95