wxSizerFlags(3erl)
π
wxSizerFlags(3erl) β Functions for wxSizerFlags class β¨
okay bestie, this is the Erlang Module Definition for wxSizerFlags, and itβs giving βfinally, readable sizer flagsβ energy π«Ά
πΈ NAME πΈ
wxSizerFlags - Functions for wxSizerFlags class
π¦ DESCRIPTION π¦
Itβs a container for sizer item flags that gives them readable names. Literally that. π
Normally, when you add an item to a sizer via wxSizer:add/4, you have to specify a lot of flags and parameters which can be unwieldy. This is where wxSizerFlags comes in: it lets you specify all parameters using the named methods instead. For example, instead of the whole unwieldy flag-and-parameter situation, you can now write the named-methods version πβ¨
This is more readable and also allows you to create wxSizerFlags objects which can be reused for several sizer items.
Note that by specification, all methods of wxSizerFlags return the wxSizerFlags object itself to allowing chaining multiple methods calls like in the examples above. Chain them calls, bestie ππ
- See:
wxSizer - wxWidgets docs:
wxSizerFlags
π DATA TYPES π
wxSizerFlags() = wx:wx_object()
π EXPORTS π
π new() -> wxSizerFlags()
No args, just vibes β¨
π new(Options :: [Option]) -> wxSizerFlags()
Types:
Option = {proportion, integer()}
Creates the wxSizer with the proportion specified by proportion.
π align(This, Alignment) -> wxSizerFlags()
Types:
This = wxSizerFlags()Alignment = integer()
Sets the alignment of this wxSizerFlags to align.
This method replaces the previously set alignment with the specified one.
See: Top() (not implemented in wx), left/1, right/1, Bottom() (not implemented in wx), centre/1
π¦ border(This) -> wxSizerFlags()
Types:
This = wxSizerFlags()
π¦ border(This, Options :: [Option]) -> wxSizerFlags()
Types:
This = wxSizerFlags()Option = {direction, integer()}
Sets the wxSizerFlags to have a border with size as returned by GetDefaultBorder() (not implemented in wx).
π¦ border(This, Direction, Borderinpixels) -> wxSizerFlags()
Types:
This = wxSizerFlags()Direction = Borderinpixels = integer()
Sets the wxSizerFlags to have a border of a number of pixels specified by borderinpixels with the directions specified by direction.
Prefer to use the overload below or DoubleBorder() (not implemented in wx) or TripleBorder() (not implemented in wx) versions instead of hard-coding the border value in pixels to avoid too small borders on devices with high DPI displays.
this is the βdo not just hard-code tiny pixels on fancy screensβ warning, bestie ππ
π centre(This) -> wxSizerFlags()
Types:
This = wxSizerFlags()
See: center/1.
π center(This) -> wxSizerFlags()
Types:
This = wxSizerFlags()
Sets the object of the wxSizerFlags to center itself in the area it is given.
β expand(This) -> wxSizerFlags()
Types:
This = wxSizerFlags()
Sets the object of the wxSizerFlags to expand to fill as much area as it can.
πΈ left(This) -> wxSizerFlags()
Types:
This = wxSizerFlags()
Aligns the object to the left, similar for Align(wxALIGN_LEFT).
Unlike align/2, this method doesn't change the vertical alignment of the item.
π₯ proportion(This, Proportion) -> wxSizerFlags()
Types:
This = wxSizerFlags()Proportion = integer()
Sets the proportion of this wxSizerFlags to proportion.
πΈ right(This) -> wxSizerFlags()
Types:
This = wxSizerFlags()
Aligns the object to the right, similar for Align(wxALIGN_RIGHT).
Unlike align/2, this method doesn't change the vertical alignment of the item.
π destroy(This :: wxSizerFlags()) -> ok
Destroys the object.
later, bestie π«Ά this page is from the wxWidgets team, version wx 2.2.2.1, on wxSizerFlags(3erl) β no date in the footer, so no fake date, mwah πβ¨
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms