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;
32 /// <since_tizen> 3 </since_tizen>
33 protected bool swigCMemOwn;
35 internal Position(global::System.IntPtr cPtr, bool cMemoryOwn)
37 swigCMemOwn = cMemoryOwn;
38 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
41 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position obj)
43 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
46 //A Flag to check who called Dispose(). (By User or DisposeQueue)
47 private bool isDisposeQueued = false;
49 /// A Flat to check if it is already disposed.
51 /// <since_tizen> 3 </since_tizen>
52 protected bool disposed = false;
57 /// <since_tizen> 3 </since_tizen>
62 isDisposeQueued = true;
63 DisposeQueue.Instance.Add(this);
70 /// <since_tizen> 3 </since_tizen>
73 //Throw excpetion if Dispose() is called in separate thread.
74 if (!Window.IsInstalled())
76 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
81 Dispose(DisposeTypes.Implicit);
85 Dispose(DisposeTypes.Explicit);
86 System.GC.SuppressFinalize(this);
93 /// <since_tizen> 3 </since_tizen>
94 protected virtual void Dispose(DisposeTypes type)
101 if(type == DisposeTypes.Explicit)
104 //Release your own managed resources here.
105 //You should release all of your own disposable objects here.
108 //Release your own unmanaged resources here.
109 //You should not access any managed member here except static instance.
110 //because the execution order of Finalizes is non-deterministic.
112 if (swigCPtr.Handle != global::System.IntPtr.Zero)
117 NDalicPINVOKE.delete_Vector3(swigCPtr);
119 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
126 /// An addition operator.
128 /// <param name="arg1">The vector to add.</param>
129 /// <param name="arg2">The vector to add.</param>
130 /// <returns>The vector containing the result of the addition.</returns>
131 /// <since_tizen> 3 </since_tizen>
132 public static Position operator +(Position arg1, Position arg2)
134 return arg1.Add(arg2);
138 /// The subtraction operator.
140 /// <param name="arg1">The vector to subtract.</param>
141 /// <param name="arg2">The vector to subtract.</param>
142 /// <returns>The vector containing the result of the subtraction.</returns>
143 /// <since_tizen> 3 </since_tizen>
144 public static Position operator -(Position arg1, Position arg2)
146 return arg1.Subtract(arg2);
150 /// The unary negation operator.
152 /// <param name="arg1">The vector to negate.</param>
153 /// <returns>The vector containg the negation.</returns>
154 /// <since_tizen> 3 </since_tizen>
155 public static Position operator -(Position arg1)
157 return arg1.Subtract();
161 /// The multiplication operator.
163 /// <param name="arg1">The vector to multiply.</param>
164 /// <param name="arg2">The vector to multiply.</param>
165 /// <returns>The vector containing the result of the multiplication.</returns>
166 /// <since_tizen> 3 </since_tizen>
167 public static Position operator *(Position arg1, Position arg2)
169 return arg1.Multiply(arg2);
173 /// The multiplication operator.
175 /// <param name="arg1">The vector to multiply</param>
176 /// <param name="arg2">The float value to scale the vector.</param>
177 /// <returns>The vector containing the result of scaling.</returns>
178 /// <since_tizen> 3 </since_tizen>
179 public static Position operator *(Position arg1, float arg2)
181 return arg1.Multiply(arg2);
185 /// The division operator.
187 /// <param name="arg1">The vector to divide.</param>
188 /// <param name="arg2">The vector to divide.</param>
189 /// <returns>The vector containing the result of the division.</returns>
190 /// <since_tizen> 3 </since_tizen>
191 public static Position operator /(Position arg1, Position arg2)
193 return arg1.Divide(arg2);
197 /// The division operator.
199 /// <param name="arg1">The vector to divide.</param>
200 /// <param name="arg2">The float value to scale the vector by.</param>
201 /// <returns>The vector containing the result of scaling.</returns>
202 /// <since_tizen> 3 </since_tizen>
203 public static Position operator /(Position arg1, float arg2)
205 return arg1.Divide(arg2);
210 /// The const array subscript operator overload. Should be 0, 1, or 2.
212 /// <param name="index">The subscript index.</param>
213 /// <returns>The float at the given index.</returns>
214 /// <since_tizen> 3 </since_tizen>
215 public float this[uint index]
219 return ValueOfIndex(index);
223 internal static Position GetPositionFromPtr(global::System.IntPtr cPtr)
225 Position ret = new Position(cPtr, false);
226 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234 /// <since_tizen> 3 </since_tizen>
235 public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
237 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
243 /// <param name="x">The x component.</param>
244 /// <param name="y">The y component.</param>
245 /// <param name="z">The z component.</param>
246 /// <since_tizen> 3 </since_tizen>
247 public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
255 /// <param name="position2d">Position2D to create this vector from.</param>
256 /// <since_tizen> 3 </since_tizen>
257 public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true)
259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
264 private Position Add(Position rhs)
266 Position ret = new Position(NDalicPINVOKE.Vector3_Add(swigCPtr, Position.getCPtr(rhs)), true);
267 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
271 private Position Subtract(Position rhs)
273 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
274 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
278 private Position Multiply(Position rhs)
280 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
285 private Position Multiply(float rhs)
287 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292 private Position Divide(Position rhs)
294 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
295 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
299 private Position Divide(float rhs)
301 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
302 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306 private Position Subtract()
308 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
309 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
313 private float ValueOfIndex(uint index)
315 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321 /// Compares if rhs is equal to.
323 /// <param name="rhs">The vector to compare.</param>
324 /// <returns>Returns true if the two vectors are equal, otherwise false.</returns>
325 /// <since_tizen> 3 </since_tizen>
326 public bool EqualTo(Position rhs)
328 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
329 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
334 /// Compares if rhs is not equal to.
336 /// <param name="rhs">The vector to compare.</param>
337 /// <returns>Returns true if the two vectors are not equal, otherwise false.</returns>
338 /// <since_tizen> 3 </since_tizen>
339 public bool NotEqualTo(Position rhs)
341 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
350 /// <since_tizen> 3 </since_tizen>
355 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
356 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
361 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 /// <since_tizen> 3 </since_tizen>
374 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
375 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
379 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 /// <since_tizen> 3 </since_tizen>
393 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
398 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
399 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405 /// ParentOrigin constants. It's 0.0.
407 /// <since_tizen> 3 </since_tizen>
408 public static float ParentOriginTop
412 float ret = NDalicPINVOKE.ParentOriginTop_get();
413 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419 /// ParentOrigin constants. It's 1.0.
421 /// <since_tizen> 3 </since_tizen>
422 public static float ParentOriginBottom
426 float ret = NDalicPINVOKE.ParentOriginBottom_get();
427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433 /// ParentOrigin constants. It's 0.0.
435 /// <since_tizen> 3 </since_tizen>
436 public static float ParentOriginLeft
440 float ret = NDalicPINVOKE.ParentOriginLeft_get();
441 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447 /// ParentOrigin constants. It's 1.0.
449 /// <since_tizen> 3 </since_tizen>
450 public static float ParentOriginRight
454 float ret = NDalicPINVOKE.ParentOriginRight_get();
455 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461 /// ParentOrigin constants. It's 0.5.
463 /// <since_tizen> 3 </since_tizen>
464 public static float ParentOriginMiddle
468 float ret = NDalicPINVOKE.ParentOriginMiddle_get();
469 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
475 /// ParentOrigin constants: 0.0, 0.0, 0.5.
477 /// <since_tizen> 3 </since_tizen>
478 public static Position ParentOriginTopLeft
482 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
483 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
484 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
490 /// ParentOrigin constants: 0.5, 0.0, 0.5.
492 /// <since_tizen> 3 </since_tizen>
493 public static Position ParentOriginTopCenter
497 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_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.0, 0.5.
507 /// <since_tizen> 3 </since_tizen>
508 public static Position ParentOriginTopRight
512 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
513 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
514 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
520 /// ParentOrigin constants: 0.0, 0.5, 0.5.
522 /// <since_tizen> 3 </since_tizen>
523 public static Position ParentOriginCenterLeft
527 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_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.0, 0.5, 0.5
537 /// <since_tizen> 3 </since_tizen>
538 public static Position ParentOriginCenter
542 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
543 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
544 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
550 /// ParentOrigin constants: 1.0, 0.5, 0.5.
552 /// <since_tizen> 3 </since_tizen>
553 public static Position ParentOriginCenterRight
557 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
558 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
559 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
565 /// ParentOrigin constants: 0.0f, 1.0f, 0.5f.
567 /// <since_tizen> 3 </since_tizen>
568 public static Position ParentOriginBottomLeft
572 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
573 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
574 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 /// ParentOrigin constants: 0.5, 1.0, 0.5.
582 /// <since_tizen> 3 </since_tizen>
583 public static Position ParentOriginBottomCenter
587 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
588 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
589 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
595 /// ParentOrigin constants: 1.0, 1.0, 0.5.
597 /// <since_tizen> 3 </since_tizen>
598 public static Position ParentOriginBottomRight
602 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
603 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
604 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
610 /// PivotPoint constants: 0.0.
612 /// <since_tizen> 4 </since_tizen>
613 public static float PivotPointTop
617 float ret = NDalicPINVOKE.AnchorPointTop_get();
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624 /// PivotPoint constants: 1.0.
626 /// <since_tizen> 4 </since_tizen>
627 public static float PivotPointBottom
631 float ret = NDalicPINVOKE.AnchorPointBottom_get();
632 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
638 /// PivotPoint constants: 0.0.
640 /// <since_tizen> 4 </since_tizen>
641 public static float PivotPointLeft
645 float ret = NDalicPINVOKE.AnchorPointLeft_get();
646 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
652 /// PivotPoint constants: 1.0.
654 /// <since_tizen> 4 </since_tizen>
655 public static float PivotPointRight
659 float ret = NDalicPINVOKE.AnchorPointRight_get();
660 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666 /// PivotPoint constants: 0.0.
668 /// <since_tizen> 4 </since_tizen>
669 public static float PivotPointMiddle
673 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
674 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
680 /// PivotPoint constants: 0.0, 0.0, 0.5.
682 /// <since_tizen> 4 </since_tizen>
683 public static Position PivotPointTopLeft
687 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
688 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
689 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
695 /// PivotPoint constants: 0.5, 0.0, 0.5.
697 /// <since_tizen> 4 </since_tizen>
698 public static Position PivotPointTopCenter
702 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_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: 1.0, 0.0, 0.5.
712 /// <since_tizen> 4 </since_tizen>
713 public static Position PivotPointTopRight
717 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
718 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
719 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
725 /// PivotPoint constants: 0.0, 0.5, 0.5.
727 /// <since_tizen> 4 </since_tizen>
728 public static Position PivotPointCenterLeft
732 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_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: 0.5, 0.5, 0.5.
742 /// <since_tizen> 4 </since_tizen>
743 public static Position PivotPointCenter
747 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
748 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
749 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
755 /// PivotPoint constants: 1.0, 0.5, 0.5.
757 /// <since_tizen> 4 </since_tizen>
758 public static Position PivotPointCenterRight
762 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
763 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
764 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
770 /// PivotPoint constants: 0.0, 1.0, 0.5.
772 /// <since_tizen> 4 </since_tizen>
773 public static Position PivotPointBottomLeft
777 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
778 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
779 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
785 /// PivotPoint constants: 0.5, 1.0, 0.5
787 /// <since_tizen> 4 </since_tizen>
788 public static Position PivotPointBottomCenter
792 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
793 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
794 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
800 /// PivotPoint constants: 1.0, 1.0, 0.5.
802 /// <since_tizen> 4 </since_tizen>
803 public static Position PivotPointBottomRight
807 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
808 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
809 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
815 /// Constant ( 1.0f, 1.0f, 1.0f ).
817 /// <since_tizen> 3 </since_tizen>
818 public static Position One
822 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
823 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
824 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
829 internal static Position XAxis
833 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
834 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
835 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
840 internal static Position YAxis
844 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
845 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
846 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
851 internal static Position ZAxis
855 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
856 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
857 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
862 internal static Position NegativeXAxis
866 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
867 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
868 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
873 internal static Position NegativeYAxis
877 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
878 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
879 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
884 internal static Position NegativeZAxis
888 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
889 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
890 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
896 /// Constant ( 0.0f, 0.0f, 0.0f ).
898 /// <since_tizen> 3 </since_tizen>
899 public static Position Zero
903 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
904 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
905 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
911 /// Converts a position instance to a Vector3 instance.
913 /// <since_tizen> 3 </since_tizen>
914 public static implicit operator Vector3(Position Position)
916 return new Vector3(Position.X, Position.Y, Position.Z);
920 /// Converts a Vector3 instance to a position instance.
922 /// <since_tizen> 3 </since_tizen>
923 public static implicit operator Position(Vector3 vec)
925 return new Position(vec.X, vec.Y, vec.Z);
929 /// [Obsolete("Please do not use! this will be deprecated")]
931 /// <since_tizen> 3 </since_tizen>
932 [Obsolete("Please do not use! this will be deprecated")]
933 public static float AnchorPointTop
937 float ret = NDalicPINVOKE.AnchorPointTop_get();
938 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
944 /// [Obsolete("Please do not use! this will be deprecated")]
946 /// <since_tizen> 3 </since_tizen>
947 [Obsolete("Please do not use! this will be deprecated")]
948 public static float AnchorPointBottom
952 float ret = NDalicPINVOKE.AnchorPointBottom_get();
953 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
959 /// [Obsolete("Please do not use! this will be deprecated")]
961 /// <since_tizen> 3 </since_tizen>
962 [Obsolete("Please do not use! this will be deprecated")]
963 public static float AnchorPointLeft
967 float ret = NDalicPINVOKE.AnchorPointLeft_get();
968 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
974 /// [Obsolete("Please do not use! this will be deprecated")]
976 /// <since_tizen> 3 </since_tizen>
977 [Obsolete("Please do not use! this will be deprecated")]
978 public static float AnchorPointRight
982 float ret = NDalicPINVOKE.AnchorPointRight_get();
983 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
989 /// [Obsolete("Please do not use! this will be deprecated")]
991 /// <since_tizen> 3 </since_tizen>
992 [Obsolete("Please do not use! this will be deprecated")]
993 public static float AnchorPointMiddle
997 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
998 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1004 /// [Obsolete("Please do not use! this will be deprecated")]
1006 /// <since_tizen> 3 </since_tizen>
1007 [Obsolete("Please do not use! this will be deprecated")]
1008 public static Position AnchorPointTopLeft
1012 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
1013 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1014 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1020 /// [Obsolete("Please do not use! this will be deprecated")]
1022 /// <since_tizen> 3 </since_tizen>
1023 [Obsolete("Please do not use! this will be deprecated")]
1024 public static Position AnchorPointTopCenter
1028 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
1029 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1030 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1036 /// [Obsolete("Please do not use! this will be deprecated")]
1038 /// <since_tizen> 3 </since_tizen>
1039 [Obsolete("Please do not use! this will be deprecated")]
1040 public static Position AnchorPointTopRight
1044 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
1045 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1046 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1052 /// [Obsolete("Please do not use! this will be deprecated")]
1054 /// <since_tizen> 3 </since_tizen>
1055 [Obsolete("Please do not use! this will be deprecated")]
1056 public static Position AnchorPointCenterLeft
1060 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
1061 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1062 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1068 /// [Obsolete("Please do not use! this will be deprecated")]
1070 /// <since_tizen> 3 </since_tizen>
1071 [Obsolete("Please do not use! this will be deprecated")]
1072 public static Position AnchorPointCenter
1076 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
1077 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1078 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1084 /// [Obsolete("Please do not use! this will be deprecated")]
1086 /// <since_tizen> 3 </since_tizen>
1087 [Obsolete("Please do not use! this will be deprecated")]
1088 public static Position AnchorPointCenterRight
1092 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
1093 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1094 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1100 /// [Obsolete("Please do not use! this will be deprecated")]
1102 /// <since_tizen> 3 </since_tizen>
1103 [Obsolete("Please do not use! this will be deprecated")]
1104 public static Position AnchorPointBottomLeft
1108 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
1109 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1116 /// [Obsolete("Please do not use! this will be deprecated")]
1118 /// <since_tizen> 3 </since_tizen>
1119 [Obsolete("Please do not use! this will be deprecated")]
1120 public static Position AnchorPointBottomCenter
1124 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
1125 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1126 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1132 /// [Obsolete("Please do not use! this will be deprecated")]
1134 /// <since_tizen> 3 </since_tizen>
1135 [Obsolete("Please do not use! this will be deprecated")]
1136 public static Position AnchorPointBottomRight
1140 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
1141 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1142 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();