Beispiel #1
0
 /// <summary>
 /// Sets a getter Height value.
 /// </summary>
 /// <param name="height">The Height getter.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper GetterHeight(Func <int> height)
 {
     PM_Height     = UIPosMode.GETTER;
     Getter_Height = height;
     Dirty         = true;
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// Sets a getter Rotation value.
 /// </summary>
 /// <param name="rotation">The Rotation getter.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper GetterRotation(Func <float> rotation)
 {
     PM_Rot     = UIPosMode.GETTER;
     Getter_Rot = rotation;
     Dirty      = true;
     return(this);
 }
Beispiel #3
0
 /// <summary>
 /// Sets a getter X value.
 /// </summary>
 /// <param name="x">The X getter.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper GetterX(Func <int> x)
 {
     PM_X     = UIPosMode.GETTER;
     Getter_X = x;
     Dirty    = true;
     return(this);
 }
Beispiel #4
0
 /// <summary>
 /// Sets a getter Width value.
 /// </summary>
 /// <param name="width">The Width getter.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper GetterWidth(Func <int> width)
 {
     PM_Width     = UIPosMode.GETTER;
     Getter_Width = width;
     Dirty        = true;
     return(this);
 }
Beispiel #5
0
 /// <summary>
 /// Sets a constant Height value.
 /// </summary>
 /// <param name="height">The Height value.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper ConstantHeight(int height)
 {
     PM_Height    = UIPosMode.CONSTANT;
     Const_Height = height;
     Dirty        = true;
     return(this);
 }
Beispiel #6
0
 /// <summary>
 /// Sets a constant Rotation value.
 /// </summary>
 /// <param name="rotation">The Rotation value.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper ConstantRotation(float rotation)
 {
     PM_Rot    = UIPosMode.CONSTANT;
     Const_Rot = rotation;
     Dirty     = true;
     return(this);
 }
Beispiel #7
0
 /// <summary>
 /// Sets a constant Y value.
 /// </summary>
 /// <param name="y">The Y value.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper ConstantY(int y)
 {
     PM_Y    = UIPosMode.CONSTANT;
     Const_Y = y;
     Dirty   = true;
     return(this);
 }
Beispiel #8
0
 /// <summary>
 /// Sets a constant Width value.
 /// </summary>
 /// <param name="width">The Width value.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper ConstantWidth(int width)
 {
     PM_Width    = UIPosMode.CONSTANT;
     Const_Width = width;
     Dirty       = true;
     return(this);
 }
Beispiel #9
0
 /// <summary>
 /// Sets a constant X value.
 /// </summary>
 /// <param name="x">The X value.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper ConstantX(int x)
 {
     PM_X    = UIPosMode.CONSTANT;
     Const_X = x;
     Dirty   = true;
     return(this);
 }
Beispiel #10
0
 /// <summary>
 /// Sets a constant Width and Height value.
 /// </summary>
 /// <param name="width">The Width getter.</param>
 /// <param name="height">The Height getter.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper GetterWidthHeight(Func <int> width, Func <int> height)
 {
     PM_Width      = UIPosMode.GETTER;
     Getter_Width  = width;
     PM_Height     = UIPosMode.GETTER;
     Getter_Height = height;
     return(this);
 }
Beispiel #11
0
 /// <summary>
 /// Sets a getter X and Y value.
 /// </summary>
 /// <param name="x">The X getter.</param>
 /// <param name="y">The Y getter.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper GetterXY(Func <int> x, Func <int> y)
 {
     PM_X     = UIPosMode.GETTER;
     Getter_X = x;
     PM_Y     = UIPosMode.GETTER;
     Getter_Y = y;
     return(this);
 }
Beispiel #12
0
 /// <summary>
 /// Sets a constant Width and Height value.
 /// </summary>
 /// <param name="width">The Width value.</param>
 /// <param name="height">The Height value.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper ConstantWidthHeight(int width, int height)
 {
     PM_Width     = UIPosMode.CONSTANT;
     Const_Width  = width;
     PM_Height    = UIPosMode.CONSTANT;
     Const_Height = height;
     return(this);
 }
Beispiel #13
0
 /// <summary>
 /// Sets a constant X and Y value.
 /// </summary>
 /// <param name="x">The X value.</param>
 /// <param name="y">The Y value.</param>
 /// <returns>This object.</returns>
 public UIPositionHelper ConstantXY(int x, int y)
 {
     PM_X    = UIPosMode.CONSTANT;
     Const_X = x;
     PM_Y    = UIPosMode.CONSTANT;
     Const_Y = y;
     return(this);
 }
Beispiel #14
0
 /// <summary>
 /// Matches the parent element for all values.
 /// <para>If there is no parent element, matches the client's window instead.</para>
 /// </summary>
 /// <returns>This object.</returns>
 // TODO: individual methods for this?
 public UIPositionHelper MatchParent()
 {
     PM_X      = UIPosMode.MATCH_PARENT;
     PM_Y      = UIPosMode.MATCH_PARENT;
     PM_Width  = UIPosMode.MATCH_PARENT;
     PM_Height = UIPosMode.MATCH_PARENT;
     PM_Rot    = UIPosMode.MATCH_PARENT;
     Dirty     = true;
     return(this);
 }