wxAuiTabArt(3)
β¨ wxAuiTabArt β¨
okay so bestie, welcome to wxAuiTabArt β it's the art provider situation from the Erlang wx module, and it defines literally all the drawing functions that wxAuiNotebook uses. she's the one doing the visuals, the aesthetic, the whole vibe. π
π DESCRIPTION π
so the way this works is: it lets wxAuiNotebook have a pluggable look-and-feel. like, swap out the whole outfit and the notebook still slays. iconic behavior tbh.
by default, a wxAuiNotebook uses an instance of this class called wxAuiDefaultTabArt β and heads up, that one is not implemented in wx β which provides bitmap art and a colour scheme that's adapted to the major platforms' look. so you've got options, bestie:
- you can derive from that class to alter its behaviour, or
- you can write a completely new tab art class from scratch. main character energy, honestly.
another example of creating a new wxAuiNotebook tab bar is wxAuiSimpleTabArt. π¦
then to actually make use of your new tab art, call wxAuiNotebook:setArtProvider/2. that's the plug-in moment. periodt.
wxWidgets docs: wxAuiTabArt
π DATA TYPES π
wxAuiTabArt()::wx:wx_object().
π FUNCTIONS π
every single one of these gives back ok. no drama, no surprises. π«Ά
setActiveColour(This, Colour) -> ok
when
This :: wxAuiTabArt(),
Colour :: wx:wx_colour().
sets the colour of the selected tab. that's the tab that's like, the tab rn. π
Since: 2.9.2
setColour(This, Colour) -> ok
when This :: wxAuiTabArt(), Colour :: wx:wx_colour().
sets the colour of the inactive tabs. the ones just vibing in the background, not picked yet. π
Since: 2.9.2
setFlags(This, Flags) -> ok
when This :: wxAuiTabArt(), Flags :: integer().
sets flags. π© (that's literally all the detail there is, bestie, i'm not gonna make stuff up.)
setMeasuringFont(This, Font) -> ok
when
This :: wxAuiTabArt(),
Font :: wxFont:wxFont().
sets the font used for calculating measurements. so like, the math font. the one that decides how big things get, not necessarily how pretty they look. β¨
setNormalFont(This, Font) -> ok
when
This :: wxAuiTabArt(),
Font :: wxFont:wxFont().
sets the normal font for drawing labels. the everyday font. the default outfit. π
setSelectedFont(This, Font) -> ok
when
This :: wxAuiTabArt(),
Font :: wxFont:wxFont().
sets the font for drawing text for selected UI elements. so the chosen ones get their own font. as they should. π
and that's the whole page, bestie!! π¦πΈ
this was brought to you by Ericsson AB, wx version 2.6 β aka wxAuiTabArt(3). go forth and make your notebook tabs gorgeous. mwah. π
π¦ 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