2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
21 /// Position is a three dimensional vector.
23 public class Position : global::System.IDisposable {
24 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
25 protected bool swigCMemOwn;
27 internal Position(global::System.IntPtr cPtr, bool cMemoryOwn) {
28 swigCMemOwn = cMemoryOwn;
29 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
32 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position obj) {
33 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
37 DisposeQueue.Instance.Add(this);
40 public virtual void Dispose() {
41 if (!Stage.IsInstalled()) {
42 DisposeQueue.Instance.Add(this);
47 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
50 NDalicPINVOKE.delete_Vector3(swigCPtr);
52 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
54 global::System.GC.SuppressFinalize(this);
60 /// Addition operator.
62 /// <param name="arg1">Vector to add</param>
63 /// <param name="arg2">Vector to add</param>
64 /// <returns>A vector containing the result of the addition</returns>
65 public static Position operator+(Position arg1, Position arg2) {
66 return arg1.Add(arg2);
70 /// Subtraction operator.
72 /// <param name="arg1">Vector to subtract</param>
73 /// <param name="arg2">Vector to subtract</param>
74 /// <returns>A vector containing the result of the subtraction</returns>
75 public static Position operator-(Position arg1, Position arg2) {
76 return arg1.Subtract(arg2);
80 /// Unary negation operator.
82 /// <param name="arg1">Vector to netate</param>
83 /// <returns>A vector containg the negation</returns>
84 public static Position operator-(Position arg1) {
85 return arg1.Subtract();
89 /// Multiplication operator.
91 /// <param name="arg1">The vector to multiply</param>
92 /// <param name="arg2">The vector to multiply</param>
93 /// <returns>A vector containing the result of the multiplication</returns>
94 public static Position operator*(Position arg1, Position arg2) {
95 return arg1.Multiply(arg2);
99 /// Multiplication operator.
101 /// <param name="arg1">The vector to multiply</param>
102 /// <param name="arg2">The float value to scale the vector</param>
103 /// <returns>A vector containing the result of the scaling</returns>
104 public static Position operator*(Position arg1, float arg2) {
105 return arg1.Multiply(arg2);
109 /// Division operator.
111 /// <param name="arg1">The vector to divide</param>
112 /// <param name="arg2">The vector to divide</param>
113 /// <returns>A vector containing the result of the division</returns>
114 public static Position operator/(Position arg1, Position arg2) {
115 return arg1.Divide(arg2);
119 /// Division operator.
121 /// <param name="arg1">The vector to divide</param>
122 /// <param name="arg2">The float value to scale the vector by</param>
123 /// <returns>A vector containing the result of the scaling</returns>
124 public static Position operator/(Position arg1, float arg2) {
125 return arg1.Divide(arg2);
130 /// Const array subscript operator overload. Should be 0, 1 or 2.
132 /// <param name="index">Subscript index</param>
133 /// <returns>The float at the given index</returns>
134 public float this[uint index]
138 return ValueOfIndex(index);
144 public static Position GetPositionFromPtr(global::System.IntPtr cPtr) {
145 Position ret = new Position(cPtr, false);
146 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
154 public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true) {
155 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161 /// <param name="x">x component</param>
162 /// <param name="y">y component</param>
163 /// <param name="z">z component</param>
164 public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true) {
165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
171 /// <param name="position2d">Position2D to create this vector from</param>
172 public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true) {
173 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
178 private Position Add(Position rhs) {
179 Position ret = new Position(NDalicPINVOKE.Vector3_Add(swigCPtr, Position.getCPtr(rhs)), true);
180 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
184 private Position Subtract(Position rhs) {
185 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
190 private Position Multiply(Position rhs) {
191 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
192 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196 private Position Multiply(float rhs) {
197 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202 private Position Divide(Position rhs) {
203 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
204 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
208 private Position Divide(float rhs) {
209 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
210 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214 private Position Subtract() {
215 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
220 private float ValueOfIndex(uint index) {
221 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227 /// Compare if rhs is equal to
229 /// <param name="rhs">The vector to compare</param>
230 /// <returns>Returns true if the two vectors are equal, otherwise false</returns>
231 public bool EqualTo(Position rhs) {
232 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
233 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
238 /// Compare if rhs is not equal to
240 /// <param name="rhs">The vector to compare</param>
241 /// <returns>Returns true if the two vectors are not equal, otherwise false</returns>
242 public bool NotEqualTo(Position rhs) {
243 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
254 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
258 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
270 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
274 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
285 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
288 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
295 /// ParentOrigin constants. It's 0.0.
297 public static float ParentOriginTop
301 float ret = NDalicPINVOKE.ParentOriginTop_get();
302 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
308 /// ParentOrigin constants. It's 1.0.
310 public static float ParentOriginBottom
314 float ret = NDalicPINVOKE.ParentOriginBottom_get();
315 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321 /// ParentOrigin constants. It's 0.0.
323 public static float ParentOriginLeft
327 float ret = NDalicPINVOKE.ParentOriginLeft_get();
328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
334 /// ParentOrigin constants. It's 1.0.
336 public static float ParentOriginRight
340 float ret = NDalicPINVOKE.ParentOriginRight_get();
341 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
347 /// ParentOrigin constants. It's 0.5.
349 public static float ParentOriginMiddle
353 float ret = NDalicPINVOKE.ParentOriginMiddle_get();
354 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 /// ParentOrigin constants: 0.0, 0.0, 0.5
362 public static Position ParentOriginTopLeft
366 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
367 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374 /// ParentOrigin constants: 0.5, 0.0, 0.5
376 public static Position ParentOriginTopCenter
380 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
381 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
382 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 /// ParentOrigin constants: 1.0, 0.0, 0.5
390 public static Position ParentOriginTopRight
394 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
395 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
402 /// ParentOrigin constants: 0.0, 0.5, 0.5
404 public static Position ParentOriginCenterLeft
408 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
409 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
416 /// ParentOrigin constants: 0.0, 0.5, 0.5
418 public static Position ParentOriginCenter
422 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
423 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
424 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
430 /// ParentOrigin constants: 1.0, 0.5, 0.5
432 public static Position ParentOriginCenterRight
436 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
437 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
438 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 /// ParentOrigin constants: 0.0f, 1.0f, 0.5f
446 public static Position ParentOriginBottomLeft
450 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
451 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
452 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
458 /// ParentOrigin constants: 0.5, 1.0, 0.5
460 public static Position ParentOriginBottomCenter
464 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
465 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
466 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
472 /// ParentOrigin constants: 1.0, 1.0, 0.5
474 public static Position ParentOriginBottomRight
478 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
479 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
486 /// AnchorPoint constants: 0.0
488 public static float AnchorPointTop
492 float ret = NDalicPINVOKE.AnchorPointTop_get();
493 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499 /// AnchorPoint constants: 1.0
501 public static float AnchorPointBottom
505 float ret = NDalicPINVOKE.AnchorPointBottom_get();
506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
512 /// AnchorPoint constants: 0.0
514 public static float AnchorPointLeft
518 float ret = NDalicPINVOKE.AnchorPointLeft_get();
519 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525 /// AnchorPoint constants: 1.0
527 public static float AnchorPointRight
531 float ret = NDalicPINVOKE.AnchorPointRight_get();
532 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538 /// AnchorPoint constants: 0.0
540 public static float AnchorPointMiddle
544 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
545 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
551 /// AnchorPoint constants: 0.0, 0.0, 0.5
553 public static Position AnchorPointTopLeft
557 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
558 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
559 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
565 /// AnchorPoint constants: 0.5, 0.0, 0.5
567 public static Position AnchorPointTopCenter
571 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
572 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
579 /// AnchorPoint constants: 1.0, 0.0, 0.5
581 public static Position AnchorPointTopRight
585 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
586 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593 /// AnchorPoint constants: 0.0, 0.5, 0.5
595 public static Position AnchorPointCenterLeft
599 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
600 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
601 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
607 /// AnchorPoint constants: 0.5, 0.5, 0.5
609 public static Position AnchorPointCenter
613 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
614 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
615 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
621 /// AnchorPoint constants: 1.0, 0.5, 0.5
623 public static Position AnchorPointCenterRight
627 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
628 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
629 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
635 /// AnchorPoint constants: 0.0, 1.0, 0.5
637 public static Position AnchorPointBottomLeft
641 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
642 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
643 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
649 /// AnchorPoint constants: 0.5, 1.0, 0.5
651 public static Position AnchorPointBottomCenter
655 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
656 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
663 /// AnchorPoint constants: 1.0, 1.0, 0.5
665 public static Position AnchorPointBottomRight
669 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
670 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
671 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
677 /// Constant ( 1.0f, 1.0f, 1.0f )
679 public static Position One {
681 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
682 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
683 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
688 internal static Position XAxis {
690 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
691 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
692 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
697 internal static Position YAxis {
699 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
700 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
701 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
706 internal static Position ZAxis {
708 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
709 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
710 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
715 internal static Position NegativeXAxis {
717 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
718 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
719 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
724 internal static Position NegativeYAxis {
726 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
727 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
728 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
733 internal static Position NegativeZAxis {
735 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
736 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
737 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
743 /// Constant ( 0.0f, 0.0f, 0.0f )
745 public static Position Zero {
747 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
748 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
749 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
756 public static implicit operator Vector3(Position Position)
758 return new Vector3(Position.X, Position.Y, Position.Z);
763 public static implicit operator Position(Vector3 vec)
765 return new Position(vec.X, vec.Y, vec.Z);
770 public struct ParentOrigin
772 public static readonly float Top = Position.ParentOriginTop;
773 public static readonly float Bottom = Position.ParentOriginBottom;
774 public static readonly float Left = Position.ParentOriginLeft;
775 public static readonly float Right = Position.ParentOriginRight;
776 public static readonly float Middle = Position.ParentOriginMiddle;
777 public static readonly Position TopLeft = Position.ParentOriginTopLeft;
778 public static readonly Position TopCenter = Position.ParentOriginTopCenter;
779 public static readonly Position TopRight = Position.ParentOriginTopRight;
780 public static readonly Position CenterLeft = Position.ParentOriginCenterLeft;
781 public static readonly Position Center = Position.ParentOriginCenter;
782 public static readonly Position CenterRight = Position.ParentOriginCenterRight;
783 public static readonly Position BottomLeft = Position.ParentOriginBottomLeft;
784 public static readonly Position BottomCenter = Position.ParentOriginBottomCenter;
785 public static readonly Position BottomRight = Position.ParentOriginBottomRight;
787 public struct AnchorPoint
789 public static readonly float Top = Position.AnchorPointTop;
790 public static readonly float Bottom = Position.AnchorPointBottom;
791 public static readonly float Left = Position.AnchorPointLeft;
792 public static readonly float Right = Position.AnchorPointRight;
793 public static readonly float Middle = Position.AnchorPointMiddle;
794 public static readonly Position TopLeft = Position.AnchorPointTopLeft;
795 public static readonly Position TopCenter = Position.AnchorPointTopCenter;
796 public static readonly Position TopRight = Position.AnchorPointTopRight;
797 public static readonly Position CenterLeft = Position.AnchorPointCenterLeft;
798 public static readonly Position Center = Position.AnchorPointCenter;
799 public static readonly Position CenterRight = Position.AnchorPointCenterRight;
800 public static readonly Position BottomLeft = Position.AnchorPointBottomLeft;
801 public static readonly Position BottomCenter = Position.AnchorPointBottomCenter;
802 public static readonly Position BottomRight = Position.AnchorPointBottomRight;
804 public struct PositionAxis
806 public static readonly Position X = Position.XAxis;
807 public static readonly Position Y = Position.YAxis;
808 public static readonly Position Z = Position.ZAxis;
809 public static readonly Position NegativeX = Position.NegativeXAxis;
810 public static readonly Position NegativeY = Position.NegativeYAxis;
811 public static readonly Position NegativeZ = Position.NegativeZAxis;