GraphicCompTool(3U)

πŸ’– GraphicCompTool(3U) πŸ’–

okay so bestie, welcome to the InterViews Reference Manual β€” this one's a <pink>Unidraw</pink> page and it's literally about making graphical components pop into existence with your own two hands. no cap. 🫢


✨ NAME ✨

GraphicCompTool β€” the tool for instantiating graphical components πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Unidraw/Tools/grcomptool.h>

🌸 DESCRIPTION 🌸

So a GraphicCompTool is the thing that lets the user instantiate graphical components by direct manipulation β€” like, you just click and drag and boom, component. ✨

The way it works is that the GraphicCompTool keeps a prototypical component hanging around, and that prototype is what defines the type of component it's able to instantiate. iconic behaviour honestly. πŸ‘‘


πŸ‘‘ PUBLIC OPERATIONS πŸ‘‘

  • GraphicCompTool(ControlInfo*, GraphicComp* prototype)
  • GraphicCompTool()

Create a new GraphicCompTool, supplying the prototypical GraphicComp. ⚠️ heads up: you should not normally call the parameterless constructor, which Creator requires. The first constructor creates a graphical view of the prototype for internal use. πŸŽ€

  • virtual Manipulator* CreateManipulator(Viewer*, Event&, Transformer*)
  • virtual void InterpretManipulator(Manipulator*)

CreateManipulator clears the editor's selection and delegates manipulator creation and interpretation to the graphical view of the prototype. it's giving delegation, it's giving teamwork. 🀝

  • GraphicComp* GetPrototype()

Return the prototypical GraphicComp. that's it, that's the whole function, no notes. πŸ’–


🌈 SEE ALSO 🌈

  • GraphicComp(3U)
  • Tool(3U)

and that's the whole page bestie!! this came to you courtesy of Unidraw, dated 24 January 1991 β€” yeah she's vintage but she still ate fr fr πŸ’€βœ¨