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 Window : BaseHandle
\r
38 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
40 internal Window(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Window_SWIGUpcast(cPtr), cMemoryOwn)
\r
42 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
45 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Window obj)
\r
47 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
52 DisposeQueue.Instance.Add(this);
\r
55 public override void Dispose()
\r
57 if (!Stage.IsInstalled())
\r
59 DisposeQueue.Instance.Add(this);
\r
65 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
69 swigCMemOwn = false;
\r
70 NDalicPINVOKE.delete_Window(swigCPtr);
\r
72 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
74 global::System.GC.SuppressFinalize(this);
\r
80 public Window(RectInteger windowPosition, string name, bool isTransparent) : this(NDalicPINVOKE.Window_New__SWIG_0(RectInteger.getCPtr(windowPosition), name, isTransparent), true)
\r
82 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
85 public Window(RectInteger windowPosition, string name) : this(NDalicPINVOKE.Window_New__SWIG_1(RectInteger.getCPtr(windowPosition), name), true)
\r
87 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
90 public Window(RectInteger windowPosition, string name, string className, bool isTransparent) : this(NDalicPINVOKE.Window_New__SWIG_2(RectInteger.getCPtr(windowPosition), name, className, isTransparent), true)
\r
92 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
95 public Window(RectInteger windowPosition, string name, string className) : this(NDalicPINVOKE.Window_New__SWIG_3(RectInteger.getCPtr(windowPosition), name, className), true)
\r
97 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
100 internal Window(Window handle) : this(NDalicPINVOKE.new_Window__SWIG_1(Window.getCPtr(handle)), true)
\r
102 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
105 internal Window Assign(Window rhs)
\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
112 public void ShowIndicator(IndicatorVisibleMode visibleMode)
\r
114 NDalicPINVOKE.Window_ShowIndicator(swigCPtr, (int)visibleMode);
\r
115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
118 public void SetIndicatorBgOpacity(IndicatorBgOpacity opacity)
\r
120 NDalicPINVOKE.Window_SetIndicatorBgOpacity(swigCPtr, (int)opacity);
\r
121 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
124 public void RotateIndicator(WindowOrientation orientation)
\r
126 NDalicPINVOKE.Window_RotateIndicator(swigCPtr, (int)orientation);
\r
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
130 internal void SetClass(string name, string klass)
\r
132 NDalicPINVOKE.Window_SetClass(swigCPtr, name, klass);
\r
133 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
136 public void Raise()
\r
138 NDalicPINVOKE.Window_Raise(swigCPtr);
\r
139 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
142 public void Lower()
\r
144 NDalicPINVOKE.Window_Lower(swigCPtr);
\r
145 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
148 public void Activate()
\r
150 NDalicPINVOKE.Window_Activate(swigCPtr);
\r
151 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
154 internal void AddAvailableOrientation(WindowOrientation orientation)
\r
156 NDalicPINVOKE.Window_AddAvailableOrientation(swigCPtr, (int)orientation);
\r
157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
160 internal void RemoveAvailableOrientation(WindowOrientation orientation)
\r
162 NDalicPINVOKE.Window_RemoveAvailableOrientation(swigCPtr, (int)orientation);
\r
163 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
166 internal void SetPreferredOrientation(WindowOrientation orientation)
\r
168 NDalicPINVOKE.Window_SetPreferredOrientation(swigCPtr, (int)orientation);
\r
169 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
172 internal WindowOrientation GetPreferredOrientation()
\r
174 Window.WindowOrientation ret = (Window.WindowOrientation)NDalicPINVOKE.Window_GetPreferredOrientation(swigCPtr);
\r
175 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
179 internal DragAndDropDetector GetDragAndDropDetector()
\r
181 DragAndDropDetector ret = new DragAndDropDetector(NDalicPINVOKE.Window_GetDragAndDropDetector(swigCPtr), true);
\r
182 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
186 internal Any GetNativeHandle()
\r
188 Any ret = new Any(NDalicPINVOKE.Window_GetNativeHandle(swigCPtr), true);
\r
189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
193 internal SWIGTYPE_p_Dali__SignalT_void_fboolF_t IndicatorVisibilityChangedSignal()
\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
200 public enum WindowOrientation
\r
204 PortraitInverse = 180,
\r
205 LandscapeInverse = 270
\r
208 public enum IndicatorBgOpacity
\r
215 public enum IndicatorVisibleMode
\r