wxListItemAttr(3erl)
π wxListItemAttr (3erl) β the Erlang Module Definition, bestie
okay so this is the whole glow-up of wxListItemAttr(3erl), the Erlang Module Definition page. it's the little style-gremlin object that holds the look of a list item β text colour, background colour, font β and honestly? it's giving backstage-wardrobe-makeup-artist energy. π
β¨ NAME β¨
wxListItemAttr β literally just Functions for wxListItemAttr class. that's the whole name, no notes. π
π¦ DESCRIPTION π¦
so like, the actual documentation lives over at the wxWidgets docs: wxWidgets docs: wxListItemAttr. that's it, that's the description β go touch the official docs if you want the deep lore, iykyk. πΈ
π«Ά DATA TYPES π«Ά
one (1) type, and she's a simple queen:
wxListItemAttr() = wx:wx_object()β it's awxobject, periodt. π
π₯ EXPORTS π₯
bestie listen β every one of these takesThis, andThisis always awxListItemAttr(). i'm not gonna re-explain it eleven times, but i WILL keep it in every single signature because accuracy is the vibe check. π
π new() -> wxListItemAttr()
no args, no drama, just a fresh new attribute object. main character debut energy. β¨
π new(ColText, ColBack, Font) -> wxListItemAttr()
okay this one lets you set the whole lewk on day one. iconic.
Types:
ColText = ColBack = wx:wx_colour()Font = wxFont:wxFont()
so ColText and ColBack are both wx:wx_colour(), and Font is a wxFont:wxFont(). cute, matching, coordinated. π
π getBackgroundColour(This) -> wx:wx_colour4()
Types:
This = wxListItemAttr()
returns the background colour as wx:wx_colour4(). she's showing you her backdrop. π
π getFont(This) -> wxFont:wxFont()
Types:
This = wxListItemAttr()
hands you back the font as a wxFont:wxFont(). slay. π¦
π getTextColour(This) -> wx:wx_colour4()
Types:
This = wxListItemAttr()
returns the text colour, as wx:wx_colour4() ofc. π
πΈ hasBackgroundColour(This) -> boolean()
Types:
This = wxListItemAttr()
the vibe check β does she have a background colour? returns boolean(). yes/no bestie. π
πΈ hasFont(This) -> boolean()
Types:
This = wxListItemAttr()
does she have a font? boolean(). that's the whole function, no cap. π
πΈ hasTextColour(This) -> boolean()
Types:
This = wxListItemAttr()
does she have a text colour? boolean(). again: iconic, minimal, useful. β
π setBackgroundColour(This, ColBack) -> ok
Types:
This = wxListItemAttr()ColBack = wx:wx_colour()
sets the background colour from a wx:wx_colour(). returns ok. π«Ά
π setFont(This, Font) -> ok
Types:
This = wxListItemAttr()Font = wxFont:wxFont()
sets the font, taking a wxFont:wxFont(). returns ok. π₯
π setTextColour(This, ColText) -> ok
Types:
This = wxListItemAttr()ColText = wx:wx_colour()
sets the text colour from a wx:wx_colour(). returns ok. π
π destroy(This :: wxListItemAttr()) -> ok
Destroys the object.
literally what it says. she's done, she's logging off, she's deleting her socials. this one's typed inline: destroy(This :: wxListItemAttr()) -> ok. π
okay that's the whole page, every last option-adjacent crumb preserved, no skips, no summarising, we ate and left no crumbs. π β¨
sign-off time: this little masterpiece comes to you from the wxWidgets team, for wx 2.2.2.1, and it's the wxListItemAttr(3erl) page β filed under Erlang Module Definition, with the manual page name up top where it belongs. 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