Actor
| Property | Type | Writable | Description |
|---|---|---|---|
Name | string | nil | Read-only | Name of this actor, if set ("id" in LML). |
Parent | Read-only | Parent actor or nil if it has no parent. | |
Width | number | Writable | Effective width of this actor.null |
Height | number | Writable | Effective height of this actor.null |
MinWidth | number | Read-only | Minimum width of the actor, if applicable. |
MinHeight | number | Read-only | Minimum height of the actor, if applicable. |
PreferredWidth | number | Read-only | Preferred width of the actor, if applicable. |
PreferredHeight | number | Read-only | Preferred height of the actor, if applicable. |
MaxWidth | number | Read-only | Maximum width of the actor, if applicable. |
MaxHeight | number | Read-only | Maximum height of the actor, if applicable. |
| Function |
|---|
Invalidate() |
Invalidates the actor's layout if it implements Layout interface.
Forces the actor to recalculate its layout on the next frame. |
SetStyle(skin: Skin, styleName: string) |
Sets the style of the actor using a skin and style name. |
Focus() |
Grants keyboard focus to this actor. |