Entity Properties |
The Entity type exposes the following members.
Name | Description | |
---|---|---|
Anchor |
Set / get anchor.
| |
Background |
Optional background entity that will not respond to events and will always be rendered right behind this entity.
| |
Children |
Get / set children list.
| |
Draggable |
Is the entity draggable (eg can a user grab it and drag it around).
| |
EntityDefaultSize |
Return the default size for this entity.
| |
FillColor |
Entity fill color - this is just a sugarcoat to access the default fill color style property.
| |
InternalDestRect |
Get internal destination rect.
| |
IsFocused | Does this entity or one of its children currently focused? | |
IsMouseDown |
Return if the mouse is currently pressing on this entity (eg over it and left mouse button is down).
| |
IsMouseOver |
Return if the mouse is currently over this entity (regardless of whether or not mouse button is down).
| |
MaxSize |
If defined, will limit the maximum size of this entity when calculating size.
This is especially useful for entities with size that depends on their parent entity size, for example
if you define an entity to take 20% of its parent space but can't be more than 200 pixels width.
| |
MinSize |
If defined, will limit the minimum size of this entity when calculating size.
This is especially useful for entities with size that depends on their parent entity size, for example
if you define an entity to take 20% of its parent space but can't be less than 200 pixels width.
| |
Offset |
Set / get offset.
| |
Opacity |
Entity fill color opacity - this is just a sugarcoat to access the default fill color alpha style property.
| |
OutlineColor |
Entity outline color - this is just a sugarcoat to access the default outline color style property.
| |
OutlineOpacity |
Entity outline color opacity - this is just a sugarcoat to access the default outline color alpha style property.
| |
OutlineWidth |
Entity outline width - this is just a sugarcoat to access the default outline color style property.
| |
Padding |
Entity padding - this is just a sugarcoat to access the default padding style property.
| |
Parent |
Get the direct parent of this entity.
| |
RawStyleSheet |
Get / set raw stylesheet.
| |
Scale |
Entity scale - this is just a sugarcoat to access the default scale style property.
| |
ShadowColor |
Entity shadow color - this is just a sugarcoat to access the default shadow color style property.
| |
ShadowOffset |
Entity shadow offset - this is just a sugarcoat to access the default shadow offset style property.
| |
ShadowScale |
Entity shadow scale - this is just a sugarcoat to access the default shadow scale style property.
| |
Size |
Entity current size property.
| |
SpaceAfter |
Extra space (in pixels) to reserve *after* this entity when using Auto Anchors.
| |
SpaceBefore |
Extra space (in pixels) to reserve *before* this entity when using Auto Anchors.
| |
State |
Current entity state (default / mouse hover / mouse down..).
| |
Visible |
Set / get visibility.
|