Insets

Methods
1
Fields
4

Getting one

Insets.new(…)
Container.new():getInsets()
EmptyBorder.new(…):getBorderInsets()

Methods

MethodReturnsDescription
new(top: number, left: number, bottom: number, right: number)InsetsInsets.new(top, left, bottom, right): four edge widths.

Fields

FieldTypeDescription
topnumbertop: the edge above.
leftnumberleft: the left edge.
bottomnumberbottom: the edge below.

Returned by

MethodReturnsDescription
Container.getInsetsInsetsThe insets: the border's, else zero (the native member).
EmptyBorder.getBorderInsetsInsets(EmptyBorder) -> Insets: A new Insets of the four edges.
InsetsClass.newInsetsInsets.new(top, left, bottom, right): four edge widths.

Method details

new

new: (top: number, left: number, bottom: number, right: number) -> Insets

Insets.new(top, left, bottom, right): four edge widths.