|
| PRIVATE | RackWidget () |
| PRIVATE | ~RackWidget () |
| void | step () override |
| | Advances the module by one frame.
|
| void | draw (const DrawArgs &args) override |
| | Draws the widget to the NanoVG context.
|
| void | onHover (const HoverEvent &e) override |
| void | onHoverKey (const HoverKeyEvent &e) override |
| void | onButton (const ButtonEvent &e) override |
| void | onDragStart (const DragStartEvent &e) override |
| void | onDragEnd (const DragEndEvent &e) override |
| void | onDragHover (const DragHoverEvent &e) override |
| widget::Widget * | getModuleContainer () |
| widget::Widget * | getPlugContainer () |
| widget::Widget * | getCableContainer () |
| math::Vec | getMousePos () |
| void | clear () |
| | Completely clear the rack's modules and cables.
|
| void | mergeJson (json_t *rootJ) |
| void | fromJson (json_t *rootJ) |
| void | pasteJsonAction (json_t *rootJ) |
| | Pastes module JSON or selection JSON at the mouse position.
|
| void | pasteModuleJsonAction (json_t *moduleJ) |
| void | pasteClipboardAction () |
| void | addModule (ModuleWidget *mw) |
| | Adds a module and adds it to the Engine, adopting ownership.
|
| void | addModuleAtMouse (ModuleWidget *mw) |
| void | removeModule (ModuleWidget *mw) |
| | Removes the module and transfers ownership to the caller.
|
| ModuleWidget * | getModule (int64_t moduleId) |
| std::vector< ModuleWidget * > | getModules () |
| bool | hasModules () |
| bool | requestModulePos (ModuleWidget *mw, math::Vec pos) |
| | Sets a module's box if non-colliding.
|
| void | setModulePosNearest (ModuleWidget *mw, math::Vec pos) |
| | Moves a module to the closest non-colliding position.
|
| void | setModulePosForce (ModuleWidget *mw, math::Vec pos) |
| | Moves a module to a position, pushing other modules in the same row to the left or right, as needed.
|
| void | setModulePosSqueeze (ModuleWidget *mw, math::Vec pos) |
| | Moves a module, contracting old module positions and pushing modules to the right as needed to fit.
|
| PRIVATE void | squeezeModulePos (ModuleWidget *mw, math::Vec pos) |
| PRIVATE void | unsqueezeModulePos (ModuleWidget *mw) |
| void | updateModuleOldPositions () |
| | Saves positions of modules for getModuleDragAction().
|
| history::ComplexAction * | getModuleDragAction () |
| void | updateSelectionFromRect () |
| void | selectAll () |
| void | deselectAll () |
| void | select (ModuleWidget *mw, bool selected=true) |
| bool | hasSelection () |
| const std::set< ModuleWidget * > & | getSelected () |
| bool | isSelected (ModuleWidget *mw) |
| json_t * | selectionToJson (bool cables=true) |
| void | loadSelection (std::string path) |
| void | loadSelectionDialog () |
| void | saveSelection (std::string path) |
| void | saveSelectionDialog () |
| void | copyClipboardSelection () |
| void | resetSelectionAction () |
| void | randomizeSelectionAction () |
| void | disconnectSelectionAction () |
| void | cloneSelectionAction (bool cloneCables=true) |
| void | bypassSelectionAction (bool bypassed) |
| bool | isSelectionBypassed () |
| void | deleteSelectionAction () |
| bool | requestSelectionPos (math::Vec delta) |
| void | setSelectionPosNearest (math::Vec delta) |
| void | appendSelectionContextMenu (ui::Menu *menu) |
| void | clearCables () |
| void | clearCablesAction () |
| void | clearCablesOnPort (PortWidget *port) |
| | Removes all cables connected to the port.
|
| void | addCable (CableWidget *cw) |
| | Adds a cable and adopts ownership.
|
| void | removeCable (CableWidget *cw) |
| | Removes cable and releases ownership to caller.
|
| DEPRECATED CableWidget * | getIncompleteCable () |
| | Returns the top incomplete cable.
|
| PlugWidget * | getTopPlug (PortWidget *port) |
| | Returns the topmost plug stacked on the port.
|
| CableWidget * | getTopCable (PortWidget *port) |
| | Returns the cable with the topmost plug stacked on the port.
|
| CableWidget * | getCable (int64_t cableId) |
| CableWidget * | getCable (PortWidget *outputPort, PortWidget *inputPort) |
| std::vector< CableWidget * > | getCables () |
| | Returns all cables, complete and incomplete.
|
| std::vector< CableWidget * > | getCompleteCables () |
| | Returns all cables attached to 2 ports.
|
| std::vector< CableWidget * > | getIncompleteCables () |
| | Returns all cables attached to less than 2 ports.
|
| std::vector< CableWidget * > | getCablesOnPort (PortWidget *port) |
| | Returns all cables attached to the port, complete or not.
|
| std::vector< CableWidget * > | getCompleteCablesOnPort (PortWidget *port) |
| | Returns all complete cables attached to the port.
|
| int | getNextCableColorId () |
| | Returns but does not advance the next cable color.
|
| void | setNextCableColorId (int id) |
| NVGcolor | getNextCableColor () |
| | Returns and advances the next cable color.
|
| ParamWidget * | getTouchedParam () |
| void | setTouchedParam (ParamWidget *pw) |
| PRIVATE void | updateExpanders () |
| void | onHoverText (const HoverTextEvent &e) override |
| void | onHoverScroll (const HoverScrollEvent &e) override |
| void | onPathDrop (const PathDropEvent &e) override |
| virtual | ~Widget () |
| math::Rect | getBox () |
| void | setBox (math::Rect box) |
| | Calls setPosition() and then setSize().
|
| math::Vec | getPosition () |
| void | setPosition (math::Vec pos) |
| | Sets position and triggers RepositionEvent if position changed.
|
| math::Vec | getSize () |
| void | setSize (math::Vec size) |
| | Sets size and triggers ResizeEvent if size changed.
|
| widget::Widget * | getParent () |
| bool | isVisible () |
| void | setVisible (bool visible) |
| | Sets visible and triggers ShowEvent or HideEvent if changed.
|
| void | show () |
| | Makes Widget visible and triggers ShowEvent if changed.
|
| void | hide () |
| | Makes Widget not visible and triggers HideEvent if changed.
|
| void | requestDelete () |
| | Requests this Widget's parent to delete it in the next step().
|
| virtual math::Rect | getChildrenBoundingBox () |
| | Returns the smallest rectangle containing this widget's children (visible and invisible) in its local coordinates.
|
| virtual math::Rect | getVisibleChildrenBoundingBox () |
| bool | isDescendantOf (Widget *ancestor) |
| | Returns whether ancestor is a parent or distant parent of this widget.
|
| virtual math::Vec | getRelativeOffset (math::Vec v, Widget *ancestor) |
| | Returns v (given in local coordinates) transformed into the coordinate system of ancestor.
|
| math::Vec | getAbsoluteOffset (math::Vec v) |
| | Returns v transformed into world/root/global/absolute coordinates.
|
| virtual float | getRelativeZoom (Widget *ancestor) |
| | Returns the zoom level in the coordinate system of ancestor.
|
| float | getAbsoluteZoom () |
| virtual math::Rect | getViewport (math::Rect r=math::Rect::inf()) |
| | Returns a subset of the given Rect bounded by the box of this widget and all ancestors.
|
| template<class T> |
| T * | getAncestorOfType () |
| template<class T> |
| T * | getFirstDescendantOfType () |
| bool | hasChild (Widget *child) |
| | Checks if the given widget is a child of this widget.
|
| void | addChild (Widget *child) |
| | Adds widget to the top of the children.
|
| void | addChildBottom (Widget *child) |
| | Adds widget to the bottom of the children.
|
| void | addChildBelow (Widget *child, Widget *sibling) |
| | Adds widget directly below another widget.
|
| void | addChildAbove (Widget *child, Widget *sibling) |
| void | removeChild (Widget *child) |
| | Removes widget from list of children if it exists.
|
| void | clearChildren () |
| | Removes and deletes all child Widgets.
|
| virtual DEPRECATED void | draw (NVGcontext *vg) |
| | Override draw(const DrawArgs &args) instead.
|
| virtual void | drawLayer (const DrawArgs &args, int layer) |
| | Draw additional layers.
|
| void | drawChild (Widget *child, const DrawArgs &args, int layer=0) |
| | Draws a particular child.
|
| template<typename TMethod, class TEvent> |
| void | recurseEvent (TMethod f, const TEvent &e) |
| | Recurses an event to all visible Widgets.
|
| template<typename TMethod, class TEvent> |
| void | recursePositionEvent (TMethod f, const TEvent &e) |
| | Recurses an event to all visible Widgets until it is consumed.
|
| virtual void | onDoubleClick (const DoubleClickEvent &e) |
| virtual void | onEnter (const EnterEvent &e) |
| virtual void | onLeave (const LeaveEvent &e) |
| virtual void | onSelect (const SelectEvent &e) |
| virtual void | onDeselect (const DeselectEvent &e) |
| virtual void | onSelectKey (const SelectKeyEvent &e) |
| virtual void | onSelectText (const SelectTextEvent &e) |
| virtual void | onDragMove (const DragMoveEvent &e) |
| virtual void | onDragEnter (const DragEnterEvent &e) |
| virtual void | onDragLeave (const DragLeaveEvent &e) |
| virtual void | onDragDrop (const DragDropEvent &e) |
| virtual void | onAction (const ActionEvent &e) |
| virtual void | onChange (const ChangeEvent &e) |
| virtual void | onDirty (const DirtyEvent &e) |
| virtual void | onReposition (const RepositionEvent &e) |
| virtual void | onResize (const ResizeEvent &e) |
| virtual void | onAdd (const AddEvent &e) |
| virtual void | onRemove (const RemoveEvent &e) |
| virtual void | onShow (const ShowEvent &e) |
| virtual void | onHide (const HideEvent &e) |
| virtual void | onContextCreate (const ContextCreateEvent &e) |
| virtual void | onContextDestroy (const ContextDestroyEvent &e) |
| | ~WeakBase () |
| size_t | getWeakCount () |