silk/staticboxsizer

wxStaticBoxSizer is a sizer derived from wxBoxSizer but adds a static box around the sizer.

The static box may be either created independently or the sizer may create it itself as a convenience. In any case, the sizer owns the wxStaticBox control and will delete it in the wxStaticBoxSizer destructor.

Note that since wxWidgets 2.9.1 you are encouraged to create the windows which are added to wxStaticBoxSizer as children of wxStaticBox itself, see this class documentation for more details.

Derived from WxBoxSizer, WxSizer

Types

pub type Label {
  Label(String)
}

Constructors

  • Label(String)
pub type WxStaticBoxSizer =
  boxsizer.WxBoxSizer(types.WxStaticBoxSizer)

Functions

pub fn destroy(
  this: WxSizer(WxBoxSizer(WxStaticBoxSizer)),
) -> OkT

Destroys the object

pub fn new2(
  orient: Int,
  parent: WxObject(WxWindow(a)),
) -> WxSizer(WxBoxSizer(WxStaticBoxSizer))

This constructor uses an already existing static box.

pub fn new3(
  orient: Int,
  parent: WxObject(WxWindow(a)),
  option: List(Label),
) -> WxSizer(WxBoxSizer(WxStaticBoxSizer))

This constructor creates a new static box with the given label and parent window.

Search Document