Esempio n. 1
0
 public bool IsEqualTo(LayoutSize target)
 {
     if (this.Width == target.Width && this.Height == target.Height)
     {
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 internal void SetCellPadding(LayoutSize size)
 {
     LayoutPINVOKE.LinearLayout_SetCellPadding(swigCPtr, LayoutSize.getCPtr(size));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Whether the values of two LayoutSize objects are equals
 /// </summary>
 /// <param name="obj">Object to be compared against.</param>
 /// <returns>true if obj is equal to this LayoutSize.</returns>
 public override bool Equals(object obj)
 {
     if (obj is LayoutSize)
     {
         LayoutSize layoutSize = (LayoutSize)obj;
         return((layoutSize.Width == Width) && (layoutSize.Height == Height));
     }
     return(false);
 }
Esempio n. 4
0
        internal LayoutSize GetCellPadding()
        {
            LayoutSize ret = new LayoutSize(LayoutPINVOKE.LinearLayout_GetCellPadding(swigCPtr), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 5
0
        private bool EqualTo(LayoutSize rhs)
        {
            bool ret = LayoutPINVOKE.LayoutSize_EqualTo(swigCPtr, LayoutSize.getCPtr(rhs));

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 6
0
 /// <summary>
 /// Overridden method called when the layout size changes.<br />
 /// </summary>
 /// <param name="newSize">The new size of the layout.</param>
 /// <param name="oldSize">The old size of the layout.</param>
 protected override void OnSizeChanged(LayoutSize newSize, LayoutSize oldSize)
 {
     // Do nothing
 }
 internal void OnSizeChangedNative(LayoutSize newSize, LayoutSize oldSize)
 {
     LayoutPINVOKE.LayoutItemWrapperImpl_OnSizeChanged(swigCPtr, LayoutSize.getCPtr(newSize), LayoutSize.getCPtr(oldSize));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 8
0
 /// <summary>
 /// Virtual method to inform derived classes when the layout size changed. <br />
 /// </summary>
 /// <param name="newSize">The new size of the layout.</param>
 /// <param name="oldSize">The old size of the layout.</param>
 protected virtual void OnSizeChanged(LayoutSize newSize, LayoutSize oldSize)
 {
 }
Esempio n. 9
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LayoutSize obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }