1 /** Copyright (c) 2016 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
29 public class Window : BaseHandle {
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal Window(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Window_SWIGUpcast(cPtr), cMemoryOwn) {
33 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
36 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Window obj) {
37 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 public override void Dispose() {
46 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
49 NDalicPINVOKE.delete_Window(swigCPtr);
51 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
53 global::System.GC.SuppressFinalize(this);
58 public Window (RectInteger windowPosition, string name, bool isTransparent) : this (NDalicPINVOKE.Window_New__SWIG_0(RectInteger.getCPtr(windowPosition), name, isTransparent), true) {
59 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
62 public Window (RectInteger windowPosition, string name) : this (NDalicPINVOKE.Window_New__SWIG_1(RectInteger.getCPtr(windowPosition), name), true) {
63 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66 public Window (RectInteger windowPosition, string name, string className, bool isTransparent) : this (NDalicPINVOKE.Window_New__SWIG_2(RectInteger.getCPtr(windowPosition), name, className, isTransparent), true) {
67 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70 public Window (RectInteger windowPosition, string name, string className) : this (NDalicPINVOKE.Window_New__SWIG_3(RectInteger.getCPtr(windowPosition), name, className), true) {
71 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
74 public Window(Window handle) : this(NDalicPINVOKE.new_Window__SWIG_1(Window.getCPtr(handle)), true) {
75 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78 public Window Assign(Window rhs) {
79 Window ret = new Window(NDalicPINVOKE.Window_Assign(swigCPtr, Window.getCPtr(rhs)), false);
80 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
84 public void ShowIndicator(Window.IndicatorVisibleMode visibleMode) {
85 NDalicPINVOKE.Window_ShowIndicator(swigCPtr, (int)visibleMode);
86 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89 public void SetIndicatorBgOpacity(Window.IndicatorBgOpacity opacity) {
90 NDalicPINVOKE.Window_SetIndicatorBgOpacity(swigCPtr, (int)opacity);
91 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
94 public void RotateIndicator(Window.WindowOrientation orientation) {
95 NDalicPINVOKE.Window_RotateIndicator(swigCPtr, (int)orientation);
96 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
99 public void SetClass(string name, string klass) {
100 NDalicPINVOKE.Window_SetClass(swigCPtr, name, klass);
101 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104 public void Raise() {
105 NDalicPINVOKE.Window_Raise(swigCPtr);
106 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109 public void Lower() {
110 NDalicPINVOKE.Window_Lower(swigCPtr);
111 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
114 public void Activate() {
115 NDalicPINVOKE.Window_Activate(swigCPtr);
116 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
119 public void AddAvailableOrientation(Window.WindowOrientation orientation) {
120 NDalicPINVOKE.Window_AddAvailableOrientation(swigCPtr, (int)orientation);
121 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
124 public void RemoveAvailableOrientation(Window.WindowOrientation orientation) {
125 NDalicPINVOKE.Window_RemoveAvailableOrientation(swigCPtr, (int)orientation);
126 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
129 public void SetPreferredOrientation(Window.WindowOrientation orientation) {
130 NDalicPINVOKE.Window_SetPreferredOrientation(swigCPtr, (int)orientation);
131 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
134 public Window.WindowOrientation GetPreferredOrientation() {
135 Window.WindowOrientation ret = (Window.WindowOrientation)NDalicPINVOKE.Window_GetPreferredOrientation(swigCPtr);
136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140 public DragAndDropDetector GetDragAndDropDetector() {
141 DragAndDropDetector ret = new DragAndDropDetector(NDalicPINVOKE.Window_GetDragAndDropDetector(swigCPtr), true);
142 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
146 public Any GetNativeHandle() {
147 Any ret = new Any(NDalicPINVOKE.Window_GetNativeHandle(swigCPtr), true);
148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152 public SWIGTYPE_p_Dali__SignalT_void_fboolF_t IndicatorVisibilityChangedSignal() {
153 SWIGTYPE_p_Dali__SignalT_void_fboolF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fboolF_t(NDalicPINVOKE.Window_IndicatorVisibilityChangedSignal(swigCPtr), false);
154 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158 public enum WindowOrientation {
161 PORTRAIT_INVERSE = 180,
162 LANDSCAPE_INVERSE = 270
165 public enum IndicatorBgOpacity {
171 public enum IndicatorVisibleMode {