QuadUI 1.2.9 public beta
Run-time API for QuadUI

PaddedElement2D Class Reference

List of all members.

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 ()

Detailed Description

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!


Member Enumeration Documentation

Represents 9 points of the screen that an object will be anchored to.

Enumerator:
TopLeft 
TopCenter 
TopRight 
MiddleLeft 
MiddleCenter 
MiddleRight 
BottomLeft 
BottomCenter 
BottomRight 

Member Function Documentation

virtual void PaddedElement2D.OnResolutionChange ( ) [protected, virtual]

Message received when QuadUI detects that the resolution has been changed.


Member Data Documentation

Justification PaddedElement2D.justification = PaddedElement2D.Justification.TopLeft

Which of the 9 screen point are you basing your padding off of?

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.

 All Classes Functions Variables Enumerations Properties