Merge "fixup! DALi C# binding - Generic Delegates support for EventHandlers" into...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / Alignment.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 Alignment : View {
30   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31
32   internal Alignment(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Alignment_SWIGUpcast(cPtr), cMemoryOwn) {
33     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34   }
35
36   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Alignment obj) {
37     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38   }
39
40   ~Alignment() {
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_Alignment(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 Padding : global::System.IDisposable {
59     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
60     protected bool swigCMemOwn;
61   
62     internal Padding(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(Padding obj) {
68       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
69     }
70   
71     ~Padding() {
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_Alignment_Padding(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 Padding() : this(NDalicPINVOKE.new_Alignment_Padding__SWIG_0(), true) {
89       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90     }
91   
92     public Padding(float l, float r, float t, float b) : this(NDalicPINVOKE.new_Alignment_Padding__SWIG_1(l, r, t, b), true) {
93       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
94     }
95   
96     public float left {
97       set {
98         NDalicPINVOKE.Alignment_Padding_left_set(swigCPtr, value);
99         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
100       } 
101       get {
102         float ret = NDalicPINVOKE.Alignment_Padding_left_get(swigCPtr);
103         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104         return ret;
105       } 
106     }
107   
108     public float right {
109       set {
110         NDalicPINVOKE.Alignment_Padding_right_set(swigCPtr, value);
111         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112       } 
113       get {
114         float ret = NDalicPINVOKE.Alignment_Padding_right_get(swigCPtr);
115         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116         return ret;
117       } 
118     }
119   
120     public float top {
121       set {
122         NDalicPINVOKE.Alignment_Padding_top_set(swigCPtr, value);
123         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
124       } 
125       get {
126         float ret = NDalicPINVOKE.Alignment_Padding_top_get(swigCPtr);
127         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128         return ret;
129       } 
130     }
131   
132     public float bottom {
133       set {
134         NDalicPINVOKE.Alignment_Padding_bottom_set(swigCPtr, value);
135         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
136       } 
137       get {
138         float ret = NDalicPINVOKE.Alignment_Padding_bottom_get(swigCPtr);
139         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140         return ret;
141       } 
142     }
143   
144   }
145
146   public Alignment (Alignment.Type horizontal, Alignment.Type vertical) : this (NDalicPINVOKE.Alignment_New__SWIG_0((int)horizontal, (int)vertical), true) {
147       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
148
149   }
150   public Alignment (Alignment.Type horizontal) : this (NDalicPINVOKE.Alignment_New__SWIG_1((int)horizontal), true) {
151       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152
153   }
154   public Alignment () : this (NDalicPINVOKE.Alignment_New__SWIG_2(), true) {
155       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156
157   }
158   public Alignment(Alignment alignment) : this(NDalicPINVOKE.new_Alignment__SWIG_1(Alignment.getCPtr(alignment)), true) {
159     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160   }
161
162   public new static Alignment DownCast(BaseHandle handle) {
163     Alignment ret = new Alignment(NDalicPINVOKE.Alignment_DownCast(BaseHandle.getCPtr(handle)), true);
164     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
165     return ret;
166   }
167
168   public void SetAlignmentType(Alignment.Type type) {
169     NDalicPINVOKE.Alignment_SetAlignmentType(swigCPtr, (int)type);
170     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
171   }
172
173   public Alignment.Type GetAlignmentType() {
174     Alignment.Type ret = (Alignment.Type)NDalicPINVOKE.Alignment_GetAlignmentType(swigCPtr);
175     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176     return ret;
177   }
178
179   public void SetScaling(Alignment.Scaling scaling) {
180     NDalicPINVOKE.Alignment_SetScaling(swigCPtr, (int)scaling);
181     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182   }
183
184   public Alignment.Scaling GetScaling() {
185     Alignment.Scaling ret = (Alignment.Scaling)NDalicPINVOKE.Alignment_GetScaling(swigCPtr);
186     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187     return ret;
188   }
189
190   public void SetPadding(Alignment.Padding padding) {
191     NDalicPINVOKE.Alignment_SetPadding(swigCPtr, Alignment.Padding.getCPtr(padding));
192     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
193   }
194
195   public Alignment.Padding GetPadding() {
196     Alignment.Padding ret = new Alignment.Padding(NDalicPINVOKE.Alignment_GetPadding(swigCPtr), false);
197     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198     return ret;
199   }
200
201   public Alignment Assign(Alignment alignment) {
202     Alignment ret = new Alignment(NDalicPINVOKE.Alignment_Assign(swigCPtr, Alignment.getCPtr(alignment)), false);
203     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204     return ret;
205   }
206
207   public enum Type {
208     HorizontalLeft = 1,
209     HorizontalCenter = 2,
210     HorizontalRight = 4,
211     VerticalTop = 8,
212     VerticalCenter = 16,
213     VerticalBottom = 32
214   }
215
216   public enum Scaling {
217     ScaleNone,
218     ScaleToFill,
219     ScaleToFitKeepAspect,
220     ScaleToFillKeepAspect,
221     ShrinkToFit,
222     ShrinkToFitKeepAspect
223   }
224
225 }
226
227 }