public LDMargins(LDMargins margins) { this.m_left = margins.m_left; this.m_top = margins.m_top; this.m_right = margins.m_right; this.m_bottom = margins.m_bottom; }
public LDRect marginsRemoved(LDMargins margins) { return(new LDRect(new LDPoint(xp + margins.left(), yp + margins.top()), new LDSize(w - margins.left() - margins.right(), h - margins.top() - margins.bottom()))); }
public LDRect marginsAdded(LDMargins margins) { return(new LDRect(new LDPoint(xp - margins.left(), yp - margins.top()), new LDSize(w + margins.left() + margins.right(), h + margins.top() + margins.bottom()))); }
public LDRect marginsRemoved(LDMargins margins) { return new LDRect(new LDPoint(xp + margins.left(), yp + margins.top()), new LDSize(w - margins.left() - margins.right(), h - margins.top() - margins.bottom())); }
public LDRect marginsAdded(LDMargins margins) { return new LDRect(new LDPoint(xp - margins.left(), yp - margins.top()), new LDSize(w + margins.left() + margins.right(), h + margins.top() + margins.bottom())); }