Class: WidgetComponent
Common component classes hoisted to the top level too.
Extends
Constructors
Constructor
ts
new WidgetComponent(): WidgetComponent;Returns
WidgetComponent
Inherited from
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
alignBottom | public | boolean | undefined | - |
alignHorizontalCenter | public | boolean | undefined | - |
alignLeft | public | boolean | undefined | - |
alignMode | public | WidgetAlignMode | undefined | - |
alignRight | public | boolean | undefined | - |
alignTop | public | boolean | undefined | - |
alignVerticalCenter | public | boolean | undefined | - |
anchorTarget | public | WidgetAnchorTarget | undefined | - |
bottom | public | WidgetEdgeValue | undefined | - |
dirty | public | boolean | true | Component.dirty |
enabled | public | boolean | true | Component.enabled |
horizontalCenter | public | WidgetEdgeValue | undefined | - |
left | public | WidgetEdgeValue | undefined | - |
right | public | WidgetEdgeValue | undefined | - |
top | public | WidgetEdgeValue | undefined | - |
verticalCenter | public | WidgetEdgeValue | undefined | - |
Methods
SetAnchorTarget()
ts
SetAnchorTarget(target): void;Setter that accepts the Entity wrapper, a raw EntityId, the 'window' sentinel, or null. Internally we always store EntityId / 'window' / null so a destroyed Entity wrapper can't keep the component holding a stale reference.
Parameters
| Parameter | Type |
|---|---|
target | number | Entity | "window" | null |
Returns
void