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
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
Defined in
src/components/gui/core/GUIQuad.ts:41
imageType
• get
imageType(): ImageType
Returns
Defined in
src/components/gui/core/GUIQuad.ts:61
• set
imageType(value
): void
Parameters
Name | Type |
---|---|
value | ImageType |
Returns
void
Defined in
src/components/gui/core/GUIQuad.ts:65
color
• get
color(): Color
Returns
Defined in
src/components/gui/core/GUIQuad.ts:70
• set
color(value
): void
Parameters
Name | Type |
---|---|
value | Color |
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
Name | Type |
---|---|
value | boolean |
Returns
void
Defined in
src/components/gui/core/GUIQuad.ts:84
sprite
• get
sprite(): GUISprite
Returns
Defined in
src/components/gui/core/GUIQuad.ts:91
• set
sprite(value
): void
Parameters
Name | Type |
---|---|
value | GUISprite |
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
right
• 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
Name | Type |
---|---|
quad | GUIQuad |
Returns
void
Defined in
src/components/gui/core/GUIQuad.ts:46
spawnQuad
▸ spawnQuad(): GUIQuad
Returns
Defined in
src/components/gui/core/GUIQuad.ts:56
setSize
▸ setSize(width
, height
): void
Parameters
Name | Type |
---|---|
width | number |
height | number |
Returns
void
Defined in
src/components/gui/core/GUIQuad.ts:118
setXY
▸ setXY(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Defined in
src/components/gui/core/GUIQuad.ts:124
setAttrChange
▸ setAttrChange(attr
): void
Parameters
Name | Type |
---|---|
attr | GUIQuadAttrEnum |
Returns
void
Defined in
src/components/gui/core/GUIQuad.ts:130
applyTransform
▸ applyTransform(transform
): this
Parameters
Name | Type |
---|---|
transform | UITransform |
Returns
this
Defined in
src/components/gui/core/GUIQuad.ts:133
writeToGeometry
▸ writeToGeometry(guiGeometry
, transform
): this
Parameters
Name | Type |
---|---|
guiGeometry | GUIGeometry |
transform | UITransform |
Returns
this