Margin$Typings extension

on

Properties

bottom num
Gets or sets the bottom value of this margin. Default is 0.
getter/setter pair
left num
Gets or sets the left value of this margin. Default is 0.
getter/setter pair
Gets or sets the right value of this margin. Default is 0.
getter/setter pair
top num
Gets or sets the top value of this margin. Default is 0.
getter/setter pair

Methods

copy() Margin
Create a copy of this Margin, with the same values. @expose @return {Margin}
equals(Margin m) bool
Indicates whether the given Margin is equal to this Margin. @param {Margin} m The Margin to compare to this Margin. @return {boolean} True if the two Margins have identical Top and Right and Bottom and Left values, false otherwise. @see #equalTo
equalsApprox(Margin m) bool
(undocumented) True when the given Margin is nearly equal to this Margin. @param {Margin} m The Margin to compare to the current Margin. @return {boolean} True if the two Margins have Top, Right, Bottom and Left values within 0.5, false otherwise.
equalTo(num t, num r, num b, num l) bool
Indicates whether the given margin is equal to this Margin. @param {number} t top. @param {number} r right. @param {number} b bottom. @param {number} l left. @return {boolean} True if the two Margins have identical Top and Right and Bottom and Left values, false otherwise. @see #equals
isReal() bool
True if this Margin has values that are real numbers and not infinity. @return {boolean}
set(Margin m) Margin
Modify this Margin so that its Top, Right, Bottom, and Left values are the same as the given Margin. @param {Margin} m the given Margin. @return {Margin} this.
setTo(num t, num r, num b, num l) Margin
Modify this Margin with new Top, Right, Bottom, and Left values. @param {number} t top. @param {number} r right. @param {number} b bottom. @param {number} l left. @return {Margin} this.