pspaint(3U)
π pspaint(3U) β bestie edition π
okay so you're looking at pspaint(3U) from the InterViews Reference Manual, and honestly? it's giving glow-up era for graphics state objects. no cap.
β¨ NAME β¨
PSBrush, PSColor, PSFont, PSPattern β graphics state objects with added PostScript information π
πΈ SYNOPSIS πΈ
#include <Unidraw/Graphic/pspaint.h>
π¦ DESCRIPTION π¦
so like. PSBrush, PSColor, PSFont, and PSPattern are subclasses of Brush, Color, Font, and Pattern respectively β they're the same girlies but with extra info stored on top. that extra info is literally what you need to generate idraw-compatible PostScript. and Unidraw's structured graphics objects use these subclasses exclusively. no substitutes, periodt. π
π PSBRUSH PUBLIC OPERATIONS π
PSBrush()PSBrush(int pattern, int width)β create an undefinedPSBrush(that's the parameterless constructor, the "no thoughts head empty" one) or one that has the specified line pattern and width. β οΈ heads up bestie: structured graphics with an undefined brush will not render their stroked portions. like, at all. it's not a vibe, it's a void. πint GetLinePattern()int Width()β hand back the brush parameters you gave the constructor. ty for your service π«Άboolean None()β returnstrueif this is an undefined brush. it's the "are you even real" check β¨const int* GetDashPattern()int GetDashPatternSize()int GetDashOffset()β return the values required to characterize the brush in PostScript. the equivalent PostScript dash pattern gets computed from the brush's line pattern, iykyk. π
π PSBRUSH PROTECTED OPERATIONS π
void CalcDashPat(int)β compute the equivalent PostScript dash pattern from the line pattern specified in the constructor. it's the math girlie doing the behind-the-scenes work π§
π PSCOLOR PUBLIC OPERATIONS π
PSColor(Color_Intensity, Color_Intensity, Color_Intensity,const char* name)β create aPSColor, supplying color intensity information and a name to associate with those intensities. π lowkey important: the name is used solely to generate idraw-compatible PostScript. that's its whole job, its main character moment, nothing else.
β PSFONT PUBLIC OPERATIONS β
PSFont(const char* name, const char* PS_name, const char* PS_size)β construct aPSFont, supplying the window-system-specified font name plus the corresponding PostScript font name and its size. three-for-one deal, we love to see it. πconst char* GetName()const char* GetPrintFont()const char* GetPrintSize()const char* GetPrintFontAndSize()β return the constructor-supplied parameters. andGetPrintFontAndSizereturns the concatenation of the PostScript font name and its size, with a space interposed for legibility (a lil breathing room, she deserves it). β¨int GetLineHt()β return an integer version of the PostScript font's size, exactly as it was supplied to the constructor. integer-ified. slay. π₯
π PSPATTERN PUBLIC OPERATIONS π
PSPattern()PSPattern(int dither, float graylevel)PSPattern(const int* pattern, int)β create an undefinedPSPattern(the parameterless constructor, again the empty one π« ), or one with specificditherandgraylevelvalues, or one that replicates a pattern defined by the given array. β οΈ and fr fr: structured graphics with an undefined pattern will not render their filled portions. nothing. nada. the fill is simply not happening. πboolean None()β returnstrueif this is an undefined pattern. vibe check: failed. πfloat GetGrayLevel()β return the graylevel that the pattern approximates, if one was specified in the constructor. if you didn't give one, don't come asking. πconst int* GetData()int GetSize()β return the array that defines the replicated pattern and its size, if the pattern was constructed with one. π
π SEE ALSO π
idraw(1I), pspaint(3I), and the InterViews 3.1 reference manual β go read the whole family, they ate π
that's the whole page bestie, and yes it was written by Unidraw on 2 February 1991 β an actual icon, an elder legend, we stan π«Άβ¨
π¦ 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