class
GraphicsItem
public abstract class GraphicsItem Constructors
GraphicsItem(GraphicsItem parent) Properties
| Name | Type | Description |
|---|---|---|
Children | IEnumerable<GraphicsItem> | |
GraphicsView | GraphicsView | |
Parent | GraphicsItem | |
IsValid | Boolean | |
Position | Vector2 | |
ViewPosition | Vector2 | |
Center | Vector2 | |
LocalRect | Rect | |
SceneRect | Rect | |
Rotation | Single | |
Scale | Single | |
Movable | Boolean | |
ClipChildren | Boolean | |
Clip | Boolean | |
Tooltip | String | |
ToolTip | String | |
Selected | Boolean | |
Selectable | Boolean | |
Focusable | Boolean | Gets keyboard input |
HoverEvents | Boolean | |
ZIndex | Single | |
BoundingRect virtual | Rect | The outer bounds of the item as a rectangle; all painting must be restricted to inside an item's bounding rect. |
Size virtual | Vector2 | |
Width | Single | |
Height | Single | |
HandlePosition virtual | Vector2 | 0,0 means top left, 1,1 means bottom right |
Hovered | Boolean | |
Cursor | CursorShape |
Methods
Void Destroy() Void Update() Void PrepareGeometryChange() Usually called before resizing items so they paint properly.
Vector2 ToItem(GraphicsItem item, Vector2 pos) Vector2 FromItem(GraphicsItem item, Vector2 pos) Builder Bind(String targetName) virtual Boolean Contains(Vector2 localPos)