wxGraphicsBrush(3erl)

πŸ’… wxGraphicsBrush (3erl) β€” like, the Erlang module definition, bestie

okay so this is the wxGraphicsBrush page from the erl manual, and honestly? it's a short one. cute, compact, iconic. let's get into it πŸŽ€


✨ NAME ✨

wxGraphicsBrush β€” literally just the functions for the wxGraphicsBrush class. that's the whole name. periodt. πŸ’–


🌸 DESCRIPTION 🌸

so a wxGraphicsBrush is a native representation of a brush. think of it as the actual real-deal brush object your renderer is holding onto, not some abstract vibe. πŸ–ŒοΈβœ¨

the contents are specific and private to the respective renderer β€” meaning ngl, you don't get to poke around inside it. it's between the brush and its renderer. πŸ™ˆ

instances are ref counted, so you can assign them around like normal, no cap. 🫢

🚨 but here's the tea: the only way to get a valid instance is via wxGraphicsContext:createBrush/2 or wxGraphicsRenderer:createBrush/2. don't go making your own, bestie, it will not slay.

this class is derived (and can use functions) from: wxGraphicsObject β€” so it's giving main character energy with a whole family tree. πŸ‘‘

wxWidgets docs: wxGraphicsBrush β€” iykyk πŸ“š


πŸ¦‹ DATA TYPES πŸ¦‹

  • wxGraphicsBrush() = wx:wx_object()

like, that's it. that's the type. a wx_object(). clean, minimal, ate. πŸ’…


✨ okay that's the whole page, you're welcome ✨

cute little sign-off: this gem came from the wxWidgets team, version wx 2.2.2.1, and it's the wxGraphicsBrush(3erl) page. mwah. πŸ’œπŸŽ€

πŸ“¦ where this page comes from