wxStaticBoxSizer(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– wxStaticBoxSizer πŸ’–

okay so this is the Erlang Module Definition for wxStaticBoxSizer, bestie. it's a sizer. it's a box. it's a static box. hold on, let's get into it 🫢


🌸 NAME 🌸

wxStaticBoxSizer β€” so wxStaticBoxSizer is a sizer derived from wxBoxSizer but it adds a static box around the sizer. the way it just… wraps everything in a box?? iconic behavior fr fr πŸ’…


✨ DESCRIPTION ✨

The static box may be either created independently, or the sizer may create it itself as a convenience. either way bestie, the sizer owns the wxStaticBox control and will delete it in the wxStaticBoxSizer destructor. no cap, it's the sizer's box. it handles the box. it takes the box down with it. periodt 😭

Also note β€” and this is a real one β€” 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. (yes, since 2.9.1. write it down. put it in ur notes app πŸ“)

Example of use of this class:

✨ See: ✨

  • wxSizer
  • wxStaticBox
  • wxBoxSizer
  • Overview sizer

so this class is derived, and can use functions, from: πŸ‘‘

  • wxBoxSizer
  • wxSizer

wxWidgets docs: wxStaticBoxSizer


πŸŽ€ DATA TYPES πŸŽ€

wxStaticBoxSizer() :: wx:wx_object().

literally just an wx:wx_object() wearing a little bow. it's giving object. it's giving sizer. we love her πŸ¦‹


πŸ’œ FUNCTIONS πŸ’œ

πŸ’… destroy(This :: wxStaticBoxSizer()) -> ok.

Destroys the object. poof. gone. bye boo πŸ‘‹

πŸ’… getStaticBox(This) -> wxStaticBox:wxStaticBox()

when This :: wxStaticBoxSizer().

Returns the static box associated with the sizer. like, who's ur box? it'll tell u. it's so honest of it πŸ₯Ί

πŸ’… new(Orient, Parent) -> wxStaticBoxSizer()

when Orient :: integer(), Parent :: wxWindow:wxWindow();

πŸ’… new(Box, Orient) -> wxStaticBoxSizer()

when Box :: wxStaticBox:wxStaticBox(), Orient :: integer().

This constructor uses an already existing static box. u bring the box, she handles the rest. collab energy 🀝✨

πŸ’… new(Orient, Parent, [Option]) -> wxStaticBoxSizer()

when

Orient :: integer(),
Parent :: wxWindow:wxWindow(),
Option :: {label, unicode:chardata()}.

This constructor creates a new static box with the given label and parent window. brand new box, with a label? oh she's fancy. she's got a name tag and everything πŸŽ€


🫢 quick vibe check: destroy nukes it, getStaticBox hands u the box, and the two new flavors are "use the box u already have" vs "let me cook u a fresh one with a label". that's the whole tea. iykyk β˜•

and that's the page bestie, absolutely ate πŸ“ written up by Ericsson AB, this is wx 2.6, page wxStaticBoxSizer(3) β€” mwah, go forth and lay out ur windows divinely πŸ’–πŸŒˆβ­

πŸ“¦ where this page comes from