PatternCmd(3U)

πŸ’– PatternCmd β€” like, the pattern-setting command bestie πŸ’–

okay so this is PatternCmd(3U) from the InterViews Reference Manual, and honestly? she's a little icon. tiny page, big vibes. let's get into it 🫢


✨ NAME ✨

PatternCmd β€” the command for setting components' pattern attribute. that's it. that's the whole job. queen of one (1) task πŸ’…


🌸 SYNOPSIS 🌸

#include <Unidraw/Commands/patcmd.h>

like, that's the include. put it in ur file. she's waiting πŸ’œ


πŸ¦‹ DESCRIPTION πŸ¦‹

so PatternCmd is a purely interpretive command β€” and no, bestie, "interpretive" here isn't a personality trait, it's the technical kind. what it does is set the pattern attribute of whatever components you've selected. that's the whole arc. no cap.


πŸŽ€ PUBLIC OPERATIONS πŸŽ€

  • PatternCmd(ControlInfo*, PSPattern* = nil)
  • PatternCmd(Editor* = nil, PSPattern* = nil)

create a PatternCmd, and if u want, u can optionally pass in the PSPattern that the components should adopt. if u don't pass one? that's what the = nil is for, babe. it's optional, she's chill 🌈

  • virtual void Execute()

ok so PatternCmd extends Execute β€” meaning it does the normal Execute thing plus it sets the value of the affected editor's PatternVar instance, if that editor defines one. if it doesn't define one, then... it doesn't. that's the whole conditional. respect the conditional πŸ™ˆ

  • PSPattern* GetPattern()

returns the PSPattern u supplied in the constructor. that's it. getter behaviour. iconic. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

  • Command(3U)
  • pspaint(3U)
  • statevars(3U)

go read those too, iykyk πŸ“šβœ¨


k bye bestie!! this page came to u from the Unidraw era, dated 23 January 1991, and honestly the fact that she's still serving pattern-setting realness after all these years? main character energy fr fr πŸ’–πŸŽ€πŸ¦‹