π Geometry
Geometry is a static class that provides information about widgets positions and sizes.
Last updated
Geometry is a static class that provides information about widgets positions and sizes.
Last updated
This is a static class. Access brush methods with . instead of :
It's not possible to spawn new instances.
Translates absolute coordinates into local coordinates.
β Returns Vector2D.
Type | Parameter | Description |
---|---|---|
Translates local coordinates into absolute coordinates.
β Returns Vector2D.
Type | Parameter | Description |
---|---|---|
Translates local coordinate of the geometry provided into local viewport coordinates.
β Returns Vector2D (pixel position).
β Returns Vector2D (viewport position).
Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.
β Returns boolean.
Translates a screen position in pixels into the local space of a widget with the given geometry.
If IncludeWindowPosition is true, then this method will also remove the game window's position (useful when in windowed mode).
β Returns boolean.
Returns the local top/left of the geometry in local coordinates.
β Returns Vector2D.
Returns the size of the geometry in local space.
β Returns Vector2D.
Returns the size of the geometry in absolute space.
β Returns Vector2D.
Type | Parameter | Description |
---|---|---|
Type | Parameter | Description |
---|---|---|
Type | Parameter | Description |
---|---|---|
Type | Parameter | Description |
---|---|---|
Type | Parameter | Description |
---|---|---|
Type | Parameter | Description |
---|---|---|
Widget
AbsoluteCoordinate
Widget
LocalCoordinate
Widget
LocalCoordinate
Widget
AbsoluteCoordinate
Widget
ScreenPosition
IncludeWindowPosition
Widget
Widget
Widget