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.
24 /// Position is a three dimensional vector.
26 public class Position : global::System.IDisposable
28 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
29 protected bool swigCMemOwn;
31 internal Position(global::System.IntPtr cPtr, bool cMemoryOwn)
33 swigCMemOwn = cMemoryOwn;
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
37 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position obj)
39 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
42 //A Flag to check who called Dispose(). (By User or DisposeQueue)
43 private bool isDisposeQueued = false;
44 //A Flat to check if it is already disposed.
45 protected bool disposed = false;
51 isDisposeQueued = true;
52 DisposeQueue.Instance.Add(this);
58 //Throw excpetion if Dispose() is called in separate thread.
59 if (!Window.IsInstalled())
61 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
66 Dispose(DisposeTypes.Implicit);
70 Dispose(DisposeTypes.Explicit);
71 System.GC.SuppressFinalize(this);
75 protected virtual void Dispose(DisposeTypes type)
82 if(type == DisposeTypes.Explicit)
85 //Release your own managed resources here.
86 //You should release all of your own disposable objects here.
89 //Release your own unmanaged resources here.
90 //You should not access any managed member here except static instance.
91 //because the execution order of Finalizes is non-deterministic.
93 if (swigCPtr.Handle != global::System.IntPtr.Zero)
98 NDalicPINVOKE.delete_Vector3(swigCPtr);
100 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
107 /// Addition operator.
109 /// <param name="arg1">Vector to add</param>
110 /// <param name="arg2">Vector to add</param>
111 /// <returns>A vector containing the result of the addition</returns>
112 public static Position operator +(Position arg1, Position arg2)
114 return arg1.Add(arg2);
118 /// Subtraction operator.
120 /// <param name="arg1">Vector to subtract</param>
121 /// <param name="arg2">Vector to subtract</param>
122 /// <returns>A vector containing the result of the subtraction</returns>
123 public static Position operator -(Position arg1, Position arg2)
125 return arg1.Subtract(arg2);
129 /// Unary negation operator.
131 /// <param name="arg1">Vector to netate</param>
132 /// <returns>A vector containg the negation</returns>
133 public static Position operator -(Position arg1)
135 return arg1.Subtract();
139 /// Multiplication operator.
141 /// <param name="arg1">The vector to multiply</param>
142 /// <param name="arg2">The vector to multiply</param>
143 /// <returns>A vector containing the result of the multiplication</returns>
144 public static Position operator *(Position arg1, Position arg2)
146 return arg1.Multiply(arg2);
150 /// Multiplication operator.
152 /// <param name="arg1">The vector to multiply</param>
153 /// <param name="arg2">The float value to scale the vector</param>
154 /// <returns>A vector containing the result of the scaling</returns>
155 public static Position operator *(Position arg1, float arg2)
157 return arg1.Multiply(arg2);
161 /// Division operator.
163 /// <param name="arg1">The vector to divide</param>
164 /// <param name="arg2">The vector to divide</param>
165 /// <returns>A vector containing the result of the division</returns>
166 public static Position operator /(Position arg1, Position arg2)
168 return arg1.Divide(arg2);
172 /// Division operator.
174 /// <param name="arg1">The vector to divide</param>
175 /// <param name="arg2">The float value to scale the vector by</param>
176 /// <returns>A vector containing the result of the scaling</returns>
177 public static Position operator /(Position arg1, float arg2)
179 return arg1.Divide(arg2);
184 /// Const array subscript operator overload. Should be 0, 1 or 2.
186 /// <param name="index">Subscript index</param>
187 /// <returns>The float at the given index</returns>
188 public float this[uint index]
192 return ValueOfIndex(index);
198 internal static Position GetPositionFromPtr(global::System.IntPtr cPtr)
200 Position ret = new Position(cPtr, false);
201 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209 public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
211 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
217 /// <param name="x">x component</param>
218 /// <param name="y">y component</param>
219 /// <param name="z">z component</param>
220 public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
228 /// <param name="position2d">Position2D to create this vector from</param>
229 public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true)
231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 private Position Add(Position rhs)
238 Position ret = new Position(NDalicPINVOKE.Vector3_Add(swigCPtr, Position.getCPtr(rhs)), true);
239 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
243 private Position Subtract(Position rhs)
245 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
246 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
250 private Position Multiply(Position rhs)
252 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
253 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
257 private Position Multiply(float rhs)
259 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
264 private Position Divide(Position rhs)
266 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
267 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
271 private Position Divide(float rhs)
273 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
274 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
278 private Position Subtract()
280 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
285 private float ValueOfIndex(uint index)
287 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
293 /// Compare if rhs is equal to
295 /// <param name="rhs">The vector to compare</param>
296 /// <returns>Returns true if the two vectors are equal, otherwise false</returns>
297 public bool EqualTo(Position rhs)
299 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
300 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
305 /// Compare if rhs is not equal to
307 /// <param name="rhs">The vector to compare</param>
308 /// <returns>Returns true if the two vectors are not equal, otherwise false</returns>
309 public bool NotEqualTo(Position rhs)
311 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
312 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
324 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
325 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
329 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
330 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
342 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
343 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
347 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
348 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
361 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
365 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
372 /// ParentOrigin constants. It's 0.0.
374 public static float ParentOriginTop
378 float ret = NDalicPINVOKE.ParentOriginTop_get();
379 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385 /// ParentOrigin constants. It's 1.0.
387 public static float ParentOriginBottom
391 float ret = NDalicPINVOKE.ParentOriginBottom_get();
392 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
398 /// ParentOrigin constants. It's 0.0.
400 public static float ParentOriginLeft
404 float ret = NDalicPINVOKE.ParentOriginLeft_get();
405 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
411 /// ParentOrigin constants. It's 1.0.
413 public static float ParentOriginRight
417 float ret = NDalicPINVOKE.ParentOriginRight_get();
418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424 /// ParentOrigin constants. It's 0.5.
426 public static float ParentOriginMiddle
430 float ret = NDalicPINVOKE.ParentOriginMiddle_get();
431 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437 /// ParentOrigin constants: 0.0, 0.0, 0.5
439 public static Position ParentOriginTopLeft
443 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
444 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
445 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451 /// ParentOrigin constants: 0.5, 0.0, 0.5
453 public static Position ParentOriginTopCenter
457 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
458 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
459 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465 /// ParentOrigin constants: 1.0, 0.0, 0.5
467 public static Position ParentOriginTopRight
471 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
472 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
473 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
479 /// ParentOrigin constants: 0.0, 0.5, 0.5
481 public static Position ParentOriginCenterLeft
485 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
486 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
487 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
493 /// ParentOrigin constants: 0.0, 0.5, 0.5
495 public static Position ParentOriginCenter
499 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
500 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
507 /// ParentOrigin constants: 1.0, 0.5, 0.5
509 public static Position ParentOriginCenterRight
513 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
514 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
521 /// ParentOrigin constants: 0.0f, 1.0f, 0.5f
523 public static Position ParentOriginBottomLeft
527 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
528 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
529 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
535 /// ParentOrigin constants: 0.5, 1.0, 0.5
537 public static Position ParentOriginBottomCenter
541 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
542 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
543 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549 /// ParentOrigin constants: 1.0, 1.0, 0.5
551 public static Position ParentOriginBottomRight
555 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
556 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
557 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563 /// PivotPoint constants: 0.0
565 public static float PivotPointTop
569 float ret = NDalicPINVOKE.AnchorPointTop_get();
570 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
576 /// PivotPoint constants: 1.0
578 public static float PivotPointBottom
582 float ret = NDalicPINVOKE.AnchorPointBottom_get();
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
589 /// PivotPoint constants: 0.0
591 public static float PivotPointLeft
595 float ret = NDalicPINVOKE.AnchorPointLeft_get();
596 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
602 /// PivotPoint constants: 1.0
604 public static float PivotPointRight
608 float ret = NDalicPINVOKE.AnchorPointRight_get();
609 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615 /// PivotPoint constants: 0.0
617 public static float PivotPointMiddle
621 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
622 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
628 /// PivotPoint constants: 0.0, 0.0, 0.5
630 public static Position PivotPointTopLeft
634 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
635 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
636 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
642 /// PivotPoint constants: 0.5, 0.0, 0.5
644 public static Position PivotPointTopCenter
648 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
649 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
650 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
656 /// PivotPoint constants: 1.0, 0.0, 0.5
658 public static Position PivotPointTopRight
662 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
663 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
664 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
670 /// PivotPoint constants: 0.0, 0.5, 0.5
672 public static Position PivotPointCenterLeft
676 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
677 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
678 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
684 /// PivotPoint constants: 0.5, 0.5, 0.5
686 public static Position PivotPointCenter
690 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
691 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
692 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
698 /// PivotPoint constants: 1.0, 0.5, 0.5
700 public static Position PivotPointCenterRight
704 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
705 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
706 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
712 /// PivotPoint constants: 0.0, 1.0, 0.5
714 public static Position PivotPointBottomLeft
718 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
719 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
720 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
726 /// PivotPoint constants: 0.5, 1.0, 0.5
728 public static Position PivotPointBottomCenter
732 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
733 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
734 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
740 /// PivotPoint constants: 1.0, 1.0, 0.5
742 public static Position PivotPointBottomRight
746 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
747 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
748 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
754 /// Constant ( 1.0f, 1.0f, 1.0f )
756 public static Position One
760 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
761 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
762 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
767 internal static Position XAxis
771 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
772 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
773 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
778 internal static Position YAxis
782 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
783 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
784 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
789 internal static Position ZAxis
793 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
794 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
795 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
800 internal static Position NegativeXAxis
804 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
805 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
806 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
811 internal static Position NegativeYAxis
815 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
816 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
817 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
822 internal static Position NegativeZAxis
826 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
827 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
828 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
834 /// Constant ( 0.0f, 0.0f, 0.0f )
836 public static Position Zero
840 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
841 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
842 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
848 /// Convert a position instance to a vector3 instance.
850 public static implicit operator Vector3(Position Position)
852 return new Vector3(Position.X, Position.Y, Position.Z);
856 /// Convert a vector3 instance to a position instance.
858 public static implicit operator Position(Vector3 vec)
860 return new Position(vec.X, vec.Y, vec.Z);
864 [Obsolete("Please do not use! this will be deprecated")]
865 public static float AnchorPointTop
869 float ret = NDalicPINVOKE.AnchorPointTop_get();
870 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
875 [Obsolete("Please do not use! this will be deprecated")]
876 public static float AnchorPointBottom
880 float ret = NDalicPINVOKE.AnchorPointBottom_get();
881 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
886 [Obsolete("Please do not use! this will be deprecated")]
887 public static float AnchorPointLeft
891 float ret = NDalicPINVOKE.AnchorPointLeft_get();
892 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
897 [Obsolete("Please do not use! this will be deprecated")]
898 public static float AnchorPointRight
902 float ret = NDalicPINVOKE.AnchorPointRight_get();
903 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
908 [Obsolete("Please do not use! this will be deprecated")]
909 public static float AnchorPointMiddle
913 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
914 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
919 [Obsolete("Please do not use! this will be deprecated")]
920 public static Position AnchorPointTopLeft
924 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
925 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
926 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
931 [Obsolete("Please do not use! this will be deprecated")]
932 public static Position AnchorPointTopCenter
936 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
937 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
938 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
943 [Obsolete("Please do not use! this will be deprecated")]
944 public static Position AnchorPointTopRight
948 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
949 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
950 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
955 [Obsolete("Please do not use! this will be deprecated")]
956 public static Position AnchorPointCenterLeft
960 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
961 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
962 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
968 [Obsolete("Please do not use! this will be deprecated")]
969 public static Position AnchorPointCenter
973 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
974 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
975 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
980 [Obsolete("Please do not use! this will be deprecated")]
981 public static Position AnchorPointCenterRight
985 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
986 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
987 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
992 [Obsolete("Please do not use! this will be deprecated")]
993 public static Position AnchorPointBottomLeft
997 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
998 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
999 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1004 [Obsolete("Please do not use! this will be deprecated")]
1005 public static Position AnchorPointBottomCenter
1009 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
1010 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1011 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1016 [Obsolete("Please do not use! this will be deprecated")]
1017 public static Position AnchorPointBottomRight
1021 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
1022 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1023 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();