dali 1.2.28 version upgrade
[platform/core/csapi/nui.git] / Tizen.NUI / src / public / Window.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 //
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 //
28
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 Window : BaseHandle\r
37     {\r
38         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
39 \r
40         internal Window(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Window_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(Window 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         ~Window()\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_Window(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 Window(Rectangle windowPosition, string name, bool isTransparent) : this(NDalicPINVOKE.Window_New__SWIG_0(Rectangle.getCPtr(windowPosition), name, isTransparent), true)\r
81         {\r
82             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
83 \r
84         }\r
85         public Window(Rectangle windowPosition, string name) : this(NDalicPINVOKE.Window_New__SWIG_1(Rectangle.getCPtr(windowPosition), name), true)\r
86         {\r
87             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
88 \r
89         }\r
90         public Window(Rectangle windowPosition, string name, string className, bool isTransparent) : this(NDalicPINVOKE.Window_New__SWIG_2(Rectangle.getCPtr(windowPosition), name, className, isTransparent), true)\r
91         {\r
92             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
93 \r
94         }\r
95         public Window(Rectangle windowPosition, string name, string className) : this(NDalicPINVOKE.Window_New__SWIG_3(Rectangle.getCPtr(windowPosition), name, className), true)\r
96         {\r
97             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
98 \r
99         }\r
100         internal Window(Window handle) : this(NDalicPINVOKE.new_Window__SWIG_1(Window.getCPtr(handle)), true)\r
101         {\r
102             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
103         }\r
104 \r
105         internal Window Assign(Window rhs)\r
106         {\r
107             Window ret = new Window(NDalicPINVOKE.Window_Assign(swigCPtr, Window.getCPtr(rhs)), false);\r
108             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
109             return ret;\r
110         }\r
111 \r
112         public void ShowIndicator(Window.IndicatorVisibleMode visibleMode)\r
113         {\r
114             NDalicPINVOKE.Window_ShowIndicator(swigCPtr, (int)visibleMode);\r
115             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
116         }\r
117 \r
118         public void SetIndicatorBgOpacity(Window.IndicatorBgOpacity opacity)\r
119         {\r
120             NDalicPINVOKE.Window_SetIndicatorBgOpacity(swigCPtr, (int)opacity);\r
121             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
122         }\r
123 \r
124         public void RotateIndicator(Window.WindowOrientation orientation)\r
125         {\r
126             NDalicPINVOKE.Window_RotateIndicator(swigCPtr, (int)orientation);\r
127             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
128         }\r
129 \r
130         internal void SetClass(string name, string klass)\r
131         {\r
132             NDalicPINVOKE.Window_SetClass(swigCPtr, name, klass);\r
133             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
134         }\r
135 \r
136         public void Raise()\r
137         {\r
138             NDalicPINVOKE.Window_Raise(swigCPtr);\r
139             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
140         }\r
141 \r
142         public void Lower()\r
143         {\r
144             NDalicPINVOKE.Window_Lower(swigCPtr);\r
145             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
146         }\r
147 \r
148         public void Activate()\r
149         {\r
150             NDalicPINVOKE.Window_Activate(swigCPtr);\r
151             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
152         }\r
153 \r
154         internal void AddAvailableOrientation(Window.WindowOrientation orientation)\r
155         {\r
156             NDalicPINVOKE.Window_AddAvailableOrientation(swigCPtr, (int)orientation);\r
157             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
158         }\r
159 \r
160         internal void RemoveAvailableOrientation(Window.WindowOrientation orientation)\r
161         {\r
162             NDalicPINVOKE.Window_RemoveAvailableOrientation(swigCPtr, (int)orientation);\r
163             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
164         }\r
165 \r
166         internal void SetPreferredOrientation(Window.WindowOrientation orientation)\r
167         {\r
168             NDalicPINVOKE.Window_SetPreferredOrientation(swigCPtr, (int)orientation);\r
169             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
170         }\r
171 \r
172         internal Window.WindowOrientation GetPreferredOrientation()\r
173         {\r
174             Window.WindowOrientation ret = (Window.WindowOrientation)NDalicPINVOKE.Window_GetPreferredOrientation(swigCPtr);\r
175             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
176             return ret;\r
177         }\r
178 \r
179         internal DragAndDropDetector GetDragAndDropDetector()\r
180         {\r
181             DragAndDropDetector ret = new DragAndDropDetector(NDalicPINVOKE.Window_GetDragAndDropDetector(swigCPtr), true);\r
182             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
183             return ret;\r
184         }\r
185 \r
186         internal Any GetNativeHandle()\r
187         {\r
188             Any ret = new Any(NDalicPINVOKE.Window_GetNativeHandle(swigCPtr), true);\r
189             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
190             return ret;\r
191         }\r
192 \r
193         internal SWIGTYPE_p_Dali__SignalT_void_fboolF_t IndicatorVisibilityChangedSignal()\r
194         {\r
195             SWIGTYPE_p_Dali__SignalT_void_fboolF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fboolF_t(NDalicPINVOKE.Window_IndicatorVisibilityChangedSignal(swigCPtr), false);\r
196             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
197             return ret;\r
198         }\r
199 \r
200         public enum WindowOrientation\r
201         {\r
202             Portrait = 0,\r
203             Landscape = 90,\r
204             PortraitInverse = 180,\r
205             LandscapeInverse = 270\r
206         }\r
207 \r
208         public enum IndicatorBgOpacity\r
209         {\r
210             Opaque = 100,\r
211             Translucent = 50,\r
212             Transparent = 0\r
213         }\r
214 \r
215         public enum IndicatorVisibleMode\r
216         {\r
217             Invisible = 0,\r
218             Visible = 1,\r
219             Auto = 2\r
220         }\r
221 \r
222     }
223
224 }