Winter Cardinal UI - v0.442.0 / DApplicationLayerOptions

Class: DApplicationLayerOptions

DApplicationLayer options

Table of contents

Constructors

Methods

Constructors

constructor

new DApplicationLayerOptions(options): DApplicationLayerOptions

Parameters

Name Type
options DApplicationLayerOptionsOptions

Returns

DApplicationLayerOptions

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:52

Methods

getAntialias

getAntialias(): boolean

Returns an antialias setting. The default antialias setting is false.

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:267


getBackgroundColor

getBackgroundColor(): number

Returns a background color.

Returns

number

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:249


getHeight

getHeight(): number

Returns a canvas height.

Returns

number

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:188


getPadding

getPadding(): DPadding

Returns padding sizes. The default padding size is 6.

Returns

DPadding

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:225


getPixiApplicationOptions

getPixiApplicationOptions(): PixiApplicationOptions

Returns

PixiApplicationOptions

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:288


getRootElement

getRootElement(): HTMLElement

Returns a root element. HTMLCanvasElement and other DOM elements are created in this element. The default root element is document.body.

Returns

HTMLElement

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:125


getWidth

getWidth(): number

Returns a canvas width.

Returns

number

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:152


isHeightFixed

isHeightFixed(): boolean

Returns true if the height is fixed.

Returns

boolean

true if the height is fixed.

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:207


isOverlay

isOverlay(): boolean

Returns true if a layer is supposed to be an overlay layer.

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:284


isWidthFixed

isWidthFixed(): boolean

Returns true if the width is fixed.

Returns

boolean

true if the width is fixed.

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:171


setAntialias

setAntialias(antialias): this

Sets an antialias setting.

Parameters

Name Type Description
antialias boolean new antialias setting

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:276


setBackgroundColor

setBackgroundColor(color): this

Sets a background color.

Parameters

Name Type Description
color number new background color

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:258


setHeight

setHeight(height): this

Sets a canvas height.

Parameters

Name Type Description
height number new canvas height

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:197


setHeightFixed

setHeightFixed(fixed): this

Makes the canvas height fixed.

Parameters

Name Type Description
fixed boolean true to make the canvas height fixed

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:216


setPadding

setPadding(left, top, right, bottom): this

Sets padding sizes.

Parameters

Name Type Description
left number new left padding
top number new top padding
right number new right padding
bottom number new bottom padding

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:237


setRootElement

setRootElement(root, updateWidthAndHeight?): this

Sets a root element and updates the canvas width and height if updateWidthAndHeight is not false.

Parameters

Name Type Description
root HTMLElement new root element
updateWidthAndHeight? boolean false to preserve the canvas width / height

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:136


setWidth

setWidth(width): this

Sets a canvas width.

Parameters

Name Type Description
width number new canvas width

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:161


setWidthFixed

setWidthFixed(fixed): this

Makes the canvas width fixed.

Parameters

Name Type Description
fixed boolean true to make the canvas width fixed

Returns

this

Defined in

src/main/typescript/wcardinal/ui/d-application-layer-options.ts:180