@js
InsetPane creates padding along the four edges of its content.
Slots
-
static private Insets defInsets := Insets(12)
- insetsSource
-
Insets insets := defInsets
Insets to leave around the edge of the content. The default is 12 pixels on all sides.
- makeSource
-
new make(Int top := 12, Int? right := null, Int? bottom := null, Int? left := null)
Construct with optional top, right, bottom, left insets. If one side is not specified, that value is reflected from the opposite side:
InsetPane(5) === InsetPane(5,5,5,5) InsetPane(5,6) === InsetPane(5,6,5,6) InsetPane(5,6,7) === InsetPane(5,6,7,6)
- onLayoutSource
-
override Void onLayout()
Overrides fwt::ContentPane.onLayout
Doc inherited from fwt::Pane.onLayout
Handle the layout event by setting the bounds on all children.
- prefSizeSource
-
override Size prefSize(Hints hints := Hints.defVal)
Overrides fwt::ContentPane.prefSize
Doc inherited from fwt::Pane.prefSize
Compute the preferred size of this widget. The hints indicate constraints the widget should consider in its calculations. If no constraints are known for width, then
hints.w
will be null. If no constraints are known for height, thenhints.h
will be null.