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 a wx object, periodt. πŸ‘‘

πŸ”₯ EXPORTS πŸ”₯

bestie listen β€” every one of these takes This, and This is always a wxListItemAttr(). 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