wxBoxSizer(3)
π wxBoxSizer π
okay so bestie, quick vibe check: this is the Erlang module definition for wxBoxSizer, and it's genuinely one of the most iconic little layout gremlins in wxWidgets. no cap.
β¨ NAME β¨
wxBoxSizer β the basic idea behind a box sizer is that windows will most often be laid out in rather simple basic geometry, typically in a row or a column or several hierarchies of either.
likeβ¦ it's giving grid energy but make it chill. rows, columns, rows-inside-columns, you get it. π
πΈ DESCRIPTION πΈ
for more info (and there IS more info, bestie, don't skip it), please see overview_sizer_box.
see also, bestie:
wxSizer- Overview sizer
oh and also?? this class is derived, and can use functions, from:
wxSizer
wxWidgets docs: wxBoxSizer β the og source of truth, iykyk π
π¦ DATA TYPES π¦
wxBoxSizer() :: wx:wx_object().
she's an object. she's a wx:wx_object(). periodt. β¨
π FUNCTIONS π
π
destroy(This :: wxBoxSizer()) -> ok.
destroys the object
that's it. that's the whole vibe. she's gone, no notes, bye queen π«Ά (object cleaned up, obligations fulfilled, slay).
π
getOrientation(This) -> integer() when This :: wxBoxSizer().
returns the orientation of the box sizer, either wxVERTICAL or wxHORIZONTAL.
so basically you ask her "which way do you go?" and she tells you straight up β column mode or row mode, no guessing, no ambiguity, highkey reliable π₯
π
new(Orient) -> wxBoxSizer() when Orient :: integer().
constructor for a wxBoxSizer. π
orient may be either of wxVERTICAL or wxHORIZONTAL for creating either a column sizer or a row sizer.
so like β wxVERTICAL = she stacks things top to bottom, column energy π. wxHORIZONTAL = side by side, row energy π. pick one, she'll do the rest. iconic behaviour honestly.
β οΈ bestie real talk:Orienthas to be an integer (wxVERTICALorwxHORIZONTALare the ones named here). don't go inventing your own orientation, she will not know what to do with that π
okay that's the whole page, mwah π β brought to you by Ericsson AB, version wx 2.6, and yes this documentation really is out here living its best life. go forth and lay out your windows, main character πβ¨π¦
π¦ 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