|
QuadUI 1.2.9 public beta
Run-time API for QuadUI
|
Public Types | |
| enum | Justification { TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight } |
Public Attributes | |
| Justification | justification = PaddedElement2D.Justification.TopLeft |
| Vector2 | padding |
Protected Member Functions | |
| virtual void | OnResolutionChange () |
Attach this to any Element2D or ComplexComponent2D and whenever the OnResolutionChange message is received it will automatically reposition it based on the provided padding.
Note: This is based on 2 factors, first being the pivot point of your object, and second the provided justification. To explain, it wouldn't make sense to make a Button2D with a Top-Left pivot justified Right as it will always be off screen!
| virtual void PaddedElement2D.OnResolutionChange | ( | ) | [protected, virtual] |
Message received when QuadUI detects that the resolution has been changed.
| Justification PaddedElement2D.justification = PaddedElement2D.Justification.TopLeft |
Which of the 9 screen point are you basing your padding off of?
| Vector2 PaddedElement2D.padding |
Padding (in screen pixels) on x and y axis that will be taken account when positioning your object fluidly. Note: This is relative to your justification, as you are specifying a distance from your justifcation point.