EllipseComp(3U)
π EllipseComp(3U) π
ok so this is a page straight out of the InterViews Reference Manual, bestie, and it's all about ellipses β the pretty round ones β¨ (three of them, actually: EllipseComp, EllipseView, and PSEllipse). Grab a snack, we're going in π
β¨ NAME β¨
EllipseComp, EllipseView, PSEllipse β the ellipse component subject, its view, and its PostScript external representation. it's giving trio energy π
π¦ SYNOPSIS π¦
#include <Unidraw/Components/ellipse.h>
π DESCRIPTION π
okay so here's the tea β
EllipseCompis aGraphicCompthat defines an ellipse. it uses anEllipsegraphic to store its graphical attributes. so cute, so organized πEllipseViewis aGraphicViewwhose whole job is displaying the ellipse. main character energy, honestly πPSEllipseis aPostScriptViewthat externalizes the subject's information in PostScript form. it's the one that speaks printer π¨οΈβ¨
π ELLIPSECOMP PUBLIC OPERATIONS π
EllipseComp(SF_Ellipse* = nil)β the constructor, and she takes an optional stroked-filled ellipse that defines the attributes of the ellipse. optional!! so if you don't pass one, no stress π«ΆSF_Ellipse* GetEllipse()β returns theSF_Ellipsegraphic that defines the ellipse's attributes. and ngl,GetEllipseis literally just a more specific form of theGetGraphicoperation. same vibe, more β¨specificityβ¨
πΈ ELLIPSEVIEW PUBLIC OPERATIONS πΈ
EllipseView(EllipseComp* = nil)β creates anEllipseView, and you can optionally hand her the subject. no pressure πvirtual void Interpret(Command*)βEllipseViewinterpretsAlignToGridCmdto align its center to the grid. snapping into place, periodt πvirtual Manipulator* CreateManipulator(Viewer*, Event&, Transformer*, Tool*)virtual void InterpretManipulator(Manipulator*)βEllipseViewredefines its response to manipulation with aGraphicCompTool. here's how the interaction goes: the user clicks to specify the center of the ellipse, and then drags to vary its axes π±οΈπ«. and the center and the axes will be constrained by gravity, if any β so if there's gravity in the mix, bestie, everything gets pulled into line.EllipseComp* GetEllipseComp()β returns the subject. that's it, that's the whole job π
π PSELLIPSE PUBLIC OPERATIONS π
PSEllipse(EllipseComp* = nil)β constructs a PostScript external representation of the given subject, if any. (again with the "if any" β optional stays optional π)
π₯ SEE ALSO π₯
GraphicComp(3U)GraphicCompTool(3U)GraphicView(3U)Grid(3U)PostScriptView(3U)align(3U)ellipses(3U)
go read those too, they're all part of the same little family π
π real talk for a sec: this page is from Unidraw, dated 22 January 1991. yes, 1991. vintage icon behavior, no cap π
and that's the whole page, bestie!! you understood all of it, I'm so proud of you ππ go draw some ellipses, you got this β¨π¦
π¦ 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