public bool IsEqualTo(LayoutSize target) { if (this.Width == target.Width && this.Height == target.Height) { return(true); } return(false); }
internal void SetCellPadding(LayoutSize size) { LayoutPINVOKE.LinearLayout_SetCellPadding(swigCPtr, LayoutSize.getCPtr(size)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <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); }
internal LayoutSize GetCellPadding() { LayoutSize ret = new LayoutSize(LayoutPINVOKE.LinearLayout_GetCellPadding(swigCPtr), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private bool EqualTo(LayoutSize rhs) { bool ret = LayoutPINVOKE.LayoutSize_EqualTo(swigCPtr, LayoutSize.getCPtr(rhs)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <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(); }
/// <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) { }
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); }