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 /// An addition operator.
109 /// <param name="arg1">The vector to add.</param>
110 /// <param name="arg2">The vector to add.</param>
111 /// <returns>The vector containing the result of the addition.</returns>
112 public static Position operator +(Position arg1, Position arg2)
114 return arg1.Add(arg2);
118 /// The subtraction operator.
120 /// <param name="arg1">The vector to subtract.</param>
121 /// <param name="arg2">The vector to subtract.</param>
122 /// <returns>The vector containing the result of the subtraction.</returns>
123 public static Position operator -(Position arg1, Position arg2)
125 return arg1.Subtract(arg2);
129 /// The unary negation operator.
131 /// <param name="arg1">The vector to negate.</param>
132 /// <returns>The vector containg the negation.</returns>
133 public static Position operator -(Position arg1)
135 return arg1.Subtract();
139 /// The multiplication operator.
141 /// <param name="arg1">The vector to multiply.</param>
142 /// <param name="arg2">The vector to multiply.</param>
143 /// <returns>The vector containing the result of the multiplication.</returns>
144 public static Position operator *(Position arg1, Position arg2)
146 return arg1.Multiply(arg2);
150 /// The 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>The vector containing the result of scaling.</returns>
155 public static Position operator *(Position arg1, float arg2)
157 return arg1.Multiply(arg2);
161 /// The division operator.
163 /// <param name="arg1">The vector to divide.</param>
164 /// <param name="arg2">The vector to divide.</param>
165 /// <returns>The vector containing the result of the division.</returns>
166 public static Position operator /(Position arg1, Position arg2)
168 return arg1.Divide(arg2);
172 /// The 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>The vector containing the result of scaling.</returns>
177 public static Position operator /(Position arg1, float arg2)
179 return arg1.Divide(arg2);
184 /// The const array subscript operator overload. Should be 0, 1, or 2.
186 /// <param name="index">The subscript index.</param>
187 /// <returns>The float at the given index.</returns>
188 public float this[uint index]
192 return ValueOfIndex(index);
196 internal static Position GetPositionFromPtr(global::System.IntPtr cPtr)
198 Position ret = new Position(cPtr, false);
199 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
207 public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 /// <param name="x">The x component.</param>
216 /// <param name="y">The y component.</param>
217 /// <param name="z">The z component.</param>
218 public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
226 /// <param name="position2d">Position2D to create this vector from.</param>
227 public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true)
229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234 private Position Add(Position rhs)
236 Position ret = new Position(NDalicPINVOKE.Vector3_Add(swigCPtr, Position.getCPtr(rhs)), true);
237 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
241 private Position Subtract(Position rhs)
243 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
248 private Position Multiply(Position rhs)
250 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
255 private Position Multiply(float rhs)
257 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
262 private Position Divide(Position rhs)
264 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
265 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269 private Position Divide(float rhs)
271 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
272 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
276 private Position Subtract()
278 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
283 private float ValueOfIndex(uint index)
285 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
291 /// Compares if rhs is equal to.
293 /// <param name="rhs">The vector to compare.</param>
294 /// <returns>Returns true if the two vectors are equal, otherwise false.</returns>
295 public bool EqualTo(Position rhs)
297 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
303 /// Compares if rhs is not equal to.
305 /// <param name="rhs">The vector to compare.</param>
306 /// <returns>Returns true if the two vectors are not equal, otherwise false.</returns>
307 public bool NotEqualTo(Position rhs)
309 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
310 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
323 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
327 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
340 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
341 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
345 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
346 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
358 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
359 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
364 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 /// ParentOrigin constants. It's 0.0.
372 public static float ParentOriginTop
376 float ret = NDalicPINVOKE.ParentOriginTop_get();
377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
383 /// ParentOrigin constants. It's 1.0.
385 public static float ParentOriginBottom
389 float ret = NDalicPINVOKE.ParentOriginBottom_get();
390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 /// ParentOrigin constants. It's 0.0.
398 public static float ParentOriginLeft
402 float ret = NDalicPINVOKE.ParentOriginLeft_get();
403 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 /// ParentOrigin constants. It's 1.0.
411 public static float ParentOriginRight
415 float ret = NDalicPINVOKE.ParentOriginRight_get();
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
422 /// ParentOrigin constants. It's 0.5.
424 public static float ParentOriginMiddle
428 float ret = NDalicPINVOKE.ParentOriginMiddle_get();
429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435 /// ParentOrigin constants: 0.0, 0.0, 0.5.
437 public static Position ParentOriginTopLeft
441 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
442 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449 /// ParentOrigin constants: 0.5, 0.0, 0.5.
451 public static Position ParentOriginTopCenter
455 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
456 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
463 /// ParentOrigin constants: 1.0, 0.0, 0.5.
465 public static Position ParentOriginTopRight
469 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
470 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
471 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 /// ParentOrigin constants: 0.0, 0.5, 0.5.
479 public static Position ParentOriginCenterLeft
483 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
484 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 /// ParentOrigin constants: 0.0, 0.5, 0.5
493 public static Position ParentOriginCenter
497 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
498 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
499 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 /// ParentOrigin constants: 1.0, 0.5, 0.5.
507 public static Position ParentOriginCenterRight
511 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
512 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519 /// ParentOrigin constants: 0.0f, 1.0f, 0.5f.
521 public static Position ParentOriginBottomLeft
525 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
526 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
533 /// ParentOrigin constants: 0.5, 1.0, 0.5.
535 public static Position ParentOriginBottomCenter
539 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
540 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
547 /// ParentOrigin constants: 1.0, 1.0, 0.5.
549 public static Position ParentOriginBottomRight
553 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
554 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
561 /// PivotPoint constants: 0.0.
563 public static float PivotPointTop
567 float ret = NDalicPINVOKE.AnchorPointTop_get();
568 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
574 /// PivotPoint constants: 1.0.
576 public static float PivotPointBottom
580 float ret = NDalicPINVOKE.AnchorPointBottom_get();
581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587 /// PivotPoint constants: 0.0.
589 public static float PivotPointLeft
593 float ret = NDalicPINVOKE.AnchorPointLeft_get();
594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
600 /// PivotPoint constants: 1.0.
602 public static float PivotPointRight
606 float ret = NDalicPINVOKE.AnchorPointRight_get();
607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
613 /// PivotPoint constants: 0.0.
615 public static float PivotPointMiddle
619 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626 /// PivotPoint constants: 0.0, 0.0, 0.5.
628 public static Position PivotPointTopLeft
632 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
633 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
634 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
640 /// PivotPoint constants: 0.5, 0.0, 0.5.
642 public static Position PivotPointTopCenter
646 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
647 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
648 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 /// PivotPoint constants: 1.0, 0.0, 0.5.
656 public static Position PivotPointTopRight
660 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
661 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
662 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
668 /// PivotPoint constants: 0.0, 0.5, 0.5.
670 public static Position PivotPointCenterLeft
674 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
675 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682 /// PivotPoint constants: 0.5, 0.5, 0.5.
684 public static Position PivotPointCenter
688 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
689 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
690 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
696 /// PivotPoint constants: 1.0, 0.5, 0.5.
698 public static Position PivotPointCenterRight
702 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
703 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
704 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710 /// PivotPoint constants: 0.0, 1.0, 0.5.
712 public static Position PivotPointBottomLeft
716 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
717 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
718 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
724 /// PivotPoint constants: 0.5, 1.0, 0.5
726 public static Position PivotPointBottomCenter
730 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
731 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
732 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
738 /// PivotPoint constants: 1.0, 1.0, 0.5.
740 public static Position PivotPointBottomRight
744 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
745 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
746 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
752 /// Constant ( 1.0f, 1.0f, 1.0f ).
754 public static Position One
758 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
759 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
760 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
765 internal static Position XAxis
769 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
770 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
771 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
776 internal static Position YAxis
780 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
781 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
782 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
787 internal static Position ZAxis
791 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
792 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
793 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
798 internal static Position NegativeXAxis
802 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
803 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
804 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
809 internal static Position NegativeYAxis
813 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
814 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
815 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
820 internal static Position NegativeZAxis
824 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
825 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
826 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
832 /// Constant ( 0.0f, 0.0f, 0.0f ).
834 public static Position Zero
838 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
839 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
840 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
846 /// Converts a position instance to a Vector3 instance.
848 public static implicit operator Vector3(Position Position)
850 return new Vector3(Position.X, Position.Y, Position.Z);
854 /// Converts a Vector3 instance to a position instance.
856 public static implicit operator Position(Vector3 vec)
858 return new Position(vec.X, vec.Y, vec.Z);
862 [Obsolete("Please do not use! this will be deprecated")]
863 public static float AnchorPointTop
867 float ret = NDalicPINVOKE.AnchorPointTop_get();
868 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
873 [Obsolete("Please do not use! this will be deprecated")]
874 public static float AnchorPointBottom
878 float ret = NDalicPINVOKE.AnchorPointBottom_get();
879 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
884 [Obsolete("Please do not use! this will be deprecated")]
885 public static float AnchorPointLeft
889 float ret = NDalicPINVOKE.AnchorPointLeft_get();
890 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
895 [Obsolete("Please do not use! this will be deprecated")]
896 public static float AnchorPointRight
900 float ret = NDalicPINVOKE.AnchorPointRight_get();
901 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
906 [Obsolete("Please do not use! this will be deprecated")]
907 public static float AnchorPointMiddle
911 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
912 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
917 [Obsolete("Please do not use! this will be deprecated")]
918 public static Position AnchorPointTopLeft
922 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
923 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
924 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
929 [Obsolete("Please do not use! this will be deprecated")]
930 public static Position AnchorPointTopCenter
934 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
935 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
936 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
941 [Obsolete("Please do not use! this will be deprecated")]
942 public static Position AnchorPointTopRight
946 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
947 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
948 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
953 [Obsolete("Please do not use! this will be deprecated")]
954 public static Position AnchorPointCenterLeft
958 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
959 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
960 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
966 [Obsolete("Please do not use! this will be deprecated")]
967 public static Position AnchorPointCenter
971 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
972 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
973 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
978 [Obsolete("Please do not use! this will be deprecated")]
979 public static Position AnchorPointCenterRight
983 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
984 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
985 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
990 [Obsolete("Please do not use! this will be deprecated")]
991 public static Position AnchorPointBottomLeft
995 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
996 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
997 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1002 [Obsolete("Please do not use! this will be deprecated")]
1003 public static Position AnchorPointBottomCenter
1007 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
1008 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1009 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1014 [Obsolete("Please do not use! this will be deprecated")]
1015 public static Position AnchorPointBottomRight
1019 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
1020 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1021 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();