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.
19 using System.ComponentModel;
25 /// Position is a three-dimensional vector.
27 /// <since_tizen> 3 </since_tizen>
28 public class Position : global::System.IDisposable
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
34 /// <since_tizen> 3 </since_tizen>
35 protected bool swigCMemOwn;
37 internal Position(global::System.IntPtr cPtr, bool cMemoryOwn)
39 swigCMemOwn = cMemoryOwn;
40 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
43 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position obj)
45 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48 //A Flag to check who called Dispose(). (By User or DisposeQueue)
49 private bool isDisposeQueued = false;
51 /// A Flat to check if it is already disposed.
53 /// <since_tizen> 3 </since_tizen>
54 protected bool disposed = false;
59 /// <since_tizen> 3 </since_tizen>
64 isDisposeQueued = true;
65 DisposeQueue.Instance.Add(this);
72 /// <since_tizen> 3 </since_tizen>
75 //Throw excpetion if Dispose() is called in separate thread.
76 if (!Window.IsInstalled())
78 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
83 Dispose(DisposeTypes.Implicit);
87 Dispose(DisposeTypes.Explicit);
88 System.GC.SuppressFinalize(this);
95 /// <since_tizen> 3 </since_tizen>
96 protected virtual void Dispose(DisposeTypes type)
103 if(type == DisposeTypes.Explicit)
106 //Release your own managed resources here.
107 //You should release all of your own disposable objects here.
110 //Release your own unmanaged resources here.
111 //You should not access any managed member here except static instance.
112 //because the execution order of Finalizes is non-deterministic.
114 if (swigCPtr.Handle != global::System.IntPtr.Zero)
119 NDalicPINVOKE.delete_Vector3(swigCPtr);
121 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
128 /// An addition operator.
130 /// <param name="arg1">The vector to add.</param>
131 /// <param name="arg2">The vector to add.</param>
132 /// <returns>The vector containing the result of the addition.</returns>
133 /// <since_tizen> 3 </since_tizen>
134 public static Position operator +(Position arg1, Position arg2)
136 return arg1.Add(arg2);
140 /// The subtraction operator.
142 /// <param name="arg1">The vector to subtract.</param>
143 /// <param name="arg2">The vector to subtract.</param>
144 /// <returns>The vector containing the result of the subtraction.</returns>
145 /// <since_tizen> 3 </since_tizen>
146 public static Position operator -(Position arg1, Position arg2)
148 return arg1.Subtract(arg2);
152 /// The unary negation operator.
154 /// <param name="arg1">The vector to negate.</param>
155 /// <returns>The vector containg the negation.</returns>
156 /// <since_tizen> 3 </since_tizen>
157 public static Position operator -(Position arg1)
159 return arg1.Subtract();
163 /// The multiplication operator.
165 /// <param name="arg1">The vector to multiply.</param>
166 /// <param name="arg2">The vector to multiply.</param>
167 /// <returns>The vector containing the result of the multiplication.</returns>
168 /// <since_tizen> 3 </since_tizen>
169 public static Position operator *(Position arg1, Position arg2)
171 return arg1.Multiply(arg2);
175 /// The multiplication operator.
177 /// <param name="arg1">The vector to multiply</param>
178 /// <param name="arg2">The float value to scale the vector.</param>
179 /// <returns>The vector containing the result of scaling.</returns>
180 /// <since_tizen> 3 </since_tizen>
181 public static Position operator *(Position arg1, float arg2)
183 return arg1.Multiply(arg2);
187 /// The division operator.
189 /// <param name="arg1">The vector to divide.</param>
190 /// <param name="arg2">The vector to divide.</param>
191 /// <returns>The vector containing the result of the division.</returns>
192 /// <since_tizen> 3 </since_tizen>
193 public static Position operator /(Position arg1, Position arg2)
195 return arg1.Divide(arg2);
199 /// The division operator.
201 /// <param name="arg1">The vector to divide.</param>
202 /// <param name="arg2">The float value to scale the vector by.</param>
203 /// <returns>The vector containing the result of scaling.</returns>
204 /// <since_tizen> 3 </since_tizen>
205 public static Position operator /(Position arg1, float arg2)
207 return arg1.Divide(arg2);
212 /// The const array subscript operator overload. Should be 0, 1, or 2.
214 /// <param name="index">The subscript index.</param>
215 /// <returns>The float at the given index.</returns>
216 /// <since_tizen> 3 </since_tizen>
217 public float this[uint index]
221 return ValueOfIndex(index);
225 internal static Position GetPositionFromPtr(global::System.IntPtr cPtr)
227 Position ret = new Position(cPtr, false);
228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 /// <since_tizen> 3 </since_tizen>
237 public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
239 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
245 /// <param name="x">The x component.</param>
246 /// <param name="y">The y component.</param>
247 /// <param name="z">The z component.</param>
248 /// <since_tizen> 3 </since_tizen>
249 public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
257 /// <param name="position2d">Position2D to create this vector from.</param>
258 /// <since_tizen> 3 </since_tizen>
259 public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true)
261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266 private Position Add(Position rhs)
268 Position ret = new Position(NDalicPINVOKE.Vector3_Add(swigCPtr, Position.getCPtr(rhs)), true);
269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273 private Position Subtract(Position rhs)
275 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280 private Position Multiply(Position rhs)
282 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
283 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
287 private Position Multiply(float rhs)
289 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
290 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
294 private Position Divide(Position rhs)
296 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
297 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
301 private Position Divide(float rhs)
303 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
304 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
308 private Position Subtract()
310 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
311 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
315 private float ValueOfIndex(uint index)
317 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
318 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
323 /// Compares if rhs is equal to.
325 /// <param name="rhs">The vector to compare.</param>
326 /// <returns>Returns true if the two vectors are equal, otherwise false.</returns>
327 /// <since_tizen> 3 </since_tizen>
328 public bool EqualTo(Position rhs)
330 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
331 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336 /// Compares if rhs is not equal to.
338 /// <param name="rhs">The vector to compare.</param>
339 /// <returns>Returns true if the two vectors are not equal, otherwise false.</returns>
340 /// <since_tizen> 3 </since_tizen>
341 public bool NotEqualTo(Position rhs)
343 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
344 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
352 /// <since_tizen> 3 </since_tizen>
357 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
358 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
362 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
371 /// <since_tizen> 3 </since_tizen>
376 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
381 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
382 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
390 /// <since_tizen> 3 </since_tizen>
395 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
400 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
407 /// ParentOrigin constants. It's 0.0.
409 /// <since_tizen> 3 </since_tizen>
410 public static float ParentOriginTop
414 float ret = NDalicPINVOKE.ParentOriginTop_get();
415 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 /// ParentOrigin constants. It's 1.0.
423 /// <since_tizen> 3 </since_tizen>
424 public static float ParentOriginBottom
428 float ret = NDalicPINVOKE.ParentOriginBottom_get();
429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435 /// ParentOrigin constants. It's 0.0.
437 /// <since_tizen> 3 </since_tizen>
438 public static float ParentOriginLeft
442 float ret = NDalicPINVOKE.ParentOriginLeft_get();
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449 /// ParentOrigin constants. It's 1.0.
451 /// <since_tizen> 3 </since_tizen>
452 public static float ParentOriginRight
456 float ret = NDalicPINVOKE.ParentOriginRight_get();
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
463 /// ParentOrigin constants. It's 0.5.
465 /// <since_tizen> 3 </since_tizen>
466 public static float ParentOriginMiddle
470 float ret = NDalicPINVOKE.ParentOriginMiddle_get();
471 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 /// ParentOrigin constants: 0.0, 0.0, 0.5.
479 /// <since_tizen> 3 </since_tizen>
480 public static Position ParentOriginTopLeft
484 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
485 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
486 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492 /// ParentOrigin constants: 0.5, 0.0, 0.5.
494 /// <since_tizen> 3 </since_tizen>
495 public static Position ParentOriginTopCenter
499 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_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.0, 0.5.
509 /// <since_tizen> 3 </since_tizen>
510 public static Position ParentOriginTopRight
514 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
515 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
522 /// ParentOrigin constants: 0.0, 0.5, 0.5.
524 /// <since_tizen> 3 </since_tizen>
525 public static Position ParentOriginCenterLeft
529 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
530 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
531 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537 /// ParentOrigin constants: 0.0, 0.5, 0.5
539 /// <since_tizen> 3 </since_tizen>
540 public static Position ParentOriginCenter
544 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
545 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
546 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
552 /// ParentOrigin constants: 1.0, 0.5, 0.5.
554 /// <since_tizen> 3 </since_tizen>
555 public static Position ParentOriginCenterRight
559 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
560 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
561 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
567 /// ParentOrigin constants: 0.0f, 1.0f, 0.5f.
569 /// <since_tizen> 3 </since_tizen>
570 public static Position ParentOriginBottomLeft
574 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
575 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
576 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582 /// ParentOrigin constants: 0.5, 1.0, 0.5.
584 /// <since_tizen> 3 </since_tizen>
585 public static Position ParentOriginBottomCenter
589 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
590 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
591 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597 /// ParentOrigin constants: 1.0, 1.0, 0.5.
599 /// <since_tizen> 3 </since_tizen>
600 public static Position ParentOriginBottomRight
604 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
605 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
606 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
612 /// PivotPoint constants: 0.0.
614 /// <since_tizen> 3 </since_tizen>
615 public static float PivotPointTop
619 float ret = NDalicPINVOKE.AnchorPointTop_get();
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626 /// PivotPoint constants: 1.0.
628 /// <since_tizen> 3 </since_tizen>
629 public static float PivotPointBottom
633 float ret = NDalicPINVOKE.AnchorPointBottom_get();
634 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
640 /// PivotPoint constants: 0.0.
642 /// <since_tizen> 3 </since_tizen>
643 public static float PivotPointLeft
647 float ret = NDalicPINVOKE.AnchorPointLeft_get();
648 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 /// PivotPoint constants: 1.0.
656 /// <since_tizen> 3 </since_tizen>
657 public static float PivotPointRight
661 float ret = NDalicPINVOKE.AnchorPointRight_get();
662 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
668 /// PivotPoint constants: 0.0.
670 /// <since_tizen> 3 </since_tizen>
671 public static float PivotPointMiddle
675 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682 /// PivotPoint constants: 0.0, 0.0, 0.5.
684 /// <since_tizen> 3 </since_tizen>
685 public static Position PivotPointTopLeft
689 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
690 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
691 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
697 /// PivotPoint constants: 0.5, 0.0, 0.5.
699 /// <since_tizen> 3 </since_tizen>
700 public static Position PivotPointTopCenter
704 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_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: 1.0, 0.0, 0.5.
714 /// <since_tizen> 3 </since_tizen>
715 public static Position PivotPointTopRight
719 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
720 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
721 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
727 /// PivotPoint constants: 0.0, 0.5, 0.5.
729 /// <since_tizen> 3 </since_tizen>
730 public static Position PivotPointCenterLeft
734 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
735 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
736 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
742 /// PivotPoint constants: 0.5, 0.5, 0.5.
744 /// <since_tizen> 3 </since_tizen>
745 public static Position PivotPointCenter
749 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
750 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
751 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
757 /// PivotPoint constants: 1.0, 0.5, 0.5.
759 /// <since_tizen> 3 </since_tizen>
760 public static Position PivotPointCenterRight
764 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
765 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
766 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
772 /// PivotPoint constants: 0.0, 1.0, 0.5.
774 /// <since_tizen> 3 </since_tizen>
775 public static Position PivotPointBottomLeft
779 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
780 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
781 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
787 /// PivotPoint constants: 0.5, 1.0, 0.5
789 /// <since_tizen> 3 </since_tizen>
790 public static Position PivotPointBottomCenter
794 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
795 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
796 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
802 /// PivotPoint constants: 1.0, 1.0, 0.5.
804 /// <since_tizen> 3 </since_tizen>
805 public static Position PivotPointBottomRight
809 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
810 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
811 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
817 /// Constant ( 1.0f, 1.0f, 1.0f ).
819 /// <since_tizen> 3 </since_tizen>
820 public static Position One
824 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
825 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
826 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
831 internal static Position XAxis
835 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
836 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
837 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
842 internal static Position YAxis
846 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
847 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
848 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
853 internal static Position ZAxis
857 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
858 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
859 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
864 internal static Position NegativeXAxis
868 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
869 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
870 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
875 internal static Position NegativeYAxis
879 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
880 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
881 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
886 internal static Position NegativeZAxis
890 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
891 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
892 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
898 /// Constant ( 0.0f, 0.0f, 0.0f ).
900 /// <since_tizen> 3 </since_tizen>
901 public static Position Zero
905 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
906 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
907 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
913 /// Converts a position instance to a Vector3 instance.
915 /// <since_tizen> 3 </since_tizen>
916 public static implicit operator Vector3(Position Position)
918 return new Vector3(Position.X, Position.Y, Position.Z);
922 /// Converts a Vector3 instance to a position instance.
924 /// <since_tizen> 3 </since_tizen>
925 public static implicit operator Position(Vector3 vec)
927 return new Position(vec.X, vec.Y, vec.Z);
931 /// [Obsolete("Please do not use! this will be deprecated")]
933 /// <since_tizen> 3 </since_tizen>
934 /// Please do not use! this will be deprecated!
935 /// Instead please use PivotPointTop.
936 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointTop")]
937 [EditorBrowsable(EditorBrowsableState.Never)]
938 public static float AnchorPointTop
942 float ret = NDalicPINVOKE.AnchorPointTop_get();
943 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
949 /// [Obsolete("Please do not use! this will be deprecated")]
951 /// <since_tizen> 3 </since_tizen>
952 /// Please do not use! this will be deprecated!
953 /// Instead please use PivotPointBottom.
954 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointBottom")]
955 [EditorBrowsable(EditorBrowsableState.Never)]
956 public static float AnchorPointBottom
960 float ret = NDalicPINVOKE.AnchorPointBottom_get();
961 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
967 /// [Obsolete("Please do not use! this will be deprecated")]
969 /// <since_tizen> 3 </since_tizen>
970 /// Please do not use! this will be deprecated!
971 /// Instead please use PivotPointLeft.
972 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointLeft")]
973 [EditorBrowsable(EditorBrowsableState.Never)]
974 public static float AnchorPointLeft
978 float ret = NDalicPINVOKE.AnchorPointLeft_get();
979 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
985 /// [Obsolete("Please do not use! this will be deprecated")]
987 /// <since_tizen> 3 </since_tizen>
988 /// Please do not use! this will be deprecated!
989 /// Instead please use PivotPointRight.
990 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointRight")]
991 [EditorBrowsable(EditorBrowsableState.Never)]
992 public static float AnchorPointRight
996 float ret = NDalicPINVOKE.AnchorPointRight_get();
997 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1003 /// [Obsolete("Please do not use! this will be deprecated")]
1005 /// <since_tizen> 3 </since_tizen>
1006 /// Please do not use! this will be deprecated!
1007 /// Instead please use PivotPointMiddle.
1008 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointMiddle")]
1009 [EditorBrowsable(EditorBrowsableState.Never)]
1010 public static float AnchorPointMiddle
1014 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
1015 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1021 /// [Obsolete("Please do not use! this will be deprecated")]
1023 /// <since_tizen> 3 </since_tizen>
1024 /// Please do not use! this will be deprecated!
1025 /// Instead please use PivotPointTopLeft.
1026 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointTopLeft")]
1027 [EditorBrowsable(EditorBrowsableState.Never)]
1028 public static Position AnchorPointTopLeft
1032 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
1033 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1034 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1040 /// [Obsolete("Please do not use! this will be deprecated")]
1042 /// <since_tizen> 3 </since_tizen>
1043 /// Please do not use! this will be deprecated!
1044 /// Instead please use PivotPointTopCenter.
1045 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointTopCenter")]
1046 [EditorBrowsable(EditorBrowsableState.Never)]
1047 public static Position AnchorPointTopCenter
1051 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
1052 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1053 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1059 /// [Obsolete("Please do not use! this will be deprecated")]
1061 /// <since_tizen> 3 </since_tizen>
1062 /// Please do not use! this will be deprecated!
1063 /// Instead please use PivotPointTopRight.
1064 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointTopRight")]
1065 [EditorBrowsable(EditorBrowsableState.Never)]
1066 public static Position AnchorPointTopRight
1070 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
1071 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1072 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1078 /// [Obsolete("Please do not use! this will be deprecated")]
1080 /// <since_tizen> 3 </since_tizen>
1081 /// Please do not use! this will be deprecated!
1082 /// Instead please use PivotPointCenterLeft.
1083 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointCenterLeft")]
1084 [EditorBrowsable(EditorBrowsableState.Never)]
1085 public static Position AnchorPointCenterLeft
1089 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
1090 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1091 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1097 /// [Obsolete("Please do not use! this will be deprecated")]
1099 /// <since_tizen> 3 </since_tizen>
1100 /// Please do not use! this will be deprecated!
1101 /// Instead please use PivotPointCenter.
1102 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointCenter")]
1103 [EditorBrowsable(EditorBrowsableState.Never)]
1104 public static Position AnchorPointCenter
1108 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_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 /// Please do not use! this will be deprecated!
1120 /// Instead please use PivotPointCenterRight.
1121 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointCenterRight")]
1122 [EditorBrowsable(EditorBrowsableState.Never)]
1123 public static Position AnchorPointCenterRight
1127 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
1128 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1129 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1135 /// [Obsolete("Please do not use! this will be deprecated")]
1137 /// <since_tizen> 3 </since_tizen>
1138 /// Please do not use! this will be deprecated!
1139 /// Instead please use PivotPointBottomLeft.
1140 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointBottomLeft")]
1141 [EditorBrowsable(EditorBrowsableState.Never)]
1142 public static Position AnchorPointBottomLeft
1146 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
1147 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1154 /// [Obsolete("Please do not use! this will be deprecated")]
1156 /// <since_tizen> 3 </since_tizen>
1157 /// Please do not use! this will be deprecated!
1158 /// Instead please use PivotPointBottomCenter.
1159 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointBottomCenter")]
1160 [EditorBrowsable(EditorBrowsableState.Never)]
1161 public static Position AnchorPointBottomCenter
1165 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
1166 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1173 /// [Obsolete("Please do not use! this will be deprecated")]
1175 /// <since_tizen> 3 </since_tizen>
1176 /// Please do not use! this will be deprecated!
1177 /// Instead please use PivotPointBottomRight.
1178 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPointBottomRight")]
1179 [EditorBrowsable(EditorBrowsableState.Never)]
1180 public static Position AnchorPointBottomRight
1184 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
1185 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
1186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();