Merge "add Timer Tick event" into tizen
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / LinearConstrainer.cs
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
13 \r
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.\r
15 //\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
19 //\r
20 // http://www.apache.org/licenses/LICENSE-2.0\r
21 //\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
27 //\r
28 \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
31 \r
32 namespace Tizen.NUI\r
33 {\r
34 \r
35     internal class LinearConstrainer : Handle\r
36     {\r
37         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
38 \r
39         internal LinearConstrainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.LinearConstrainer_SWIGUpcast(cPtr), cMemoryOwn)\r
40         {\r
41             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
42         }\r
43 \r
44         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LinearConstrainer obj)\r
45         {\r
46             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
47         }\r
48 \r
49         ~LinearConstrainer()\r
50         {\r
51             DisposeQueue.Instance.Add(this);\r
52         }\r
53 \r
54         public override void Dispose()\r
55         {\r
56             if (!Stage.IsInstalled())\r
57             {\r
58                 DisposeQueue.Instance.Add(this);\r
59                 return;\r
60             }\r
61 \r
62             lock (this)\r
63             {\r
64                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
65                 {\r
66                     if (swigCMemOwn)\r
67                     {\r
68                         swigCMemOwn = false;\r
69                         NDalicPINVOKE.delete_LinearConstrainer(swigCPtr);\r
70                     }\r
71                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
72                 }\r
73                 global::System.GC.SuppressFinalize(this);\r
74                 base.Dispose();\r
75             }\r
76         }\r
77 \r
78 \r
79         public class Property : global::System.IDisposable\r
80         {\r
81             private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
82             protected bool swigCMemOwn;\r
83 \r
84             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)\r
85             {\r
86                 swigCMemOwn = cMemoryOwn;\r
87                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
88             }\r
89 \r
90             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)\r
91             {\r
92                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
93             }\r
94 \r
95             ~Property()\r
96             {\r
97                 Dispose();\r
98             }\r
99 \r
100             public virtual void Dispose()\r
101             {\r
102                 lock (this)\r
103                 {\r
104                     if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
105                     {\r
106                         if (swigCMemOwn)\r
107                         {\r
108                             swigCMemOwn = false;\r
109                             NDalicPINVOKE.delete_LinearConstrainer_Property(swigCPtr);\r
110                         }\r
111                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
112                     }\r
113                     global::System.GC.SuppressFinalize(this);\r
114                 }\r
115             }\r
116 \r
117             internal Property() : this(NDalicPINVOKE.new_LinearConstrainer_Property(), true)\r
118             {\r
119                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
120             }\r
121 \r
122             internal static readonly int VALUE = NDalicPINVOKE.LinearConstrainer_Property_VALUE_get();\r
123             internal static readonly int PROGRESS = NDalicPINVOKE.LinearConstrainer_Property_PROGRESS_get();\r
124 \r
125         }\r
126 \r
127         public LinearConstrainer() : this(NDalicPINVOKE.LinearConstrainer_New(), true)\r
128         {\r
129             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
130 \r
131         }\r
132         public new static LinearConstrainer DownCast(BaseHandle handle)\r
133         {\r
134             LinearConstrainer ret = new LinearConstrainer(NDalicPINVOKE.LinearConstrainer_DownCast(BaseHandle.getCPtr(handle)), true);\r
135             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
136             return ret;\r
137         }\r
138 \r
139         internal LinearConstrainer(LinearConstrainer handle) : this(NDalicPINVOKE.new_LinearConstrainer__SWIG_1(LinearConstrainer.getCPtr(handle)), true)\r
140         {\r
141             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
142         }\r
143 \r
144         internal LinearConstrainer Assign(LinearConstrainer rhs)\r
145         {\r
146             LinearConstrainer ret = new LinearConstrainer(NDalicPINVOKE.LinearConstrainer_Assign(swigCPtr, LinearConstrainer.getCPtr(rhs)), false);\r
147             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
148             return ret;\r
149         }\r
150 \r
151         public void Apply(Property target, Property source, Vector2 range, Vector2 wrap)\r
152         {\r
153             NDalicPINVOKE.LinearConstrainer_Apply__SWIG_0(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range), Vector2.getCPtr(wrap));\r
154             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
155         }\r
156 \r
157         public void Apply(Property target, Property source, Vector2 range)\r
158         {\r
159             NDalicPINVOKE.LinearConstrainer_Apply__SWIG_1(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range));\r
160             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
161         }\r
162 \r
163         internal void Remove(Handle target)\r
164         {\r
165             NDalicPINVOKE.LinearConstrainer_Remove(swigCPtr, Handle.getCPtr(target));\r
166             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
167         }\r
168 \r
169         public PropertyArray Value\r
170         {\r
171             get\r
172             {\r
173                 Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray();\r
174                 GetProperty(LinearConstrainer.Property.VALUE).Get(temp);\r
175                 return temp;\r
176             }\r
177             set\r
178             {\r
179                 SetProperty(LinearConstrainer.Property.VALUE, new Tizen.NUI.PropertyValue(value));\r
180             }\r
181         }\r
182         public PropertyArray Progress\r
183         {\r
184             get\r
185             {\r
186                 Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray();\r
187                 GetProperty(LinearConstrainer.Property.PROGRESS).Get(temp);\r
188                 return temp;\r
189             }\r
190             set\r
191             {\r
192                 SetProperty(LinearConstrainer.Property.PROGRESS, new Tizen.NUI.PropertyValue(value));\r
193             }\r
194         }\r
195 \r
196     }\r
197 \r
198 }\r