stateviews(3U)
β¨ stateviews(3U) β the Unidraw state variable view subclasses β¨
okay bestie, buckle up π this is a page from the InterViews Reference Manual, and it's all about the lil view classes that watch your state variables for you. no cap, it's giving "who's watching the watchers" but make it graphics.
πΈ NAME πΈ
BrushVarView, CompNameVarView, FileNameVarView, FontVarView, GravityVarView, MagnifVarView, ModifStatusVarView, NameVarView, PatternVarView β a whole squad of various state variable view subclasses π
π SYNOPSIS π
#include <Unidraw/stateviews.h>
π DESCRIPTION π
Unidraw predefines several state variable view subclasses for the state variable subjects it predefines, as described below. it's basically a matching set, iykyk π«Ά
π¦ PUBLIC OPERATIONS π¦
BrushVarView(BrushVar*, ColorVar* = nil)FontVarView(FontVar*, Alignment = Center)PatternVarView(PatternVar*, ColorVar* = nil)
these three are views of graphics state state variable subjects β¨
BrushVarView displays a short line drawn in the subject's brush and in a color specified by the given ColorVar (black if no ColorVar is supplied). the way that it shows None when the BrushVar's brush is invisible? iconic.
similarly, PatternVarView displays a filled rectangle drawn in the subject's pattern and in a color specified by the given ColorVar (black if no ColorVar is supplied). and yes, PatternVarView also displays None if the PatternVar's pattern is invisible π¨
FontVarView displays the name of its subject's font, aligned as specified in its canvas π
GravityVarView(GravityVar*, Alignment = Center)β displays eithergravity onor a blank, depending on whether the subject indicates that gravity is on or not. literally binary, fr fr πMagnifVarView(MagnifVar*, Alignment = Center)β displaysmag xx, where x is the current modification factor recorded in the subject. obsessed with a good zoom readout πModifStateVarView(ModifStateVar*, Alignment = Center)β displays either an asterisk or a blank, depending on whether the subject records that its component is modified. tiny asterisk, big main character energy βNameVarView(NameVar*, Alignment = Center, const char* sample = nil)FileNameVarView(NameVar*, Alignment = Center,boolean relative = true, const char* sample = nil)CompNameVarView(CompNameVarView*, Alignment = Center,boolean relative = true, const char* sample = nil)
these ones display the subject's string aligned as specified with respect to the canvas π each constructor takes an optional sample string that defines the view's natural size β so cute, it's the view's lil measuring tape π
FileNameVarView provides a specialized view of a NameVar for displaying file names. it adds a relative argument for displaying the file name either as a relative or full path ποΈ
CompNameVarView provides similar functionality for CompNameVar subjects, except it precedes its subject's component's name with [part of] for components that have a named parent but that are not named themselves. honestly? relatable. we've all been [part of] something π
π SEE ALSO π
statevars(3U), StateVarView(3U)
π quick vibe check: the NAME section saysModifStatusVarViewand the operations list saysModifStateVarView. that's just how the page spells it, bestie β I'm not touching it, no cap. same deal withCompNameVarView(CompNameVarView*, ...)β copied character for character, that's the assignment π
and that's the whole page, periodt π«Ά this came to you from Unidraw, dated 6 August 1990, and the page itself answers to the name stateviews(3U). slay π
π¦ 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