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