1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
2 // PROPRIETARY/CONFIDENTIAL
3 // This software is the confidential and proprietary
4 // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
5 // not disclose such Confidential Information and shall use it only in
6 // accordance with the terms of the license agreement you entered into with
7 // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the
8 // suitability of the software, either express or implied, including but not
9 // limited to the implied warranties of merchantability, fitness for a
10 // particular purpose, or non-infringement. SAMSUNG shall not be liable for any
11 // damages suffered by licensee as a result of using, modifying or distributing
12 // this software or its derivatives.
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
16 // Licensed under the Apache License, Version 2.0 (the "License");
17 // you may not use this file except in compliance with the License.
18 // You may obtain a copy of the License at
20 // http://www.apache.org/licenses/LICENSE-2.0
22 // Unless required by applicable law or agreed to in writing, software
23 // distributed under the License is distributed on an "AS IS" BASIS,
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 // See the License for the specific language governing permissions and
26 // limitations under the License.
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
30 // Some have been manually changed
35 public class FlexContainer : View
37 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
39 internal FlexContainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.FlexContainer_SWIGUpcast(cPtr), cMemoryOwn)
41 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
44 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FlexContainer obj)
46 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
51 DisposeQueue.Instance.Add(this);
54 public override void Dispose()
56 if (!Stage.IsInstalled())
58 DisposeQueue.Instance.Add(this);
64 if (swigCPtr.Handle != global::System.IntPtr.Zero)
69 NDalicPINVOKE.delete_FlexContainer(swigCPtr);
71 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
73 global::System.GC.SuppressFinalize(this);
79 internal class Property : global::System.IDisposable
81 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
82 protected bool swigCMemOwn;
84 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
86 swigCMemOwn = cMemoryOwn;
87 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
90 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
92 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
100 public virtual void Dispose()
104 if (swigCPtr.Handle != global::System.IntPtr.Zero)
109 NDalicPINVOKE.delete_FlexContainer_Property(swigCPtr);
111 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
113 global::System.GC.SuppressFinalize(this);
117 internal Property() : this(NDalicPINVOKE.new_FlexContainer_Property(), true)
119 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122 internal static readonly int CONTENT_DIRECTION = NDalicPINVOKE.FlexContainer_Property_CONTENT_DIRECTION_get();
123 internal static readonly int FLEX_DIRECTION = NDalicPINVOKE.FlexContainer_Property_FLEX_DIRECTION_get();
124 internal static readonly int FLEX_WRAP = NDalicPINVOKE.FlexContainer_Property_FLEX_WRAP_get();
125 internal static readonly int JUSTIFY_CONTENT = NDalicPINVOKE.FlexContainer_Property_JUSTIFY_CONTENT_get();
126 internal static readonly int ALIGN_ITEMS = NDalicPINVOKE.FlexContainer_Property_ALIGN_ITEMS_get();
127 internal static readonly int ALIGN_CONTENT = NDalicPINVOKE.FlexContainer_Property_ALIGN_CONTENT_get();
131 public class ChildProperty : global::System.IDisposable
133 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
134 protected bool swigCMemOwn;
136 internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn)
138 swigCMemOwn = cMemoryOwn;
139 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
142 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj)
144 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
152 public virtual void Dispose()
156 if (swigCPtr.Handle != global::System.IntPtr.Zero)
161 NDalicPINVOKE.delete_FlexContainer_ChildProperty(swigCPtr);
163 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
165 global::System.GC.SuppressFinalize(this);
169 internal ChildProperty() : this(NDalicPINVOKE.new_FlexContainer_ChildProperty(), true)
171 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174 internal static readonly int FLEX = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_get();
175 internal static readonly int ALIGN_SELF = NDalicPINVOKE.FlexContainer_ChildProperty_ALIGN_SELF_get();
176 internal static readonly int FLEX_MARGIN = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_MARGIN_get();
180 public FlexContainer() : this(NDalicPINVOKE.FlexContainer_New(), true)
182 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
185 internal FlexContainer(FlexContainer handle) : this(NDalicPINVOKE.new_FlexContainer__SWIG_1(FlexContainer.getCPtr(handle)), true)
187 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
190 internal FlexContainer Assign(FlexContainer handle)
192 FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_Assign(swigCPtr, FlexContainer.getCPtr(handle)), false);
193 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
197 internal new static FlexContainer DownCast(BaseHandle handle)
199 FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_DownCast(BaseHandle.getCPtr(handle)), true);
200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204 public enum FlexDirectionType
212 public enum ContentDirectionType
219 public enum Justification
228 public enum Alignment
242 internal enum PropertyRange
244 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
245 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
246 CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
247 CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000
250 public int ContentDirection
255 GetProperty(FlexContainer.Property.CONTENT_DIRECTION).Get(ref temp);
260 SetProperty(FlexContainer.Property.CONTENT_DIRECTION, new Tizen.NUI.PropertyValue(value));
263 public int FlexDirection
268 GetProperty(FlexContainer.Property.FLEX_DIRECTION).Get(ref temp);
273 SetProperty(FlexContainer.Property.FLEX_DIRECTION, new Tizen.NUI.PropertyValue(value));
281 GetProperty(FlexContainer.Property.FLEX_WRAP).Get(ref temp);
286 SetProperty(FlexContainer.Property.FLEX_WRAP, new Tizen.NUI.PropertyValue(value));
289 public int JustifyContent
294 GetProperty(FlexContainer.Property.JUSTIFY_CONTENT).Get(ref temp);
299 SetProperty(FlexContainer.Property.JUSTIFY_CONTENT, new Tizen.NUI.PropertyValue(value));
302 public int AlignItems
307 GetProperty(FlexContainer.Property.ALIGN_ITEMS).Get(ref temp);
312 SetProperty(FlexContainer.Property.ALIGN_ITEMS, new Tizen.NUI.PropertyValue(value));
315 public int AlignContent
320 GetProperty(FlexContainer.Property.ALIGN_CONTENT).Get(ref temp);
325 SetProperty(FlexContainer.Property.ALIGN_CONTENT, new Tizen.NUI.PropertyValue(value));