1 /** Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
29 public class FlexContainer : View {
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
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);
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;
44 public override void Dispose() {
46 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
49 NDalicPINVOKE.delete_FlexContainer(swigCPtr);
51 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
53 global::System.GC.SuppressFinalize(this);
58 public class Property : global::System.IDisposable {
59 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
60 protected bool swigCMemOwn;
62 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
63 swigCMemOwn = cMemoryOwn;
64 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
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;
75 public virtual void Dispose() {
77 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
80 NDalicPINVOKE.delete_FlexContainer_Property(swigCPtr);
82 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
84 global::System.GC.SuppressFinalize(this);
88 public Property() : this(NDalicPINVOKE.new_FlexContainer_Property(), true) {
89 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
101 public class ChildProperty : global::System.IDisposable {
102 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
103 protected bool swigCMemOwn;
105 internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn) {
106 swigCMemOwn = cMemoryOwn;
107 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
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;
118 public virtual void Dispose() {
120 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
123 NDalicPINVOKE.delete_FlexContainer_ChildProperty(swigCPtr);
125 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
127 global::System.GC.SuppressFinalize(this);
131 public ChildProperty() : this(NDalicPINVOKE.new_FlexContainer_ChildProperty(), true) {
132 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
141 public FlexContainer () : this (NDalicPINVOKE.FlexContainer_New(), true) {
142 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
145 public FlexContainer(FlexContainer handle) : this(NDalicPINVOKE.new_FlexContainer__SWIG_1(FlexContainer.getCPtr(handle)), true) {
146 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
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();
161 public enum FlexDirectionType {
168 public enum ContentDirectionType {
174 public enum Justification {
178 JUSTIFY_SPACE_BETWEEN,
182 public enum Alignment {
190 public enum WrapType {
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
202 public int ContentDirection
207 GetProperty( FlexContainer.Property.CONTENT_DIRECTION).Get( ref temp );
212 SetProperty( FlexContainer.Property.CONTENT_DIRECTION, new Dali.Property.Value( value ) );
215 public int FlexDirection
220 GetProperty( FlexContainer.Property.FLEX_DIRECTION).Get( ref temp );
225 SetProperty( FlexContainer.Property.FLEX_DIRECTION, new Dali.Property.Value( value ) );
233 GetProperty( FlexContainer.Property.FLEX_WRAP).Get( ref temp );
238 SetProperty( FlexContainer.Property.FLEX_WRAP, new Dali.Property.Value( value ) );
241 public int JustifyContent
246 GetProperty( FlexContainer.Property.JUSTIFY_CONTENT).Get( ref temp );
251 SetProperty( FlexContainer.Property.JUSTIFY_CONTENT, new Dali.Property.Value( value ) );
254 public int AlignItems
259 GetProperty( FlexContainer.Property.ALIGN_ITEMS).Get( ref temp );
264 SetProperty( FlexContainer.Property.ALIGN_ITEMS, new Dali.Property.Value( value ) );
267 public int AlignContent
272 GetProperty( FlexContainer.Property.ALIGN_CONTENT).Get( ref temp );
277 SetProperty( FlexContainer.Property.ALIGN_CONTENT, new Dali.Property.Value( value ) );