class fwt::InsetPane

sys::Obj
  fwt::Widget
    fwt::Pane
      fwt::ContentPane
        fwt::InsetPane

@Js
@Serializable

Source

InsetPane creates padding along the four edges of its content.

insets

Insets insets := defInsets

Source

Insets to leave around the edge of the content. The default is 12 pixels on all sides.

make

new make(Int top := 12, Int? right := null, Int? bottom := null, Int? left := null)

Source

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)
onLayout

virtual override Void onLayout()

Source

prefSize

virtual override Size prefSize(Hints hints := Hints.defVal)

Source