logo

class

fwt::InsetPane

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

InsetPane creates padding along the four edges of its content.

Slots

insets

Insets insets := defInsets

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

Source

make

new make(Int top := 10, Int right := 10, Int bottom := 10, Int left := 10)

Construct with optional top, right, bottom, left insets

Source

onLayout

override Void onLayout()

Handle the layout event. The method is only called Pane containers. Custom panes must override this method to set the bounds on all their children.

Source

prefSize

override Size prefSize(Hints hints := Hints.def)

Source