Merge "Line wrap mode property is added." into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / 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 (!Window.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
65   {
66     public static readonly int CONTENT_DIRECTION = NDalicPINVOKE.FlexContainer_Property_CONTENT_DIRECTION_get();
67     public static readonly int FLEX_DIRECTION = NDalicPINVOKE.FlexContainer_Property_FLEX_DIRECTION_get();
68     public static readonly int FLEX_WRAP = NDalicPINVOKE.FlexContainer_Property_FLEX_WRAP_get();
69     public static readonly int JUSTIFY_CONTENT = NDalicPINVOKE.FlexContainer_Property_JUSTIFY_CONTENT_get();
70     public static readonly int ALIGN_ITEMS = NDalicPINVOKE.FlexContainer_Property_ALIGN_ITEMS_get();
71     public static readonly int ALIGN_CONTENT = NDalicPINVOKE.FlexContainer_Property_ALIGN_CONTENT_get();
72   }
73
74   public class ChildProperty 
75   {
76     public static readonly int FLEX = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_get();
77     public static readonly int ALIGN_SELF = NDalicPINVOKE.FlexContainer_ChildProperty_ALIGN_SELF_get();
78     public static readonly int FLEX_MARGIN = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_MARGIN_get();
79   }
80
81   public FlexContainer () : this (NDalicPINVOKE.FlexContainer_New(), true) {
82       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83
84   }
85
86   internal new static FlexContainer DownCast(BaseHandle handle) {
87     FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_DownCast(BaseHandle.getCPtr(handle)), true);
88     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89     return ret;
90   }
91
92   public enum FlexDirectionType {
93     Column,
94     ColumnReverse,
95     Row,
96     RowReverse
97   }
98
99   public enum ContentDirectionType {
100     Inherit,
101     LTR,
102     RTL
103   }
104
105   public enum Justification {
106     JustifyFlexStart,
107     JustifyCenter,
108     JustifyFlexEnd,
109     JustifySpaceBetween,
110     JustifySpaceAround
111   }
112
113   public enum Alignment {
114     AlignAuto,
115     AlignFlexStart,
116     AlignCenter,
117     AlignFlexEnd,
118     AlignStretch
119   }
120
121   public enum WrapType {
122     NoWrap,
123     Wrap
124   }
125
126   public int ContentDirection
127   {
128     get
129     {
130       int temp = 0;
131       GetProperty( FlexContainer.Property.CONTENT_DIRECTION).Get( out temp );
132       return temp;
133     }
134     set
135     {
136       SetProperty( FlexContainer.Property.CONTENT_DIRECTION, new Dali.Property.Value( value ) );
137     }
138   }
139   public int FlexDirection
140   {
141     get
142     {
143       int temp = 0;
144       GetProperty( FlexContainer.Property.FLEX_DIRECTION).Get( out temp );
145       return temp;
146     }
147     set
148     {
149       SetProperty( FlexContainer.Property.FLEX_DIRECTION, new Dali.Property.Value( value ) );
150     }
151   }
152   public int FlexWrap
153   {
154     get
155     {
156       int temp = 0;
157       GetProperty( FlexContainer.Property.FLEX_WRAP).Get( out temp );
158       return temp;
159     }
160     set
161     {
162       SetProperty( FlexContainer.Property.FLEX_WRAP, new Dali.Property.Value( value ) );
163     }
164   }
165   public int JustifyContent
166   {
167     get
168     {
169       int temp = 0;
170       GetProperty( FlexContainer.Property.JUSTIFY_CONTENT).Get( out temp );
171       return temp;
172     }
173     set
174     {
175       SetProperty( FlexContainer.Property.JUSTIFY_CONTENT, new Dali.Property.Value( value ) );
176     }
177   }
178   public int AlignItems
179   {
180     get
181     {
182       int temp = 0;
183       GetProperty( FlexContainer.Property.ALIGN_ITEMS).Get( out temp );
184       return temp;
185     }
186     set
187     {
188       SetProperty( FlexContainer.Property.ALIGN_ITEMS, new Dali.Property.Value( value ) );
189     }
190   }
191   public int AlignContent
192   {
193     get
194     {
195       int temp = 0;
196       GetProperty( FlexContainer.Property.ALIGN_CONTENT).Get( out temp );
197       return temp;
198     }
199     set
200     {
201       SetProperty( FlexContainer.Property.ALIGN_CONTENT, new Dali.Property.Value( value ) );
202     }
203   }
204
205 }
206
207 }