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 πππ¦
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms