ULabel(3U)

πŸ’– ULabel β€” a whole structured graphic that's literally just one line of text πŸ’–

okay bestie, welcome to the InterViews Reference Manual section 3U, sit down, hydrate, because we're talking about ULabel. ✨


🌸 SYNOPSIS 🌸

#include <Unidraw/Graphic/label.h>

πŸ¦‹ DESCRIPTION πŸ¦‹

So. A ULabel is a Graphic β€” yes, the Graphic class, she's the mother β€” and what she does is display one single line of text. One line. That's the whole job. She's not doing side quests. πŸŽ€

She also stores a PSFont, and that PSFont is what defines the font the text shows up in. Like, the font is part of her whole thing. πŸ‘‘

And here's the layout tea: with no transformation applied, the text gets drawn with its bounding box's lower-left corner sitting right at the origin. That's it, that's the placement. No cap. 🌈


✨ PUBLIC OPERATIONS ✨

  • ULabel(const char* text, Graphic* = nil) β€” construct a label, bestie! You hand her a null-terminated string in text, plus an optional Graphic to pull an initial set of graphics state from. Heads up: ULabel stores a copy of text internally, so she's keeping her own little version, not borrowing yours. πŸ’…
  • const char* GetOriginal() β€” returns a pointer to the text that the label stores internally. Her own copy. The original. The one and only. 🫢

πŸ‘€ SEE ALSO πŸ‘€

  • Graphic(3U)
  • pspaint(3U)

go read those too, iykyk πŸ’œ


fr fr, she's simple but she's iconic. one line of text, one font, one vibe. main character energy in a single class. 🧚

and that's the whole page, bestie!! 🌸 this was Unidraw, dated 1 February 1991, and you just read ULabel(3U) from the InterViews Reference Manual. slay, ate, periodt. πŸ’–πŸŽ€πŸ¦‹