Class: UITextField
The textField component for gui
Hierarchy
↳
UITextField
Constructors
Properties
Accessors
- eventDispatcher
- isStart
- transform
- enable
- uiTransform
- visible
- mainQuads
- originSize
- font
- fontSize
- text
- color
- alignment
- lineSpacing
Methods
- stop
- onEnable
- onDisable
- onUpdate
- onLateUpdate
- onBeforeUpdate
- onCompute
- onGraphic
- onParentChange
- onAddChild
- onRemoveChild
- beforeDestroy
- init
- destroy
- start
- setShadowRenderer
- setShadowSource
- getShadowRender
- cloneTo
- copyComponent
Constructors
constructor
• new UITextField(): UITextField
Returns
Overrides
Defined in
src/components/gui/uiComponents/UITextField.ts:19
Properties
object3D
• object3D: Object3D
= null
owner object3D
Inherited from
Defined in
src/components/ComponentBase.ts:17
isDestroyed
• Optional
isDestroyed: boolean
Inherited from
Defined in
src/components/ComponentBase.ts:38
isUIShadow
• Optional
isUIShadow: boolean
Inherited from
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:12
isShadowless
• Optional
isShadowless: boolean
Inherited from
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:13
needUpdateShadow
• needUpdateShadow: boolean
Inherited from
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:14
Accessors
eventDispatcher
• get
eventDispatcher(): CEventDispatcher
Returns
Inherited from
UIRenderAble.eventDispatcher
Defined in
src/components/ComponentBase.ts:23
• set
eventDispatcher(value
): void
Parameters
Name | Type |
---|---|
value | CEventDispatcher |
Returns
void
Inherited from
UIRenderAble.eventDispatcher
Defined in
src/components/ComponentBase.ts:28
isStart
• get
isStart(): boolean
Returns
boolean
Inherited from
UIRenderAble.isStart
Defined in
src/components/ComponentBase.ts:40
transform
• get
transform(): Transform
Return the Transform component attached to the Object3D.
Returns
Inherited from
UIRenderAble.transform
Defined in
src/components/ComponentBase.ts:47
enable
• get
enable(): boolean
Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.
Returns
boolean
Inherited from
UIRenderAble.enable
Defined in
src/components/ComponentBase.ts:68
• set
enable(value
): void
Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
UIRenderAble.enable
Defined in
src/components/ComponentBase.ts:54
uiTransform
• get
uiTransform(): UITransform
Returns
Inherited from
UIRenderAble.uiTransform
Defined in
src/components/gui/uiComponents/UIComponentBase.ts:16
visible
• get
visible(): boolean
Returns
boolean
Inherited from
UIRenderAble.visible
Defined in
src/components/gui/uiComponents/UIComponentBase.ts:20
• set
visible(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
UIRenderAble.visible
Defined in
src/components/gui/uiComponents/UIComponentBase.ts:24
mainQuads
• get
mainQuads(): GUIQuad
[]
Returns
GUIQuad
[]
Inherited from
UIRenderAble.mainQuads
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:44
originSize
• get
originSize(): number
Returns
number
Defined in
src/components/gui/uiComponents/UITextField.ts:40
font
• get
font(): string
Returns
string
Defined in
src/components/gui/uiComponents/UITextField.ts:44
• set
font(value
): void
Parameters
Name | Type |
---|---|
value | string |
Returns
void
Defined in
src/components/gui/uiComponents/UITextField.ts:48
fontSize
• get
fontSize(): number
Returns
number
Defined in
src/components/gui/uiComponents/UITextField.ts:52
• set
fontSize(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/components/gui/uiComponents/UITextField.ts:56
text
• get
text(): string
Returns
string
Defined in
src/components/gui/uiComponents/UITextField.ts:63
• set
text(value
): void
Parameters
Name | Type |
---|---|
value | string |
Returns
void
Defined in
src/components/gui/uiComponents/UITextField.ts:67
color
• get
color(): Color
Returns
Defined in
src/components/gui/uiComponents/UITextField.ts:117
• set
color(value
): void
Parameters
Name | Type |
---|---|
value | Color |
Returns
void
Defined in
src/components/gui/uiComponents/UITextField.ts:121
alignment
• get
alignment(): TextAnchor
Returns
Defined in
src/components/gui/uiComponents/UITextField.ts:129
• set
alignment(value
): void
Parameters
Name | Type |
---|---|
value | TextAnchor |
Returns
void
Defined in
src/components/gui/uiComponents/UITextField.ts:133
lineSpacing
• get
lineSpacing(): number
Returns
number
Defined in
src/components/gui/uiComponents/UITextField.ts:140
• set
lineSpacing(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/components/gui/uiComponents/UITextField.ts:144
Methods
stop
▸ stop(): void
Returns
void
Inherited from
Defined in
src/components/ComponentBase.ts:114
onEnable
▸ onEnable(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:115
onDisable
▸ onDisable(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:116
onUpdate
▸ onUpdate(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:117
onLateUpdate
▸ onLateUpdate(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:118
onBeforeUpdate
▸ onBeforeUpdate(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:119
onCompute
▸ onCompute(view?
, command?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
command? | GPUCommandEncoder |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:120
onGraphic
▸ onGraphic(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:121
onParentChange
▸ onParentChange(lastParent?
, currentParent?
): any
Parameters
Name | Type |
---|---|
lastParent? | Object3D |
currentParent? | Object3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:122
onAddChild
▸ onAddChild(child
): any
Parameters
Name | Type |
---|---|
child | Object3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:123
onRemoveChild
▸ onRemoveChild(child
): any
Parameters
Name | Type |
---|---|
child | Object3D |
Returns
any
Inherited from
Defined in
src/components/ComponentBase.ts:124
beforeDestroy
▸ beforeDestroy(force?
): void
before release this component, object refrences are not be set null now.
Parameters
Name | Type |
---|---|
force? | boolean |
Returns
void
Inherited from
Defined in
src/components/ComponentBase.ts:200
init
▸ init(param?
): void
Parameters
Name | Type |
---|---|
param? | any |
Returns
void
Inherited from
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:16
destroy
▸ destroy(): void
release this component
Returns
void
Inherited from
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:21
start
▸ start(): void
Returns
void
Inherited from
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:30
setShadowRenderer
▸ setShadowRenderer(value
): void
Parameters
Name | Type |
---|---|
value | UIRenderAble |
Returns
void
Inherited from
UIRenderAble.setShadowRenderer
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:48
setShadowSource
▸ setShadowSource(value
): void
Parameters
Name | Type |
---|---|
value | UIRenderAble |
Returns
void
Inherited from
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:52
getShadowRender
▸ getShadowRender(): UIRenderAble
Returns
Inherited from
Defined in
src/components/gui/uiComponents/UIRenderAble.ts:56
cloneTo
▸ cloneTo(obj
): void
clone component data to target object3D
Parameters
Name | Type | Description |
---|---|---|
obj | Object3D | target object3D |
Returns
void
Overrides
Defined in
src/components/gui/uiComponents/UITextField.ts:23
copyComponent
▸ copyComponent(from
): this
Parameters
Name | Type |
---|---|
from | this |
Returns
this