Merge "DALi C# Tizen GBS build: - currently GBS full auto building is impossible...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / Layer.cs
1 /** Copyright (c) 2016 Samsung Electronics Co., Ltd.
2 *
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
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
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.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.9
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Dali {
28
29 public class Layer : Actor {
30   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31
32   internal Layer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Layer_SWIGUpcast(cPtr), cMemoryOwn) {
33     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34   }
35
36   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Layer obj) {
37     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38   }
39
40   ~Layer() {
41     Dispose();
42   }
43
44   public override void Dispose() {
45     lock(this) {
46       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
47         if (swigCMemOwn) {
48           swigCMemOwn = false;
49           NDalicPINVOKE.delete_Layer(swigCPtr);
50         }
51         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
52       }
53       global::System.GC.SuppressFinalize(this);
54       base.Dispose();
55     }
56   }
57
58   public class Property : global::System.IDisposable {
59     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
60     protected bool swigCMemOwn;
61   
62     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
63       swigCMemOwn = cMemoryOwn;
64       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
65     }
66   
67     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
68       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
69     }
70   
71     ~Property() {
72       Dispose();
73     }
74   
75     public virtual void Dispose() {
76       lock(this) {
77         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
78           if (swigCMemOwn) {
79             swigCMemOwn = false;
80             NDalicPINVOKE.delete_Layer_Property(swigCPtr);
81           }
82           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
83         }
84         global::System.GC.SuppressFinalize(this);
85       }
86     }
87   
88     public Property() : this(NDalicPINVOKE.new_Layer_Property(), true) {
89       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90     }
91   
92     public static readonly int CLIPPING_ENABLE = NDalicPINVOKE.Layer_Property_CLIPPING_ENABLE_get();
93     public static readonly int CLIPPING_BOX = NDalicPINVOKE.Layer_Property_CLIPPING_BOX_get();
94     public static readonly int BEHAVIOR = NDalicPINVOKE.Layer_Property_BEHAVIOR_get();
95   
96   }
97
98   public Layer () : this (NDalicPINVOKE.Layer_New(), true) {
99       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
100
101   }
102   public new static Layer DownCast(BaseHandle handle) {
103     Layer ret = new Layer(NDalicPINVOKE.Layer_DownCast(BaseHandle.getCPtr(handle)), true);
104     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105     return ret;
106   }
107
108   public Layer(Layer copy) : this(NDalicPINVOKE.new_Layer__SWIG_1(Layer.getCPtr(copy)), true) {
109     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110   }
111
112   public Layer Assign(Layer rhs) {
113     Layer ret = new Layer(NDalicPINVOKE.Layer_Assign(swigCPtr, Layer.getCPtr(rhs)), false);
114     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115     return ret;
116   }
117
118   public uint GetDepth() {
119     uint ret = NDalicPINVOKE.Layer_GetDepth(swigCPtr);
120     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121     return ret;
122   }
123
124   public void Raise() {
125     NDalicPINVOKE.Layer_Raise(swigCPtr);
126     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
127   }
128
129   public void Lower() {
130     NDalicPINVOKE.Layer_Lower(swigCPtr);
131     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132   }
133
134   public void RaiseAbove(Layer target) {
135     NDalicPINVOKE.Layer_RaiseAbove(swigCPtr, Layer.getCPtr(target));
136     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
137   }
138
139   public void LowerBelow(Layer target) {
140     NDalicPINVOKE.Layer_LowerBelow(swigCPtr, Layer.getCPtr(target));
141     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142   }
143
144   public void RaiseToTop() {
145     NDalicPINVOKE.Layer_RaiseToTop(swigCPtr);
146     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
147   }
148
149   public void LowerToBottom() {
150     NDalicPINVOKE.Layer_LowerToBottom(swigCPtr);
151     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152   }
153
154   public void MoveAbove(Layer target) {
155     NDalicPINVOKE.Layer_MoveAbove(swigCPtr, Layer.getCPtr(target));
156     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
157   }
158
159   public void MoveBelow(Layer target) {
160     NDalicPINVOKE.Layer_MoveBelow(swigCPtr, Layer.getCPtr(target));
161     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
162   }
163
164   public void SetBehavior(Layer.LayerBehavior behavior) {
165     NDalicPINVOKE.Layer_SetBehavior(swigCPtr, (int)behavior);
166     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
167   }
168
169   public Layer.LayerBehavior GetBehavior() {
170     Layer.LayerBehavior ret = (Layer.LayerBehavior)NDalicPINVOKE.Layer_GetBehavior(swigCPtr);
171     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
172     return ret;
173   }
174
175   public void SetClipping(bool enabled) {
176     NDalicPINVOKE.Layer_SetClipping(swigCPtr, enabled);
177     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
178   }
179
180   public bool IsClipping() {
181     bool ret = NDalicPINVOKE.Layer_IsClipping(swigCPtr);
182     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
183     return ret;
184   }
185
186   public void SetClippingBox(int x, int y, int width, int height) {
187     NDalicPINVOKE.Layer_SetClippingBox__SWIG_0(swigCPtr, x, y, width, height);
188     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189   }
190
191   public void SetClippingBox(RectInteger box) {
192     NDalicPINVOKE.Layer_SetClippingBox__SWIG_1(swigCPtr, RectInteger.getCPtr(box));
193     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194   }
195
196   public RectInteger GetClippingBox() {
197     RectInteger ret = new RectInteger(NDalicPINVOKE.Layer_GetClippingBox(swigCPtr), true);
198     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
199     return ret;
200   }
201
202   public void SetDepthTestDisabled(bool disable) {
203     NDalicPINVOKE.Layer_SetDepthTestDisabled(swigCPtr, disable);
204     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
205   }
206
207   public bool IsDepthTestDisabled() {
208     bool ret = NDalicPINVOKE.Layer_IsDepthTestDisabled(swigCPtr);
209     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
210     return ret;
211   }
212
213   public void SetSortFunction(SWIGTYPE_p_f_r_q_const__Dali__Vector3__float function) {
214     NDalicPINVOKE.Layer_SetSortFunction(swigCPtr, SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.getCPtr(function));
215     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
216   }
217
218   public void SetTouchConsumed(bool consume) {
219     NDalicPINVOKE.Layer_SetTouchConsumed(swigCPtr, consume);
220     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221   }
222
223   public bool IsTouchConsumed() {
224     bool ret = NDalicPINVOKE.Layer_IsTouchConsumed(swigCPtr);
225     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
226     return ret;
227   }
228
229   public void SetHoverConsumed(bool consume) {
230     NDalicPINVOKE.Layer_SetHoverConsumed(swigCPtr, consume);
231     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
232   }
233
234   public bool IsHoverConsumed() {
235     bool ret = NDalicPINVOKE.Layer_IsHoverConsumed(swigCPtr);
236     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
237     return ret;
238   }
239
240   public enum LayerBehavior {
241     LAYER_2D,
242     LAYER_UI = LAYER_2D,
243     LAYER_3D
244   }
245
246   public enum TreeDepthMultiplier {
247     TREE_DEPTH_MULTIPLIER = 10000
248   }
249
250   public bool ClippingEnable 
251   { 
252     get 
253     {
254       bool temp = false;
255       GetProperty( Layer.Property.CLIPPING_ENABLE).Get( ref temp );
256       return temp;
257     }
258     set 
259     { 
260       SetProperty( Layer.Property.CLIPPING_ENABLE, new Dali.Property.Value( value ) );
261     }
262   }
263   public RectInteger ClippingBox 
264   { 
265     get 
266     {
267       RectInteger temp = new RectInteger(0,0,0,0);
268       GetProperty( Layer.Property.CLIPPING_BOX).Get(  temp );
269       return temp;
270     }
271     set 
272     { 
273       SetProperty( Layer.Property.CLIPPING_BOX, new Dali.Property.Value( value ) );
274     }
275   }
276   public string Behavior 
277   { 
278     get 
279     {
280       string temp;
281       GetProperty( Layer.Property.BEHAVIOR).Get( out temp );
282       return temp;
283     }
284     set 
285     { 
286       SetProperty( Layer.Property.BEHAVIOR, new Dali.Property.Value( value ) );
287     }
288   }
289
290 }
291
292 }