Merge "add Timer Tick event" into tizen
[platform/core/csapi/nui.git] / Tizen.NUI / src / public / PathConstrainer.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 \r
33 namespace Tizen.NUI\r
34 {\r
35 \r
36     public class PathConstrainer : Handle\r
37     {\r
38         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
39 \r
40         internal PathConstrainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PathConstrainer_SWIGUpcast(cPtr), cMemoryOwn)\r
41         {\r
42             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
43         }\r
44 \r
45         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PathConstrainer obj)\r
46         {\r
47             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
48         }\r
49 \r
50         ~PathConstrainer()\r
51         {\r
52             DisposeQueue.Instance.Add(this);\r
53         }\r
54 \r
55         public override void Dispose()\r
56         {\r
57             if (!Stage.IsInstalled())\r
58             {\r
59                 DisposeQueue.Instance.Add(this);\r
60                 return;\r
61             }\r
62 \r
63             lock (this)\r
64             {\r
65                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
66                 {\r
67                     if (swigCMemOwn)\r
68                     {\r
69                         swigCMemOwn = false;\r
70                         NDalicPINVOKE.delete_PathConstrainer(swigCPtr);\r
71                     }\r
72                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
73                 }\r
74                 global::System.GC.SuppressFinalize(this);\r
75                 base.Dispose();\r
76             }\r
77         }\r
78 \r
79 \r
80         public class Property : global::System.IDisposable\r
81         {\r
82             private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
83             protected bool swigCMemOwn;\r
84 \r
85             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)\r
86             {\r
87                 swigCMemOwn = cMemoryOwn;\r
88                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
89             }\r
90 \r
91             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)\r
92             {\r
93                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
94             }\r
95 \r
96             ~Property()\r
97             {\r
98                 Dispose();\r
99             }\r
100 \r
101             public virtual void Dispose()\r
102             {\r
103                 lock (this)\r
104                 {\r
105                     if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
106                     {\r
107                         if (swigCMemOwn)\r
108                         {\r
109                             swigCMemOwn = false;\r
110                             NDalicPINVOKE.delete_PathConstrainer_Property(swigCPtr);\r
111                         }\r
112                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
113                     }\r
114                     global::System.GC.SuppressFinalize(this);\r
115                 }\r
116             }\r
117 \r
118             public Property() : this(NDalicPINVOKE.new_PathConstrainer_Property(), true)\r
119             {\r
120                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
121             }\r
122 \r
123             internal static readonly int FORWARD = NDalicPINVOKE.PathConstrainer_Property_FORWARD_get();\r
124             internal static readonly int POINTS = NDalicPINVOKE.PathConstrainer_Property_POINTS_get();\r
125             internal static readonly int CONTROL_POINTS = NDalicPINVOKE.PathConstrainer_Property_CONTROL_POINTS_get();\r
126 \r
127         }\r
128 \r
129         public PathConstrainer() : this(NDalicPINVOKE.PathConstrainer_New(), true)\r
130         {\r
131             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
132 \r
133         }\r
134         public new static PathConstrainer DownCast(BaseHandle handle)\r
135         {\r
136             PathConstrainer ret = new PathConstrainer(NDalicPINVOKE.PathConstrainer_DownCast(BaseHandle.getCPtr(handle)), true);\r
137             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
138             return ret;\r
139         }\r
140 \r
141         internal PathConstrainer(PathConstrainer handle) : this(NDalicPINVOKE.new_PathConstrainer__SWIG_1(PathConstrainer.getCPtr(handle)), true)\r
142         {\r
143             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
144         }\r
145 \r
146         internal PathConstrainer Assign(PathConstrainer rhs)\r
147         {\r
148             PathConstrainer ret = new PathConstrainer(NDalicPINVOKE.PathConstrainer_Assign(swigCPtr, PathConstrainer.getCPtr(rhs)), false);\r
149             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
150             return ret;\r
151         }\r
152 \r
153         public void Apply(Property target, Property source, Vector2 range, Vector2 wrap)\r
154         {\r
155             NDalicPINVOKE.PathConstrainer_Apply__SWIG_0(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range), Vector2.getCPtr(wrap));\r
156             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
157         }\r
158 \r
159         public void Apply(Property target, Property source, Vector2 range)\r
160         {\r
161             NDalicPINVOKE.PathConstrainer_Apply__SWIG_1(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range));\r
162             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
163         }\r
164 \r
165         public void Remove(Handle target)\r
166         {\r
167             NDalicPINVOKE.PathConstrainer_Remove(swigCPtr, Handle.getCPtr(target));\r
168             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
169         }\r
170 \r
171         public Vector3 Forward\r
172         {\r
173             get\r
174             {\r
175                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);\r
176                 GetProperty(PathConstrainer.Property.FORWARD).Get(temp);\r
177                 return temp;\r
178             }\r
179             set\r
180             {\r
181                 SetProperty(PathConstrainer.Property.FORWARD, new Tizen.NUI.PropertyValue(value));\r
182             }\r
183         }\r
184 \r
185         public PropertyArray Points\r
186         {\r
187             get\r
188             {\r
189                 Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray();\r
190                 GetProperty(PathConstrainer.Property.POINTS).Get(temp);\r
191                 return temp;\r
192             }\r
193             set\r
194             {\r
195                 SetProperty(PathConstrainer.Property.POINTS, new Tizen.NUI.PropertyValue(value));\r
196             }\r
197         }\r
198 \r
199         public PropertyArray ControlPoints\r
200         {\r
201             get\r
202             {\r
203                 Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray();\r
204                 GetProperty(PathConstrainer.Property.CONTROL_POINTS).Get(temp);\r
205                 return temp;\r
206             }\r
207             set\r
208             {\r
209                 SetProperty(PathConstrainer.Property.CONTROL_POINTS, new Tizen.NUI.PropertyValue(value));\r
210             }\r
211         }\r
212 \r
213     }\r
214 \r
215 }\r