Skip to content

Class: GUIQuad

The smallest unit in the GUI, basic information required for rendering a plane

Constructors

Properties

Accessors

Methods

Constructors

constructor

new GUIQuad(): GUIQuad

Returns

GUIQuad

Properties

x

x: number = 0

Defined in

src/components/gui/core/GUIQuad.ts:19


y

y: number = 0

Defined in

src/components/gui/core/GUIQuad.ts:20


z

z: number = 0

Defined in

src/components/gui/core/GUIQuad.ts:21


width

width: number = 1

Defined in

src/components/gui/core/GUIQuad.ts:22


height

height: number = 1

Defined in

src/components/gui/core/GUIQuad.ts:23


dirtyAttributes

dirtyAttributes: GUIQuadAttrEnum = GUIQuadAttrEnum.MAX

Defined in

src/components/gui/core/GUIQuad.ts:36


cacheTextureId

cacheTextureId: number = -1

Defined in

src/components/gui/core/GUIQuad.ts:38

Accessors

quadPool

get quadPool(): PoolNode<GUIQuad>

Returns

PoolNode<GUIQuad>

Defined in

src/components/gui/core/GUIQuad.ts:41


imageType

get imageType(): ImageType

Returns

ImageType

Defined in

src/components/gui/core/GUIQuad.ts:61

set imageType(value): void

Parameters

NameType
valueImageType

Returns

void

Defined in

src/components/gui/core/GUIQuad.ts:65


color

get color(): Color

Returns

Color

Defined in

src/components/gui/core/GUIQuad.ts:70

set color(value): void

Parameters

NameType
valueColor

Returns

void

Defined in

src/components/gui/core/GUIQuad.ts:74


visible

get visible(): boolean

Returns

boolean

Defined in

src/components/gui/core/GUIQuad.ts:80

set visible(value): void

Parameters

NameType
valueboolean

Returns

void

Defined in

src/components/gui/core/GUIQuad.ts:84


sprite

get sprite(): GUISprite

Returns

GUISprite

Defined in

src/components/gui/core/GUIQuad.ts:91

set sprite(value): void

Parameters

NameType
valueGUISprite

Returns

void

Defined in

src/components/gui/core/GUIQuad.ts:95


left

get left(): number

Returns

number

Defined in

src/components/gui/core/GUIQuad.ts:102


get right(): number

Returns

number

Defined in

src/components/gui/core/GUIQuad.ts:106


top

get top(): number

Returns

number

Defined in

src/components/gui/core/GUIQuad.ts:110


bottom

get bottom(): number

Returns

number

Defined in

src/components/gui/core/GUIQuad.ts:114

Methods

recycleQuad

recycleQuad(quad): void

Parameters

NameType
quadGUIQuad

Returns

void

Defined in

src/components/gui/core/GUIQuad.ts:46


spawnQuad

spawnQuad(): GUIQuad

Returns

GUIQuad

Defined in

src/components/gui/core/GUIQuad.ts:56


setSize

setSize(width, height): void

Parameters

NameType
widthnumber
heightnumber

Returns

void

Defined in

src/components/gui/core/GUIQuad.ts:118


setXY

setXY(x, y): void

Parameters

NameType
xnumber
ynumber

Returns

void

Defined in

src/components/gui/core/GUIQuad.ts:124


setAttrChange

setAttrChange(attr): void

Parameters

NameType
attrGUIQuadAttrEnum

Returns

void

Defined in

src/components/gui/core/GUIQuad.ts:130


applyTransform

applyTransform(transform): this

Parameters

NameType
transformUITransform

Returns

this

Defined in

src/components/gui/core/GUIQuad.ts:133


writeToGeometry

writeToGeometry(guiGeometry, transform): this

Parameters

NameType
guiGeometryGUIGeometry
transformUITransform

Returns

this

Defined in

src/components/gui/core/GUIQuad.ts:178