コード例 #1
0
 public MeasuredSize() : this(LayoutPINVOKE.new_MeasuredSize__SWIG_0(), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public MeasuredSize(LayoutLength measuredSize) : this(LayoutPINVOKE.new_MeasuredSize__SWIG_1(LayoutLength.getCPtr(measuredSize)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public LayoutSize(int x, int y) : this(LayoutPINVOKE.new_LayoutSize__SWIG_1(x, y), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
 /// <summary>
 /// [draft] Copy of a Gridlayout to another GridLayout />
 /// </summary>
 /// <param name="other">Copy the given Grid object to another Grid object.</param>
 /// <returns>The newly created Grid object.</returns>
 internal GridLayout(GridLayout other) : this(LayoutPINVOKE.new_GridLayout_SWIG_1(GridLayout.getCPtr(other)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
 public View GetOwner()
 {
     global::System.IntPtr cPtr = LayoutPINVOKE.LayoutItemWrapperImpl_GetOwner(swigCPtr);
     View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #6
0
        /// <summary>
        /// [draft] Dispose/>
        /// </summary>
        /// <param name="type"> Type of disposal.</param>
        protected override void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            if (type == DisposeTypes.Explicit)
            {
                //Called by User
                //Release your own managed resources here.
                //You should release all of your own disposable objects here.
            }

            //Release your own unmanaged resources here.
            //You should not access any managed member here except static instance.
            //because the execution order of Finalizes is non-deterministic.
            if (swigCPtr.Handle != global::System.IntPtr.Zero)
            {
                if (swigCMemOwn)
                {
                    swigCMemOwn = false;
                    LayoutPINVOKE.delete_GridLayout(swigCPtr);
                }
                swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
            }
            base.Dispose(type);
        }
コード例 #7
0
 /// <summary>
 /// [draft] GridLayout Constructor/>
 /// </summary>
 /// <returns> New Grid object.</returns>
 public GridLayout() : this(LayoutPINVOKE.GridLayout_New(), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #8
0
ファイル: LayoutLength.cs プロジェクト: yl33/TizenFX
 public LayoutLength(LayoutLength layoutLength) : this(LayoutPINVOKE.new_LayoutLength__SWIG_1(LayoutLength.getCPtr(layoutLength)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #9
0
 public LayoutItemPtr(LayoutItemPtr rhs) : this(LayoutPINVOKE.new_LayoutItemPtr__SWIG_2(LayoutItemPtr.getCPtr(rhs)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #10
0
ファイル: LayoutLength.cs プロジェクト: yl33/TizenFX
 public LayoutLength(int value) : this(LayoutPINVOKE.new_LayoutLength__SWIG_0(value), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #11
0
 internal LayoutItemPtr(LayoutItemWrapperImpl p) : this(LayoutPINVOKE.new_LayoutItemPtr__SWIG_1(LayoutItemWrapperImpl.getCPtr(p)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #12
0
        /// <summary>
        /// Dispose Explict or Implicit
        /// </summary>
        protected virtual void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            if (type == DisposeTypes.Explicit)
            {
                //Called by User code
                //Release your own managed resources here.
                //You should release all of your own disposable objects here.
            }

            //Release your own unmanaged resources here.
            //You should not access any managed member here except static instance.
            //because the execution order of Finalizes is non-deterministic.

            if (unmanagedLayoutController.Handle != global::System.IntPtr.Zero)
            {
                LayoutPINVOKE.delete_LayoutController(unmanagedLayoutController);
                unmanagedLayoutController = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
            }

            disposed = true;
        }
コード例 #13
0
 public void Remove(uint childId)
 {
     LayoutPINVOKE.LayoutGroupWrapper_Remove__SWIG_0(swigCPtr, childId);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #14
0
 public ILayoutParent GetParent()
 {
     global::System.IntPtr cPtr = LayoutPINVOKE.LayoutItemWrapperImpl_GetParent(swigCPtr);
     //ILayoutParent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ILayoutParent(cPtr, false);
     ILayoutParent ret = (cPtr == global::System.IntPtr.Zero) ? null : new LayoutItemWrapperImpl(cPtr, false);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #15
0
ファイル: MeasuredSize.cs プロジェクト: yl33/TizenFX
 private void SetSize(LayoutLength size)
 {
     LayoutPINVOKE.MeasuredSize_SetSize(swigCPtr, LayoutLength.getCPtr(size));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #16
0
ファイル: MeasuredSize.cs プロジェクト: yl33/TizenFX
 private void SetState(MeasuredSize.StateType state)
 {
     LayoutPINVOKE.MeasuredSize_SetState(swigCPtr, (int)state);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #17
0
 public void SetMinimumHeight(LayoutLength minHeight)
 {
     LayoutPINVOKE.LayoutItemPtr_SetMinimumHeight(swigCPtr, LayoutLength.getCPtr(minHeight));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #18
0
ファイル: GridLayout.cs プロジェクト: younghajung/TizenFX
 /// <summary>
 /// [draft ] Sets the number of columns the GridLayout should have. />
 /// </summary>
 /// <param name="columns">The nunber of columns.</param>
 internal void SetColumns(int columns)
 {
     LayoutPINVOKE.GridLayout_SetColumns(swigCPtr, columns);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #19
0
 internal void SetOrientation(LinearLayout.Orientation orientation)
 {
     LayoutPINVOKE.LinearLayout_SetOrientation(swigCPtr, (int)orientation);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #20
0
 public void Unreference()
 {
     LayoutPINVOKE.LayoutItemPtr_Unreference(swigCPtr);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #21
0
 public void SetMeasuredDimensions(MeasuredSize measuredWidth, MeasuredSize measuredHeight)
 {
     LayoutPINVOKE.LayoutItemPtr_SetMeasuredDimensions(swigCPtr, MeasuredSize.getCPtr(measuredWidth), MeasuredSize.getCPtr(measuredHeight));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #22
0
 internal LayoutGroupWrapper(LayoutGroupWrapperImpl implementation) : this(LayoutPINVOKE.new_LayoutGroupWrapper__SWIG_2(LayoutGroupWrapperImpl.getCPtr(implementation)), true)
 {
     layoutGroupWrapperImpl = implementation;
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #23
0
 internal void SetCellPadding(LayoutSize size)
 {
     LayoutPINVOKE.LinearLayout_SetCellPadding(swigCPtr, LayoutSize.getCPtr(size));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #24
0
 internal void SetFlexWrap(FlexLayout.FlexWrapType flexWrap)
 {
     LayoutPINVOKE.FlexLayout_SetFlexWrap(swigCPtr, (int)flexWrap);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #25
0
 internal void SetAlignment(LinearLayout.Alignment alignment)
 {
     LayoutPINVOKE.LinearLayout_SetAlignment(swigCPtr, (uint)alignment);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #26
0
 public void Layout(LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom)
 {
     LayoutPINVOKE.LayoutItemPtr_Layout(swigCPtr, LayoutLength.getCPtr(left), LayoutLength.getCPtr(top), LayoutLength.getCPtr(right), LayoutLength.getCPtr(bottom));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #27
0
 internal void SetFlexJustification(FlexLayout.FlexJustification flexJustification)
 {
     LayoutPINVOKE.FlexLayout_SetFlexJustification(swigCPtr, (int)flexJustification);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #28
0
        /*public LayoutParent GetParent()
         * {
         *  global::System.IntPtr cPtr = (SwigDerivedClassHasMethod("GetParent", swigMethodTypes0) ? LayoutPINVOKE.LayoutItemPtr_GetParentSwigExplicitLayoutItemWrapperImpl(swigCPtr) : LayoutPINVOKE.LayoutItemPtr_GetParent(swigCPtr));
         *  LayoutParent ret = (cPtr == global::System.IntPtr.Zero) ? null : new LayoutParent(cPtr, false);
         *  if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         *  return ret;
         * }*/

        public void RequestLayout()
        {
            LayoutPINVOKE.LayoutItemPtr_RequestLayout(swigCPtr);
            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
        }
コード例 #29
0
 internal void SetFlexItemsAlignment(FlexLayout.AlignmentType flexAlignment)
 {
     LayoutPINVOKE.FlexLayout_SetFlexItemsAlignment(swigCPtr, (int)flexAlignment);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #30
0
 public void Measure(LayoutMeasureSpec widthMeasureSpec, LayoutMeasureSpec heightMeasureSpec)
 {
     LayoutPINVOKE.LayoutItemPtr_Measure(swigCPtr, LayoutMeasureSpec.getCPtr(widthMeasureSpec), LayoutMeasureSpec.getCPtr(heightMeasureSpec));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }