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 Size : global::System.IDisposable
\r
38 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
39 protected bool swigCMemOwn;
\r
41 internal Size(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(Size 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
81 internal static Size GetVector3FromPtr(global::System.IntPtr cPtr)
\r
83 Size ret = new Size(cPtr, false);
\r
84 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
89 public Size() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
\r
91 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
94 public Size(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
\r
96 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
106 NDalicPINVOKE.Vector3_Width_set(swigCPtr, value);
\r
107 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
111 float ret = NDalicPINVOKE.Vector3_Width_get(swigCPtr);
\r
112 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
117 public float Height
\r
121 NDalicPINVOKE.Vector3_Height_set(swigCPtr, value);
\r
122 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
126 float ret = NDalicPINVOKE.Vector3_Height_get(swigCPtr);
\r
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
136 NDalicPINVOKE.Vector3_Depth_set(swigCPtr, value);
\r
137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
141 float ret = NDalicPINVOKE.Vector3_Depth_get(swigCPtr);
\r
142 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
150 public class Size2D : global::System.IDisposable
\r
152 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
153 protected bool swigCMemOwn;
\r
155 internal Size2D(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
157 swigCMemOwn = cMemoryOwn;
\r
158 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
161 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Size2D obj)
\r
163 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
168 DisposeQueue.Instance.Add(this);
\r
171 public virtual void Dispose()
\r
173 if (!Stage.IsInstalled())
\r
175 DisposeQueue.Instance.Add(this);
\r
181 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
185 swigCMemOwn = false;
\r
186 NDalicPINVOKE.delete_Vector2(swigCPtr);
\r
188 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
190 global::System.GC.SuppressFinalize(this);
\r
195 internal static Size2D GetVector2FromPtr(global::System.IntPtr cPtr)
\r
197 Size2D ret = new Size2D(cPtr, false);
\r
198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
203 public Size2D() : this(NDalicPINVOKE.new_Vector2__SWIG_0(), true)
\r
205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
208 public Size2D(float x, float y) : this(NDalicPINVOKE.new_Vector2__SWIG_1(x, y), true)
\r
210 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
217 NDalicPINVOKE.Vector2_Width_set(swigCPtr, value);
\r
218 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
222 float ret = NDalicPINVOKE.Vector2_Width_get(swigCPtr);
\r
223 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
229 public float Height
\r
233 NDalicPINVOKE.Vector2_Height_set(swigCPtr, value);
\r
234 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
238 float ret = NDalicPINVOKE.Vector2_Height_get(swigCPtr);
\r
239 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r