// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved // PROPRIETARY/CONFIDENTIAL // This software is the confidential and proprietary // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall // not disclose such Confidential Information and shall use it only in // accordance with the terms of the license agreement you entered into with // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the // suitability of the software, either express or implied, including but not // limited to the implied warranties of merchantability, fitness for a // particular purpose, or non-infringement. SAMSUNG shall not be liable for any // damages suffered by licensee as a result of using, modifying or distributing // this software or its derivatives. // Copyright (c) 2017 Samsung Electronics Co., Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts // Some have been manually changed namespace Tizen.NUI { public class FlexContainer : View { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal FlexContainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.FlexContainer_SWIGUpcast(cPtr), cMemoryOwn) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FlexContainer obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~FlexContainer() { DisposeQueue.Instance.Add(this); } public override void Dispose() { if (!Stage.IsInstalled()) { DisposeQueue.Instance.Add(this); return; } lock (this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; NDalicPINVOKE.delete_FlexContainer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); base.Dispose(); } } internal class Property : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~Property() { Dispose(); } public virtual void Dispose() { lock (this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; NDalicPINVOKE.delete_FlexContainer_Property(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } internal Property() : this(NDalicPINVOKE.new_FlexContainer_Property(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal static readonly int CONTENT_DIRECTION = NDalicPINVOKE.FlexContainer_Property_CONTENT_DIRECTION_get(); internal static readonly int FLEX_DIRECTION = NDalicPINVOKE.FlexContainer_Property_FLEX_DIRECTION_get(); internal static readonly int FLEX_WRAP = NDalicPINVOKE.FlexContainer_Property_FLEX_WRAP_get(); internal static readonly int JUSTIFY_CONTENT = NDalicPINVOKE.FlexContainer_Property_JUSTIFY_CONTENT_get(); internal static readonly int ALIGN_ITEMS = NDalicPINVOKE.FlexContainer_Property_ALIGN_ITEMS_get(); internal static readonly int ALIGN_CONTENT = NDalicPINVOKE.FlexContainer_Property_ALIGN_CONTENT_get(); } public class ChildProperty : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~ChildProperty() { Dispose(); } public virtual void Dispose() { lock (this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; NDalicPINVOKE.delete_FlexContainer_ChildProperty(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } internal ChildProperty() : this(NDalicPINVOKE.new_FlexContainer_ChildProperty(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal static readonly int FLEX = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_get(); internal static readonly int ALIGN_SELF = NDalicPINVOKE.FlexContainer_ChildProperty_ALIGN_SELF_get(); internal static readonly int FLEX_MARGIN = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_MARGIN_get(); } public FlexContainer() : this(NDalicPINVOKE.FlexContainer_New(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal FlexContainer(FlexContainer handle) : this(NDalicPINVOKE.new_FlexContainer__SWIG_1(FlexContainer.getCPtr(handle)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal FlexContainer Assign(FlexContainer handle) { FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_Assign(swigCPtr, FlexContainer.getCPtr(handle)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal new static FlexContainer DownCast(BaseHandle handle) { FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_DownCast(BaseHandle.getCPtr(handle)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public enum FlexDirectionType { Column, ColumnReverse, Row, RowReverse } public enum ContentDirectionType { Inherit, LTR, RTL } public enum Justification { JustifyFlexStart, JustifyCenter, JustifyFlexEnd, JustifySpaceBetween, JustifySpaceAround } public enum Alignment { AlignAuto, AlignFlexStart, AlignCenter, AlignFlexEnd, AlignStretch } public enum WrapType { NoWrap, Wrap } internal enum PropertyRange { PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX, PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000, CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX, CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000 } public int ContentDirection { get { int temp = 0; GetProperty(FlexContainer.Property.CONTENT_DIRECTION).Get(ref temp); return temp; } set { SetProperty(FlexContainer.Property.CONTENT_DIRECTION, new Tizen.NUI.PropertyValue(value)); } } public int FlexDirection { get { int temp = 0; GetProperty(FlexContainer.Property.FLEX_DIRECTION).Get(ref temp); return temp; } set { SetProperty(FlexContainer.Property.FLEX_DIRECTION, new Tizen.NUI.PropertyValue(value)); } } public int FlexWrap { get { int temp = 0; GetProperty(FlexContainer.Property.FLEX_WRAP).Get(ref temp); return temp; } set { SetProperty(FlexContainer.Property.FLEX_WRAP, new Tizen.NUI.PropertyValue(value)); } } public int JustifyContent { get { int temp = 0; GetProperty(FlexContainer.Property.JUSTIFY_CONTENT).Get(ref temp); return temp; } set { SetProperty(FlexContainer.Property.JUSTIFY_CONTENT, new Tizen.NUI.PropertyValue(value)); } } public int AlignItems { get { int temp = 0; GetProperty(FlexContainer.Property.ALIGN_ITEMS).Get(ref temp); return temp; } set { SetProperty(FlexContainer.Property.ALIGN_ITEMS, new Tizen.NUI.PropertyValue(value)); } } public int AlignContent { get { int temp = 0; GetProperty(FlexContainer.Property.ALIGN_CONTENT).Get(ref temp); return temp; } set { SetProperty(FlexContainer.Property.ALIGN_CONTENT, new Tizen.NUI.PropertyValue(value)); } } } }