BrushCmd(3U)

πŸ’… BrushCmd(3U) β€” like, the InterViews Reference Manual but make it cute

okay bestie, welcome to the Unidraw corner of the InterViews Reference Manual ✨ this one's about BrushCmd, and no cap, she's a lil legend.


πŸŽ€ NAME πŸŽ€

BrushCmd β€” the command that sets the brush attribute on your selected components πŸ–ŒοΈβœ¨


🌸 SYNOPSIS 🌸

#include <Unidraw/Commands/brushcmd.h>

πŸ¦‹ DESCRIPTION πŸ¦‹

So BrushCmd is a purely interpretive command 🧚 and its whole personality is setting the brush attribute of the selected components. That's it. That's the vibe. She doesn't do extra, she just interprets. πŸ’…


πŸ‘‘ PUBLIC OPERATIONS πŸ‘‘

  • BrushCmd(ControlInfo*, PSBrush* = nil)
  • BrushCmd(Editor* = nil, PSBrush* = nil)

Make yourself a BrushCmd, and if you want, you can hand her the PSBrush that the components are supposed to adopt. Optional, queen β€” hence the = nil. 🫢

  • virtual void Execute()

BrushCmd extends Execute so it can set the value of the affected editor's BrushVar instance β€” if that editor defines one. If it doesn't? Then there's nothing to set, bestie, and that's just how it is. 😭

  • PSBrush* GetBrush()

Gives you back the PSBrush you supplied in the constructor. That's the whole thing. She's returning what you gave her, periodt. ⭐


🌈 SEE ALSO 🌈

Command(3U), pspaint(3U), statevars(3U) β€” go read those too, iykyk πŸ’–


okay that's the whole page!! this one came from the Unidraw era, dated 23 January 1991 πŸŽ€ so yeah, she's vintage, she's iconic, she's giving main character energy from the early nineties and we're obsessed πŸ¦‹βœ¨ bye bestie πŸ’œ