StretchTool(3U)
π NAME π
StretchTool β the tool for rotating components, bestie. That's it, that's the whole vibe.
β¨ SYNOPSIS β¨
#include <Unidraw/Tools/stretch.h>
π¦ DESCRIPTION π¦
okay so. StretchTool lets the user rotate components by direct manipulation. No menus, no dialogs, no "please enter your rotation in radians" nonsense β you just grab it and twist it, main character energy only. π β¨
Also hi, this is from the InterViews Reference Manual, just so you know where you are. π
π PUBLIC OPERATIONS π
StretchTool(ControlInfo* = nil)β Create a new StretchTool. Fresh one, just for you. πΈvirtual Manipulator* CreateManipulator(Viewer*, Event&, Transformer*)virtual void InterpretManipulator(Manipulator*)β so here's whatCreateManipulatordoes, and it's lowkey doing the most, let's go case by case:- First thing: it detects whether the user clicked on a component. Vibe check on the click. π
- If you did NOT click on a component? It clears the editor's selection and returns a nil manipulator. Nothing happened, nothing was rotated, we move on. π
- If a component was hit, and it was not previously selected? Then
CreateManipulatorclears the editor's selection, selects the component the user hit, and delegates manipulator creation and interpretation to it. It's giving "you're the chosen one now". π - If the component was the only selected component? It again delegates manipulator creation and interpretation to the component β but the selection is unaltered. It was already the star, no changes needed. β
- And if the user clicks on one of many selected components? Then
CreateManipulatorwill delegate manipulator creation and interpretation to the hit component without altering the selection. Just sneaking in there, no drama, no reshuffling. π§
no cap, that's literally every branch β hit nothing, hit a fresh thing, hit the only thing, hit one of many things. all four. don't skip any of them, they all matter fr fr. π
π SEE ALSO π
Tool(3U)β the parent, the blueprint, the og. π«Ά
okay that's the whole page, tysm for reading, mwah π β this was Unidraw, dated 24 January 1991, and yes she's an old queen but she still slays. periodt. ππ
π¦ 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