SelectTool(3U)
π SelectTool(3U) π
okay bestie, welcome to the InterViews Reference Manual β this is the whole entire scoop on SelectTool, and honestly? she's the main character of your selection game β¨
πΈ NAME πΈ
SelectTool β the tool that changes up your editor's current selection, no cap π
β¨ SYNOPSIS β¨
#include <Unidraw/Tools/select.h>
π¦ DESCRIPTION π¦
So SelectTool is the girl who lets a user change the current selection by direct manipulation, which means she's out here affecting the enclosing editor's selection object. Periodt.
Here's the tea on how she works:
- A single click directly on a component view selects that view and unselects all the others. One and done, iconic.
- Clicking while holding the Shift key down adds the target component to the selection if it wasn't already selected, and removes it if it was. She's fluid like that π«Ά
- Wanna grab a whole group? The user can select all components within a rectangular area in the viewer by clicking somewhere outside the nearest component and dragging to specify the rectangular area. All components completely within the area will be selected. iykyk.
π PUBLIC OPERATIONS π
SelectTool(ControlInfo* = nil)β bestie, this creates a brand newSelectTool. Fresh out the box. πvirtual Manipulator* CreateManipulator(Viewer*, Event&, Transformer*)virtual void InterpretManipulator(Manipulator*)β here's the lore: if the user did not click on a component, thenCreateManipulatorcreates aDragManipwith aRubberRectfor dragging out a rectangular area. Otherwise,CreateManipulatorclears the editor's selection and selects the hit component. And if the user holds the Shift key down in either case, the components that would have otherwise been selected will be unselected, and vice versa π.InterpretManipulatoronly gets called ifCreateManipulatorreturned a non-nil manipulator; in that case,InterpretManipulatorwill examine theDragManipulator'sRubberRectand select the component views falling completely within it. slay.
π PROTECTED OPERATIONS π
virtual void Localize(Selection*, Viewer*)βLocalizemakes sure that the given selection object contains only those views displayed in the given viewer.CreateManipulatorcalls this function to avoid possibly shift-selecting views from different components. protective queen fr fr π§
π SEE ALSO π
Editor(3U), Rubband(3I), Selection(3U), Tool(3U), Viewer(3U), manips(3U)
mwah π that's the whole page, bestie β and it's brought to you by Unidraw, dated 24 January 1991 (yes she's vintage, and vintage is iconic, we don't make the rules π πβ¨).
π¦ 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