Margin$Typings extension

on

Properties

bottom num

Available on Margin, provided by the Margin$Typings extension

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

Available on Margin, provided by the Margin$Typings extension

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

Available on Margin, provided by the Margin$Typings extension

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

Available on Margin, provided by the Margin$Typings extension

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

Methods

copy() Margin

Available on Margin, provided by the Margin$Typings extension

Create a copy of this Margin, with the same values. @expose @return {Margin}
equals(Margin m) bool

Available on Margin, provided by the Margin$Typings extension

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

Available on Margin, provided by the Margin$Typings extension

(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

Available on Margin, provided by the Margin$Typings extension

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

Available on Margin, provided by the Margin$Typings extension

True if this Margin has values that are real numbers and not infinity. @return {boolean}
set(Margin m) Margin

Available on Margin, provided by the Margin$Typings extension

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

Available on Margin, provided by the Margin$Typings extension

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.