lines(3U)
π lines(3U) π
okay so bestie β welcome to the InterViews Reference Manual page for lines(3U) and honestly? it's giving structured graphics royalty. no cap. π
β¨ NAME β¨
Point, Line, MultiLine, S_MultiLine, SF_MultiLine β structured graphics classes for points, lines, and open polygons. that's the whole squad right there. π«Ά
π SYNOPSIS π
#include <Unidraw/Graphic/lines.h>
like yes, that's the one line you need, and then you're in. π
πΈ DESCRIPTION πΈ
okay so picture this: Point and Line are subclasses of Graphic that draw a point and a line, respectively. simple. iconic. they do exactly what they say on the tin. β¨
then we have MultiLine, which is a Vertices subclass and serves as an abstract base class for open polygons. she's the blueprint, not the finished product, and we respect her for that. π¦
so like, S_MultiLine is a MultiLine subclass for stroked open polygons, while SF_MultiLine is a stroked-filled open polygon. two sisters, slightly different vibes. π
and here's the tea on state: Point, Line, and S_MultiLine store a PSBrush, while SF_MultiLine also stores a PSPattern. she's got extra. she's got layers. we love that for her. π
π POINT PUBLIC OPERATIONS π
Point(Coord x, Cord y, Graphic* = nil)β constructs aPointobject, and optionally you can supply a graphic from which to obtain an initial set of graphics state. cute, flexible, we stan.void GetOriginal(Coord&, Coord&)β returns the coordinates you supplied in the constructor. no guessing, she just tells you. π
π₯ LINE PUBLIC OPERATIONS π₯
Line(Coord x0, Cord y0, Coord x1, Coord y1, Graphic* = nil)β constructs aLineobject, optionally supplying a graphic from which to obtain an initial set of graphics state. yes, two endpoints, zero drama.void GetOriginal(Coord& x0, Coord& y0, Coord& x1, Coord& y1)β returns the line's endpoints as supplied in the constructor. exactly as you left them, bestie. π«Ά
π§ MULTILINE PROTECTED OPERATIONS π§
MultiLine(Coord* x, Coord* y, int count, Graphic* = nil)β okay soMultiLine's constructor is protected, and that's on purpose: it prevents instantiation of the abstract base class. the parameters are passed directly to theVerticesconstructor. she's not for direct use, she's for inheriting. periodt. π
π S_MULTILINE PUBLIC OPERATIONS π
S_MultiLine(Coord* x, Coord* y, int count, Graphic* = nil)β constructs anS_MultiLineobject, optionally supplying a graphic from which to obtain an initial set of graphics state. stroked and serving. β¨
β SF_MULTILINE PUBLIC OPERATIONS β
SF_MultiLine(Coord* x, Coord* y, int count, Graphic* = nil)β constructs anSF_MultiLineobject, optionally supplying a graphic from which to obtain an initial set of graphics state. stroked AND filled, main character energy fr fr. π
π¦ SEE ALSO π¦
Graphic(3U)Vertices(3U)pspaint(3U)
go read those next, iykyk. π
lowkey a heads-up:MultiLine's constructor beingprotectedmeans you literally cannot instantiate the abstract base class. that's not a bug, that's the design. respect the boundary bestie. π
and that's the whole page, babe!! this one came from Unidraw, dated 2 February 1991 β yes she's vintage, yes she still ate, no notes. πβ¨
π¦ 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