1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
2 // PROPRIETARY/CONFIDENTIAL
3 // This software is the confidential and proprietary
4 // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
5 // not disclose such Confidential Information and shall use it only in
6 // accordance with the terms of the license agreement you entered into with
7 // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the
8 // suitability of the software, either express or implied, including but not
9 // limited to the implied warranties of merchantability, fitness for a
10 // particular purpose, or non-infringement. SAMSUNG shall not be liable for any
11 // damages suffered by licensee as a result of using, modifying or distributing
12 // this software or its derivatives.
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
16 // Licensed under the Apache License, Version 2.0 (the "License");
17 // you may not use this file except in compliance with the License.
18 // You may obtain a copy of the License at
20 // http://www.apache.org/licenses/LICENSE-2.0
22 // Unless required by applicable law or agreed to in writing, software
23 // distributed under the License is distributed on an "AS IS" BASIS,
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 // See the License for the specific language governing permissions and
26 // limitations under the License.
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
30 // Some have been manually changed
36 public class Position : global::System.IDisposable
38 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
39 protected bool swigCMemOwn;
41 internal Position(global::System.IntPtr cPtr, bool cMemoryOwn)
43 swigCMemOwn = cMemoryOwn;
44 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
47 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position obj)
49 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
54 DisposeQueue.Instance.Add(this);
57 public virtual void Dispose()
59 if (!Stage.IsInstalled())
61 DisposeQueue.Instance.Add(this);
67 if (swigCPtr.Handle != global::System.IntPtr.Zero)
72 NDalicPINVOKE.delete_Vector3(swigCPtr);
74 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
76 global::System.GC.SuppressFinalize(this);
80 internal static Position GetVector3FromPtr(global::System.IntPtr cPtr)
82 Position ret = new Position(cPtr, false);
83 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
87 public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
89 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92 public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
94 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
102 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
106 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
107 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
117 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
122 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
132 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
136 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142 public static float ParentOriginTop
146 float ret = NDalicPINVOKE.ParentOriginTop_get();
147 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152 public static float ParentOriginBottom
156 float ret = NDalicPINVOKE.ParentOriginBottom_get();
157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
162 public static float ParentOriginLeft
166 float ret = NDalicPINVOKE.ParentOriginLeft_get();
167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
172 public static float ParentOriginRight
176 float ret = NDalicPINVOKE.ParentOriginRight_get();
177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182 public static float ParentOriginMiddle
186 float ret = NDalicPINVOKE.ParentOriginMiddle_get();
187 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192 public static Position ParentOriginTopLeft
196 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
197 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
203 public static Position ParentOriginTopCenter
207 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
208 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214 public static Position ParentOriginTopRight
218 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
219 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
225 public static Position ParentOriginCenterLeft
229 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
230 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 public static Position ParentOriginCenter
240 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
241 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
247 public static Position ParentOriginCenterRight
251 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
252 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
253 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
258 public static Position ParentOriginBottomLeft
262 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
263 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269 public static Position ParentOriginBottomCenter
273 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
274 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280 public static Position ParentOriginBottomRight
284 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
285 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
291 public static float AnchorPointTop
295 float ret = NDalicPINVOKE.AnchorPointTop_get();
296 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
301 public static float AnchorPointBottom
305 float ret = NDalicPINVOKE.AnchorPointBottom_get();
306 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311 public static float AnchorPointLeft
315 float ret = NDalicPINVOKE.AnchorPointLeft_get();
316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321 public static float AnchorPointRight
325 float ret = NDalicPINVOKE.AnchorPointRight_get();
326 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
331 public static float AnchorPointMiddle
335 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
336 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341 public static Position AnchorPointTopLeft
345 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
346 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
352 public static Position AnchorPointTopCenter
356 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
357 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
358 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363 public static Position AnchorPointTopRight
367 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
368 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
369 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374 public static Position AnchorPointCenterLeft
378 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
379 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385 public static Position AnchorPointCenter
389 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
390 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
391 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 public static Position AnchorPointCenterRight
400 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
401 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
402 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
407 public static Position AnchorPointBottomLeft
411 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
412 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
413 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
418 public static Position AnchorPointBottomCenter
422 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
423 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
424 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
429 public static Position AnchorPointBottomRight
433 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
434 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
435 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
442 public struct ParentOrigin
444 public static readonly float Top = Position.ParentOriginTop;
445 public static readonly float Bottom = Position.ParentOriginBottom;
446 public static readonly float Left = Position.ParentOriginLeft;
447 public static readonly float Right = Position.ParentOriginRight;
448 public static readonly float Middle = Position.ParentOriginMiddle;
449 public static readonly Position TopLeft = Position.ParentOriginTopLeft;
450 public static readonly Position TopCenter = Position.ParentOriginTopCenter;
451 public static readonly Position TopRight = Position.ParentOriginTopRight;
452 public static readonly Position CenterLeft = Position.ParentOriginCenterLeft;
453 public static readonly Position Center = Position.ParentOriginCenter;
454 public static readonly Position CenterRight = Position.ParentOriginCenterRight;
455 public static readonly Position BottomLeft = Position.ParentOriginBottomLeft;
456 public static readonly Position BottomCenter = Position.ParentOriginBottomCenter;
457 public static readonly Position BottomRight = Position.ParentOriginBottomRight;
459 public struct AnchorPoint
461 public static readonly float Top = Position.AnchorPointTop;
462 public static readonly float Bottom = Position.AnchorPointBottom;
463 public static readonly float Left = Position.AnchorPointLeft;
464 public static readonly float Right = Position.AnchorPointRight;
465 public static readonly float Middle = Position.AnchorPointMiddle;
466 public static readonly Position TopLeft = Position.AnchorPointTopLeft;
467 public static readonly Position TopCenter = Position.AnchorPointTopCenter;
468 public static readonly Position TopRight = Position.AnchorPointTopRight;
469 public static readonly Position CenterLeft = Position.AnchorPointCenterLeft;
470 public static readonly Position Center = Position.AnchorPointCenter;
471 public static readonly Position CenterRight = Position.AnchorPointCenterRight;
472 public static readonly Position BottomLeft = Position.AnchorPointBottomLeft;
473 public static readonly Position BottomCenter = Position.AnchorPointBottomCenter;
474 public static readonly Position BottomRight = Position.AnchorPointBottomRight;