Insets type (joe.win)


The Insets type used to set margins and padding around Node widgets.

Initializer

Methods

Insets Initializer


Insets(pixels) → Insets
Insets(top, right, bottom, left) → Insets

Returns a Insets, which represents a margin on the four sides of a Node. If a single value pixels is given, the margin will be the same on all four sides; otherwise, the initializer expects all four values in the given order.

Methods


insets.getBottom()


insets.getBottom() → Number

Gets the width of the margin on the bottom of the node, in pixels.

insets.getLeft()


insets.getLeft() → Number

Gets the width of the margin on the left of the node, in pixels.

insets.getRight()


insets.getRight() → Number

Gets the width of the margin on the right of the node, in pixels.

insets.getTop()


insets.getTop() → Number

Gets the width of the margin on the top of the node, in pixels.