wxStaticBoxSizer(3)
π 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: β¨
wxSizerwxStaticBoxwxBoxSizer- Overview sizer
so this class is derived, and can use functions, from: π
wxBoxSizerwxSizer
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:destroynukes it,getStaticBoxhands u the box, and the twonewflavors 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
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms