Merge "fixup! DALi C# binding - Generic Delegates support for EventHandlers" into...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / FlexContainer.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 FlexContainer : View {
30   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31
32   internal FlexContainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.FlexContainer_SWIGUpcast(cPtr), cMemoryOwn) {
33     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34   }
35
36   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FlexContainer obj) {
37     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38   }
39
40   ~FlexContainer() {
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_FlexContainer(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_FlexContainer_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_FlexContainer_Property(), true) {
89       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90     }
91   
92     public static readonly int CONTENT_DIRECTION = NDalicPINVOKE.FlexContainer_Property_CONTENT_DIRECTION_get();
93     public static readonly int FLEX_DIRECTION = NDalicPINVOKE.FlexContainer_Property_FLEX_DIRECTION_get();
94     public static readonly int FLEX_WRAP = NDalicPINVOKE.FlexContainer_Property_FLEX_WRAP_get();
95     public static readonly int JUSTIFY_CONTENT = NDalicPINVOKE.FlexContainer_Property_JUSTIFY_CONTENT_get();
96     public static readonly int ALIGN_ITEMS = NDalicPINVOKE.FlexContainer_Property_ALIGN_ITEMS_get();
97     public static readonly int ALIGN_CONTENT = NDalicPINVOKE.FlexContainer_Property_ALIGN_CONTENT_get();
98   
99   }
100
101   public class ChildProperty : global::System.IDisposable {
102     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
103     protected bool swigCMemOwn;
104   
105     internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn) {
106       swigCMemOwn = cMemoryOwn;
107       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
108     }
109   
110     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj) {
111       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
112     }
113   
114     ~ChildProperty() {
115       Dispose();
116     }
117   
118     public virtual void Dispose() {
119       lock(this) {
120         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
121           if (swigCMemOwn) {
122             swigCMemOwn = false;
123             NDalicPINVOKE.delete_FlexContainer_ChildProperty(swigCPtr);
124           }
125           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
126         }
127         global::System.GC.SuppressFinalize(this);
128       }
129     }
130   
131     public ChildProperty() : this(NDalicPINVOKE.new_FlexContainer_ChildProperty(), true) {
132       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133     }
134   
135     public static readonly int FLEX = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_get();
136     public static readonly int ALIGN_SELF = NDalicPINVOKE.FlexContainer_ChildProperty_ALIGN_SELF_get();
137     public static readonly int FLEX_MARGIN = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_MARGIN_get();
138   
139   }
140
141   public FlexContainer () : this (NDalicPINVOKE.FlexContainer_New(), true) {
142       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
143
144   }
145   public FlexContainer(FlexContainer handle) : this(NDalicPINVOKE.new_FlexContainer__SWIG_1(FlexContainer.getCPtr(handle)), true) {
146     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
147   }
148
149   public FlexContainer Assign(FlexContainer handle) {
150     FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_Assign(swigCPtr, FlexContainer.getCPtr(handle)), false);
151     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152     return ret;
153   }
154
155   public new static FlexContainer DownCast(BaseHandle handle) {
156     FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_DownCast(BaseHandle.getCPtr(handle)), true);
157     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158     return ret;
159   }
160
161   public enum FlexDirectionType {
162     COLUMN,
163     COLUMN_REVERSE,
164     ROW,
165     ROW_REVERSE
166   }
167
168   public enum ContentDirectionType {
169     INHERIT,
170     LTR,
171     RTL
172   }
173
174   public enum Justification {
175     JUSTIFY_FLEX_START,
176     JUSTIFY_CENTER,
177     JUSTIFY_FLEX_END,
178     JUSTIFY_SPACE_BETWEEN,
179     JUSTIFY_SPACE_AROUND
180   }
181
182   public enum Alignment {
183     ALIGN_AUTO,
184     ALIGN_FLEX_START,
185     ALIGN_CENTER,
186     ALIGN_FLEX_END,
187     ALIGN_STRETCH
188   }
189
190   public enum WrapType {
191     NO_WRAP,
192     WRAP
193   }
194
195   public enum PropertyRange {
196     PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
197     PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
198     CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
199     CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX+1000
200   }
201
202   public int ContentDirection 
203   { 
204     get 
205     {
206       int temp = 0;
207       GetProperty( FlexContainer.Property.CONTENT_DIRECTION).Get( ref temp );
208       return temp;
209     }
210     set 
211     { 
212       SetProperty( FlexContainer.Property.CONTENT_DIRECTION, new Dali.Property.Value( value ) );
213     }
214   }
215   public int FlexDirection 
216   { 
217     get 
218     {
219       int temp = 0;
220       GetProperty( FlexContainer.Property.FLEX_DIRECTION).Get( ref temp );
221       return temp;
222     }
223     set 
224     { 
225       SetProperty( FlexContainer.Property.FLEX_DIRECTION, new Dali.Property.Value( value ) );
226     }
227   }
228   public int FlexWrap 
229   { 
230     get 
231     {
232       int temp = 0;
233       GetProperty( FlexContainer.Property.FLEX_WRAP).Get( ref temp );
234       return temp;
235     }
236     set 
237     { 
238       SetProperty( FlexContainer.Property.FLEX_WRAP, new Dali.Property.Value( value ) );
239     }
240   }
241   public int JustifyContent 
242   { 
243     get 
244     {
245       int temp = 0;
246       GetProperty( FlexContainer.Property.JUSTIFY_CONTENT).Get( ref temp );
247       return temp;
248     }
249     set 
250     { 
251       SetProperty( FlexContainer.Property.JUSTIFY_CONTENT, new Dali.Property.Value( value ) );
252     }
253   }
254   public int AlignItems 
255   { 
256     get 
257     {
258       int temp = 0;
259       GetProperty( FlexContainer.Property.ALIGN_ITEMS).Get( ref temp );
260       return temp;
261     }
262     set 
263     { 
264       SetProperty( FlexContainer.Property.ALIGN_ITEMS, new Dali.Property.Value( value ) );
265     }
266   }
267   public int AlignContent 
268   { 
269     get 
270     {
271       int temp = 0;
272       GetProperty( FlexContainer.Property.ALIGN_CONTENT).Get( ref temp );
273       return temp;
274     }
275     set 
276     { 
277       SetProperty( FlexContainer.Property.ALIGN_CONTENT, new Dali.Property.Value( value ) );
278     }
279   }
280
281 }
282
283 }