Merge "SVACE issue resolved" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / FlexContainer.cs
1 /** Copyright (c) 2017 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.10
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     DisposeQueue.Instance.Add(this);
42   }
43
44   public override void Dispose() {
45     if (!Stage.IsInstalled()) {
46       DisposeQueue.Instance.Add(this);
47       return;
48     }
49
50     lock(this) {
51       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
52         if (swigCMemOwn) {
53           swigCMemOwn = false;
54           NDalicPINVOKE.delete_FlexContainer(swigCPtr);
55         }
56         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
57       }
58       global::System.GC.SuppressFinalize(this);
59       base.Dispose();
60     }
61   }
62
63
64   public class Property : global::System.IDisposable {
65     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
66     protected bool swigCMemOwn;
67   
68     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
69       swigCMemOwn = cMemoryOwn;
70       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
71     }
72   
73     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
74       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
75     }
76   
77     ~Property() {
78       Dispose();
79     }
80   
81     public virtual void Dispose() {
82       lock(this) {
83         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
84           if (swigCMemOwn) {
85             swigCMemOwn = false;
86             NDalicPINVOKE.delete_FlexContainer_Property(swigCPtr);
87           }
88           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
89         }
90         global::System.GC.SuppressFinalize(this);
91       }
92     }
93   
94     public Property() : this(NDalicPINVOKE.new_FlexContainer_Property(), true) {
95       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
96     }
97   
98     public static readonly int CONTENT_DIRECTION = NDalicPINVOKE.FlexContainer_Property_CONTENT_DIRECTION_get();
99     public static readonly int FLEX_DIRECTION = NDalicPINVOKE.FlexContainer_Property_FLEX_DIRECTION_get();
100     public static readonly int FLEX_WRAP = NDalicPINVOKE.FlexContainer_Property_FLEX_WRAP_get();
101     public static readonly int JUSTIFY_CONTENT = NDalicPINVOKE.FlexContainer_Property_JUSTIFY_CONTENT_get();
102     public static readonly int ALIGN_ITEMS = NDalicPINVOKE.FlexContainer_Property_ALIGN_ITEMS_get();
103     public static readonly int ALIGN_CONTENT = NDalicPINVOKE.FlexContainer_Property_ALIGN_CONTENT_get();
104   
105   }
106
107   public class ChildProperty : global::System.IDisposable {
108     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
109     protected bool swigCMemOwn;
110   
111     internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn) {
112       swigCMemOwn = cMemoryOwn;
113       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
114     }
115   
116     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj) {
117       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
118     }
119   
120     ~ChildProperty() {
121       Dispose();
122     }
123   
124     public virtual void Dispose() {
125       lock(this) {
126         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
127           if (swigCMemOwn) {
128             swigCMemOwn = false;
129             NDalicPINVOKE.delete_FlexContainer_ChildProperty(swigCPtr);
130           }
131           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
132         }
133         global::System.GC.SuppressFinalize(this);
134       }
135     }
136   
137     public ChildProperty() : this(NDalicPINVOKE.new_FlexContainer_ChildProperty(), true) {
138       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
139     }
140   
141     public static readonly int FLEX = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_get();
142     public static readonly int ALIGN_SELF = NDalicPINVOKE.FlexContainer_ChildProperty_ALIGN_SELF_get();
143     public static readonly int FLEX_MARGIN = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_MARGIN_get();
144   
145   }
146
147   public FlexContainer () : this (NDalicPINVOKE.FlexContainer_New(), true) {
148       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149
150   }
151   public FlexContainer(FlexContainer handle) : this(NDalicPINVOKE.new_FlexContainer__SWIG_1(FlexContainer.getCPtr(handle)), true) {
152     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153   }
154
155   public FlexContainer Assign(FlexContainer handle) {
156     FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_Assign(swigCPtr, FlexContainer.getCPtr(handle)), false);
157     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158     return ret;
159   }
160
161   public new static FlexContainer DownCast(BaseHandle handle) {
162     FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_DownCast(BaseHandle.getCPtr(handle)), true);
163     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
164     return ret;
165   }
166
167   public enum FlexDirectionType {
168     COLUMN,
169     COLUMN_REVERSE,
170     ROW,
171     ROW_REVERSE
172   }
173
174   public enum ContentDirectionType {
175     INHERIT,
176     LTR,
177     RTL
178   }
179
180   public enum Justification {
181     JUSTIFY_FLEX_START,
182     JUSTIFY_CENTER,
183     JUSTIFY_FLEX_END,
184     JUSTIFY_SPACE_BETWEEN,
185     JUSTIFY_SPACE_AROUND
186   }
187
188   public enum Alignment {
189     ALIGN_AUTO,
190     ALIGN_FLEX_START,
191     ALIGN_CENTER,
192     ALIGN_FLEX_END,
193     ALIGN_STRETCH
194   }
195
196   public enum WrapType {
197     NO_WRAP,
198     WRAP
199   }
200
201   public enum PropertyRange {
202     PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
203     PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
204     CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
205     CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX+1000
206   }
207
208   public int ContentDirection
209   {
210     get
211     {
212       int temp = 0;
213       GetProperty( FlexContainer.Property.CONTENT_DIRECTION).Get( ref temp );
214       return temp;
215     }
216     set
217     {
218       SetProperty( FlexContainer.Property.CONTENT_DIRECTION, new Dali.Property.Value( value ) );
219     }
220   }
221   public int FlexDirection
222   {
223     get
224     {
225       int temp = 0;
226       GetProperty( FlexContainer.Property.FLEX_DIRECTION).Get( ref temp );
227       return temp;
228     }
229     set
230     {
231       SetProperty( FlexContainer.Property.FLEX_DIRECTION, new Dali.Property.Value( value ) );
232     }
233   }
234   public int FlexWrap
235   {
236     get
237     {
238       int temp = 0;
239       GetProperty( FlexContainer.Property.FLEX_WRAP).Get( ref temp );
240       return temp;
241     }
242     set
243     {
244       SetProperty( FlexContainer.Property.FLEX_WRAP, new Dali.Property.Value( value ) );
245     }
246   }
247   public int JustifyContent
248   {
249     get
250     {
251       int temp = 0;
252       GetProperty( FlexContainer.Property.JUSTIFY_CONTENT).Get( ref temp );
253       return temp;
254     }
255     set
256     {
257       SetProperty( FlexContainer.Property.JUSTIFY_CONTENT, new Dali.Property.Value( value ) );
258     }
259   }
260   public int AlignItems
261   {
262     get
263     {
264       int temp = 0;
265       GetProperty( FlexContainer.Property.ALIGN_ITEMS).Get( ref temp );
266       return temp;
267     }
268     set
269     {
270       SetProperty( FlexContainer.Property.ALIGN_ITEMS, new Dali.Property.Value( value ) );
271     }
272   }
273   public int AlignContent
274   {
275     get
276     {
277       int temp = 0;
278       GetProperty( FlexContainer.Property.ALIGN_CONTENT).Get( ref temp );
279       return temp;
280     }
281     set
282     {
283       SetProperty( FlexContainer.Property.ALIGN_CONTENT, new Dali.Property.Value( value ) );
284     }
285   }
286
287 }
288
289 }