wxAuiTabArt(3erl)

This is the wxAuiTabArt(3erl) page β€” Erlang Module Definition, bestie, and it’s literally all about making tab art providers go πŸ’…βœ¨.

πŸŽ€ NAME πŸŽ€

wxAuiTabArt β€” functions for the wxAuiTabArt class, that’s the vibe πŸ’…

πŸ’… DESCRIPTION πŸ’…

Okay so the tab art provider is literally the thing that defines all the drawing functions used by wxAuiNotebook 🎨✨. It’s what lets wxAuiNotebook have a pluggable look-and-feel β€” yes, main character customization energy.

By default, a wxAuiNotebook uses an instance of this class called wxAuiDefaultTabArt (not implemented in wx), and that one provides bitmap art plus a colour scheme that is adapted to the major platforms’ look πŸ–₯️🌈. You can either derive from that class to alter its behaviour or write a completely new tab art class β€” both are valid, bestie.

Another example of creating a new wxAuiNotebook tab bar is wxAuiSimpleTabArt πŸ¦‹.

Call wxAuiNotebook:setArtProvider/2 to make use of this new tab art β€” that’s the moment it all comes together, periodt πŸ”Œβœ¨.

wxWidgets docs: wxAuiTabArt πŸ“š

πŸ¦‹ DATA TYPES πŸ¦‹

  • wxAuiTabArt() = wx:wx_object() β€” that’s the type, no cap πŸ¦‹

✨ EXPORTS ✨

setFlags(This, Flags) -> ok

Types:

  • This = wxAuiTabArt()
  • Flags = integer()

Sets flags β€” literally that, bestie πŸ’…

setMeasuringFont(This, Font) -> ok

Types:

  • This = wxAuiTabArt()
  • Font = wxFont:wxFont()

Sets the font used for calculating measurements πŸ“βœ¨

setNormalFont(This, Font) -> ok

Types:

  • This = wxAuiTabArt()
  • Font = wxFont:wxFont()

Sets the normal font for drawing labels πŸ·οΈπŸ’–

setSelectedFont(This, Font) -> ok

Types:

  • This = wxAuiTabArt()
  • Font = wxFont:wxFont()

Sets the font for drawing text for selected UI elements πŸ‘‘

setColour(This, Colour) -> ok

Types:

  • This = wxAuiTabArt()
  • Colour = wx:wx_colour()

Sets the colour of the inactive tabs 🎨

Since: 2.9.2 ⭐

setActiveColour(This, Colour) -> ok

Types:

  • This = wxAuiTabArt()
  • Colour = wx:wx_colour()

Sets the colour of the selected tab 🌸

Since: 2.9.2 ⭐


Sign-off from the footer: source/version is wxWidgets team + wx 2.2.2.1, and the footer also has wxAuiTabArt(3erl); date: not listed in the original footer, so I’m not making one up β€” mwah πŸ’–πŸ«Ά

πŸ“¦ where this page comes from