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 /// <since_tizen> 3 </since_tizen>
113 public static Position operator +(Position arg1, Position arg2)
115 return arg1.Add(arg2);
119 /// The subtraction operator.
121 /// <param name="arg1">The vector to subtract.</param>
122 /// <param name="arg2">The vector to subtract.</param>
123 /// <returns>The vector containing the result of the subtraction.</returns>
124 /// <since_tizen> 3 </since_tizen>
125 public static Position operator -(Position arg1, Position arg2)
127 return arg1.Subtract(arg2);
131 /// The unary negation operator.
133 /// <param name="arg1">The vector to negate.</param>
134 /// <returns>The vector containg the negation.</returns>
135 /// <since_tizen> 3 </since_tizen>
136 public static Position operator -(Position arg1)
138 return arg1.Subtract();
142 /// The multiplication operator.
144 /// <param name="arg1">The vector to multiply.</param>
145 /// <param name="arg2">The vector to multiply.</param>
146 /// <returns>The vector containing the result of the multiplication.</returns>
147 /// <since_tizen> 3 </since_tizen>
148 public static Position operator *(Position arg1, Position arg2)
150 return arg1.Multiply(arg2);
154 /// The multiplication operator.
156 /// <param name="arg1">The vector to multiply</param>
157 /// <param name="arg2">The float value to scale the vector.</param>
158 /// <returns>The vector containing the result of scaling.</returns>
159 /// <since_tizen> 3 </since_tizen>
160 public static Position operator *(Position arg1, float arg2)
162 return arg1.Multiply(arg2);
166 /// The division operator.
168 /// <param name="arg1">The vector to divide.</param>
169 /// <param name="arg2">The vector to divide.</param>
170 /// <returns>The vector containing the result of the division.</returns>
171 /// <since_tizen> 3 </since_tizen>
172 public static Position operator /(Position arg1, Position arg2)
174 return arg1.Divide(arg2);
178 /// The division operator.
180 /// <param name="arg1">The vector to divide.</param>
181 /// <param name="arg2">The float value to scale the vector by.</param>
182 /// <returns>The vector containing the result of scaling.</returns>
183 /// <since_tizen> 3 </since_tizen>
184 public static Position operator /(Position arg1, float arg2)
186 return arg1.Divide(arg2);
191 /// The const array subscript operator overload. Should be 0, 1, or 2.
193 /// <param name="index">The subscript index.</param>
194 /// <returns>The float at the given index.</returns>
195 /// <since_tizen> 3 </since_tizen>
196 public float this[uint index]
200 return ValueOfIndex(index);
204 internal static Position GetPositionFromPtr(global::System.IntPtr cPtr)
206 Position ret = new Position(cPtr, false);
207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 /// <since_tizen> 3 </since_tizen>
216 public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
218 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
224 /// <param name="x">The x component.</param>
225 /// <param name="y">The y component.</param>
226 /// <param name="z">The z component.</param>
227 /// <since_tizen> 3 </since_tizen>
228 public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
230 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 /// <param name="position2d">Position2D to create this vector from.</param>
237 /// <since_tizen> 3 </since_tizen>
238 public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true)
240 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
245 private Position Add(Position rhs)
247 Position ret = new Position(NDalicPINVOKE.Vector3_Add(swigCPtr, Position.getCPtr(rhs)), true);
248 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
252 private Position Subtract(Position rhs)
254 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259 private Position Multiply(Position rhs)
261 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266 private Position Multiply(float rhs)
268 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273 private Position Divide(Position rhs)
275 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280 private Position Divide(float rhs)
282 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
283 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
287 private Position Subtract()
289 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
290 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
294 private float ValueOfIndex(uint index)
296 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
297 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
302 /// Compares if rhs is equal to.
304 /// <param name="rhs">The vector to compare.</param>
305 /// <returns>Returns true if the two vectors are equal, otherwise false.</returns>
306 /// <since_tizen> 3 </since_tizen>
307 public bool EqualTo(Position rhs)
309 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
310 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
315 /// Compares if rhs is not equal to.
317 /// <param name="rhs">The vector to compare.</param>
318 /// <returns>Returns true if the two vectors are not equal, otherwise false.</returns>
319 /// <since_tizen> 3 </since_tizen>
320 public bool NotEqualTo(Position rhs)
322 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
323 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
331 /// <since_tizen> 3 </since_tizen>
336 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
337 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
350 /// <since_tizen> 3 </since_tizen>
355 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
356 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
361 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 /// <since_tizen> 3 </since_tizen>
374 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
375 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
379 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
386 /// ParentOrigin constants. It's 0.0.
388 /// <since_tizen> 3 </since_tizen>
389 public static float ParentOriginTop
393 float ret = NDalicPINVOKE.ParentOriginTop_get();
394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
400 /// ParentOrigin constants. It's 1.0.
402 /// <since_tizen> 3 </since_tizen>
403 public static float ParentOriginBottom
407 float ret = NDalicPINVOKE.ParentOriginBottom_get();
408 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414 /// ParentOrigin constants. It's 0.0.
416 /// <since_tizen> 3 </since_tizen>
417 public static float ParentOriginLeft
421 float ret = NDalicPINVOKE.ParentOriginLeft_get();
422 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
428 /// ParentOrigin constants. It's 1.0.
430 /// <since_tizen> 3 </since_tizen>
431 public static float ParentOriginRight
435 float ret = NDalicPINVOKE.ParentOriginRight_get();
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
442 /// ParentOrigin constants. It's 0.5.
444 /// <since_tizen> 3 </since_tizen>
445 public static float ParentOriginMiddle
449 float ret = NDalicPINVOKE.ParentOriginMiddle_get();
450 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
456 /// ParentOrigin constants: 0.0, 0.0, 0.5.
458 /// <since_tizen> 3 </since_tizen>
459 public static Position ParentOriginTopLeft
463 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
464 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
465 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
471 /// ParentOrigin constants: 0.5, 0.0, 0.5.
473 /// <since_tizen> 3 </since_tizen>
474 public static Position ParentOriginTopCenter
478 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
479 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
486 /// ParentOrigin constants: 1.0, 0.0, 0.5.
488 /// <since_tizen> 3 </since_tizen>
489 public static Position ParentOriginTopRight
493 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
494 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
495 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
501 /// ParentOrigin constants: 0.0, 0.5, 0.5.
503 /// <since_tizen> 3 </since_tizen>
504 public static Position ParentOriginCenterLeft
508 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
509 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
510 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
516 /// ParentOrigin constants: 0.0, 0.5, 0.5
518 /// <since_tizen> 3 </since_tizen>
519 public static Position ParentOriginCenter
523 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
524 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
525 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531 /// ParentOrigin constants: 1.0, 0.5, 0.5.
533 /// <since_tizen> 3 </since_tizen>
534 public static Position ParentOriginCenterRight
538 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
539 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
540 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
546 /// ParentOrigin constants: 0.0f, 1.0f, 0.5f.
548 /// <since_tizen> 3 </since_tizen>
549 public static Position ParentOriginBottomLeft
553 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
554 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
561 /// ParentOrigin constants: 0.5, 1.0, 0.5.
563 /// <since_tizen> 3 </since_tizen>
564 public static Position ParentOriginBottomCenter
568 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
569 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
570 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
576 /// ParentOrigin constants: 1.0, 1.0, 0.5.
578 /// <since_tizen> 3 </since_tizen>
579 public static Position ParentOriginBottomRight
583 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
584 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
585 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591 /// PivotPoint constants: 0.0.
593 /// <since_tizen> 4 </since_tizen>
594 public static float PivotPointTop
598 float ret = NDalicPINVOKE.AnchorPointTop_get();
599 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
605 /// PivotPoint constants: 1.0.
607 /// <since_tizen> 4 </since_tizen>
608 public static float PivotPointBottom
612 float ret = NDalicPINVOKE.AnchorPointBottom_get();
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
619 /// PivotPoint constants: 0.0.
621 /// <since_tizen> 4 </since_tizen>
622 public static float PivotPointLeft
626 float ret = NDalicPINVOKE.AnchorPointLeft_get();
627 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
633 /// PivotPoint constants: 1.0.
635 /// <since_tizen> 4 </since_tizen>
636 public static float PivotPointRight
640 float ret = NDalicPINVOKE.AnchorPointRight_get();
641 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
647 /// PivotPoint constants: 0.0.
649 /// <since_tizen> 4 </since_tizen>
650 public static float PivotPointMiddle
654 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
655 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
661 /// PivotPoint constants: 0.0, 0.0, 0.5.
663 /// <since_tizen> 4 </since_tizen>
664 public static Position PivotPointTopLeft
668 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
669 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
670 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
676 /// PivotPoint constants: 0.5, 0.0, 0.5.
678 /// <since_tizen> 4 </since_tizen>
679 public static Position PivotPointTopCenter
683 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
684 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
685 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
691 /// PivotPoint constants: 1.0, 0.0, 0.5.
693 /// <since_tizen> 4 </since_tizen>
694 public static Position PivotPointTopRight
698 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
699 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
700 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
706 /// PivotPoint constants: 0.0, 0.5, 0.5.
708 /// <since_tizen> 4 </since_tizen>
709 public static Position PivotPointCenterLeft
713 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
714 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
715 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
721 /// PivotPoint constants: 0.5, 0.5, 0.5.
723 /// <since_tizen> 4 </since_tizen>
724 public static Position PivotPointCenter
728 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
729 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
730 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
736 /// PivotPoint constants: 1.0, 0.5, 0.5.
738 /// <since_tizen> 4 </since_tizen>
739 public static Position PivotPointCenterRight
743 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
744 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
745 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
751 /// PivotPoint constants: 0.0, 1.0, 0.5.
753 /// <since_tizen> 4 </since_tizen>
754 public static Position PivotPointBottomLeft
758 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
759 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
760 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
766 /// PivotPoint constants: 0.5, 1.0, 0.5
768 /// <since_tizen> 4 </since_tizen>
769 public static Position PivotPointBottomCenter
773 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
774 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
775 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
781 /// PivotPoint constants: 1.0, 1.0, 0.5.
783 /// <since_tizen> 4 </since_tizen>
784 public static Position PivotPointBottomRight
788 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
789 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
790 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
796 /// Constant ( 1.0f, 1.0f, 1.0f ).
798 /// <since_tizen> 3 </since_tizen>
799 public static Position One
803 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
804 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
805 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
810 internal static Position XAxis
814 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
815 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
816 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
821 internal static Position YAxis
825 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
826 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
827 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
832 internal static Position ZAxis
836 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
837 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
838 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
843 internal static Position NegativeXAxis
847 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
848 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
849 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
854 internal static Position NegativeYAxis
858 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
859 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
860 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
865 internal static Position NegativeZAxis
869 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
870 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
871 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
877 /// Constant ( 0.0f, 0.0f, 0.0f ).
879 /// <since_tizen> 3 </since_tizen>
880 public static Position Zero
884 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
885 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
886 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
892 /// Converts a position instance to a Vector3 instance.
894 /// <since_tizen> 3 </since_tizen>
895 public static implicit operator Vector3(Position Position)
897 return new Vector3(Position.X, Position.Y, Position.Z);
901 /// Converts a Vector3 instance to a position instance.
903 /// <since_tizen> 3 </since_tizen>
904 public static implicit operator Position(Vector3 vec)
906 return new Position(vec.X, vec.Y, vec.Z);
910 [Obsolete("Please do not use! this will be deprecated")]
911 public static float AnchorPointTop
915 float ret = NDalicPINVOKE.AnchorPointTop_get();
916 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
921 [Obsolete("Please do not use! this will be deprecated")]
922 public static float AnchorPointBottom
926 float ret = NDalicPINVOKE.AnchorPointBottom_get();
927 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
932 [Obsolete("Please do not use! this will be deprecated")]
933 public static float AnchorPointLeft
937 float ret = NDalicPINVOKE.AnchorPointLeft_get();
938 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
943 [Obsolete("Please do not use! this will be deprecated")]
944 public static float AnchorPointRight
948 float ret = NDalicPINVOKE.AnchorPointRight_get();
949 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
954 [Obsolete("Please do not use! this will be deprecated")]
955 public static float AnchorPointMiddle
959 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
960 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
965 [Obsolete("Please do not use! this will be deprecated")]
966 public static Position AnchorPointTopLeft
970 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
971 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
972 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
977 [Obsolete("Please do not use! this will be deprecated")]
978 public static Position AnchorPointTopCenter
982 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
983 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
984 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
989 [Obsolete("Please do not use! this will be deprecated")]
990 public static Position AnchorPointTopRight
994 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
995 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
996 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1001 [Obsolete("Please do not use! this will be deprecated")]
1002 public static Position AnchorPointCenterLeft
1006 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
1007 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1008 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1014 [Obsolete("Please do not use! this will be deprecated")]
1015 public static Position AnchorPointCenter
1019 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
1020 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1021 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1026 [Obsolete("Please do not use! this will be deprecated")]
1027 public static Position AnchorPointCenterRight
1031 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
1032 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1033 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1038 [Obsolete("Please do not use! this will be deprecated")]
1039 public static Position AnchorPointBottomLeft
1043 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
1044 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1045 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1050 [Obsolete("Please do not use! this will be deprecated")]
1051 public static Position AnchorPointBottomCenter
1055 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
1056 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1057 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1062 [Obsolete("Please do not use! this will be deprecated")]
1063 public static Position AnchorPointBottomRight
1067 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
1068 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1069 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();