9801c4d4f995f2d9c7658187ef5cd379817290fb
[platform/core/csapi/nui.git] / Tizen.NUI / src / public / AlphaFunction.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
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
15 //
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
19 //
20 // http://www.apache.org/licenses/LICENSE-2.0
21 //
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.
27 //
28
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
30 // Some have been manually changed\r
31
32 namespace Tizen.NUI\r
33 {\r
34 \r
35     public class AlphaFunction : global::System.IDisposable\r
36     {\r
37         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
38         protected bool swigCMemOwn;\r
39 \r
40         internal AlphaFunction(global::System.IntPtr cPtr, bool cMemoryOwn)\r
41         {\r
42             swigCMemOwn = cMemoryOwn;\r
43             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
44         }\r
45 \r
46         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(AlphaFunction obj)\r
47         {\r
48             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
49         }\r
50 \r
51         ~AlphaFunction()\r
52         {\r
53             DisposeQueue.Instance.Add(this);\r
54         }\r
55 \r
56         public virtual void Dispose()\r
57         {\r
58             if (!Stage.IsInstalled())\r
59             {\r
60                 DisposeQueue.Instance.Add(this);\r
61                 return;\r
62             }\r
63 \r
64             lock (this)\r
65             {\r
66                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
67                 {\r
68                     if (swigCMemOwn)\r
69                     {\r
70                         swigCMemOwn = false;\r
71                         NDalicPINVOKE.delete_AlphaFunction(swigCPtr);\r
72                     }\r
73                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
74                 }\r
75                 global::System.GC.SuppressFinalize(this);\r
76             }\r
77         }\r
78 \r
79 \r
80         public AlphaFunction(System.Delegate func) : this(NDalicPINVOKE.new_AlphaFunction__SWIG_2(SWIGTYPE_p_f_float__float.getCPtr(new SWIGTYPE_p_f_float__float(System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func), true))), true)\r
81         {\r
82             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
83         }\r
84 \r
85         public AlphaFunction() : this(NDalicPINVOKE.new_AlphaFunction__SWIG_0(), true)\r
86         {\r
87             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
88         }\r
89 \r
90         public AlphaFunction(AlphaFunction.BuiltinFunctions function) : this(NDalicPINVOKE.new_AlphaFunction__SWIG_1((int)function), true)\r
91         {\r
92             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
93         }\r
94         //changed\r
95         internal AlphaFunction(SWIGTYPE_p_f_float__float function) : this(NDalicPINVOKE.new_AlphaFunction__SWIG_2(SWIGTYPE_p_f_float__float.getCPtr(function)), true)\r
96         {\r
97             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
98         }\r
99 \r
100         public AlphaFunction(Vector2 controlPoint0, Vector2 controlPoint1) : this(NDalicPINVOKE.new_AlphaFunction__SWIG_3(Vector2.getCPtr(controlPoint0), Vector2.getCPtr(controlPoint1)), true)\r
101         {\r
102             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
103         }\r
104 \r
105         //changed\r
106         public void GetBezierControlPoints(out Vector2 controlPoint0, out Vector2 controlPoint1)\r
107         {\r
108             Vector4 ret = new Vector4(NDalicPINVOKE.AlphaFunction_GetBezierControlPoints(swigCPtr), true);\r
109             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
110 \r
111             controlPoint0 = new Vector2(ret.X, ret.Y);\r
112             controlPoint1 = new Vector2(ret.Z, ret.W);\r
113         }\r
114         //changed\r
115         internal SWIGTYPE_p_f_float__float GetCustomFunction()\r
116         {\r
117             global::System.IntPtr cPtr = NDalicPINVOKE.AlphaFunction_GetCustomFunction(swigCPtr);\r
118             SWIGTYPE_p_f_float__float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_float__float(cPtr, false);\r
119             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
120             return ret;\r
121         }\r
122         //changed\r
123         public AlphaFunction.BuiltinFunctions GetBuiltinFunction()\r
124         {\r
125             AlphaFunction.BuiltinFunctions ret = (AlphaFunction.BuiltinFunctions)NDalicPINVOKE.AlphaFunction_GetBuiltinFunction(swigCPtr);\r
126             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
127             return ret;\r
128         }\r
129 \r
130         //changed\r
131         public AlphaFunction.Modes GetMode()\r
132         {\r
133             AlphaFunction.Modes ret = (AlphaFunction.Modes)NDalicPINVOKE.AlphaFunction_GetMode(swigCPtr);\r
134             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
135             return ret;\r
136         }\r
137         //changed\r
138         public enum BuiltinFunctions\r
139         {\r
140             Default,\r
141             Linear,\r
142             Reverse,\r
143             EaseInSquare,\r
144             EaseOutSquare,\r
145             EaseIn,\r
146             EaseOut,\r
147             EaseInOut,\r
148             EaseInSine,\r
149             EaseOutSine,\r
150             EaseInOutSine,\r
151             Bounce,\r
152             Sin,\r
153             EaseOutBack,\r
154             Count\r
155         }\r
156 \r
157         //changed\r
158         public enum Modes\r
159         {\r
160             CustomFunction = 1,\r
161             Bezier\r
162         }\r
163 \r
164     }
165
166 }