libAlgAudio
v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
|
#include <StandardModuleGUI.hpp>
Public Member Functions | |
void | CustomDraw (DrawContext &c) override |
virtual std::shared_ptr< UIWidget > | CustomFindChild (ID id) const override |
virtual void | CustomMouseEnter (Point2D pos) override |
virtual void | CustomMouseLeave (Point2D pos) override |
virtual void | CustomMouseMotion (Point2D pos1, Point2D pos2) override |
virtual bool | CustomMousePress (bool down, MouseButton b, Point2D pos) override |
void | CustomResize (Size2D s) override |
virtual Point2D | GetChildPos () const |
virtual std::string | GetIoletParamID (UIWidget::ID) const override |
virtual WhatIsHere | GetWhatIsHere (Point2D) const override |
void | OnChildRequestedSizeChanged () override |
void | OnChildVisibilityChanged () override |
virtual void | OnInletsChanged () |
void | SetHighlight (bool) override |
virtual void | SliderDragEnd (UIWidget::ID id) override |
virtual void | SliderDragStart (UIWidget::ID id) override |
virtual void | SliderDragStep (UIWidget::ID id, Point2D_< float > current_offset) override |
virtual Point2D | WhereIsInlet (std::string inlet) override |
virtual Point2D | WhereIsOutlet (std::string outlet) override |
virtual Point2D | WhereIsParamAbsoluteOutlet (std::string outlet) override |
virtual Point2D | WhereIsParamInlet (std::string inlet) override |
virtual Point2D | WhereIsParamRelativeOutlet (std::string outlet) override |
virtual std::shared_ptr< UIWidget > | Widget () override |
Public Member Functions inherited from AlgAudio::ModuleGUI | |
std::shared_ptr< Module > | GetModule () |
Point2D & | position () |
Public Member Functions inherited from AlgAudio::UIContainerSingle | |
virtual void | Insert (std::shared_ptr< UIWidget >) |
virtual void | OnChildFocusRequested (std::shared_ptr< UIWidget >) override |
virtual bool | OnChildFocusTested (std::shared_ptr< const UIWidget >) override |
virtual void | OnFocusChanged (bool has_focus) override |
virtual void | OnKeyboard (KeyData k) override |
virtual void | RemoveChild () |
virtual void | RequestFocus () override |
Public Member Functions inherited from AlgAudio::UIWidget | |
void | Draw (DrawContext &c) |
std::shared_ptr< UIWidget > | FindChild (ID search_id) |
Size2D | GetCurrentSize () const |
Point2D | GetPosInParent (std::shared_ptr< UIWidget > ancestor) |
Size2D | GetRequestedSize () const |
std::shared_ptr< Window > | GetWindow () |
bool | HasParent () |
bool | HasZeroArea () const |
void | Resize (Size2D s) |
void | SetBackColor (const Color &c) |
void | SetCustomSize (Size2D size) |
void | SetFrontColor (const Color &c) |
void | TriggerFakeResize () |
virtual | ~UIWidget () |
Public Member Functions inherited from AlgAudio::UIMouseEventsBase | |
void | OnMouseEnter (Point2D) |
void | OnMouseLeave (Point2D) |
void | OnMouseMotion (Point2D, Point2D) |
bool | OnMousePress (bool, MouseButton, Point2D) |
void | SetFocusable (bool f) |
Public Member Functions inherited from AlgAudio::UIVisibilityBase | |
bool | IsDrawn () const |
bool | IsInvisible () const |
void | SetDisplayMode (DisplayMode m) |
Static Public Member Functions | |
static std::shared_ptr < StandardModuleGUI > | CreateFromTemplate (std::shared_ptr< Window > w, std::shared_ptr< Module > mod) |
static std::shared_ptr < StandardModuleGUI > | CreateFromXML (std::shared_ptr< Window > w, std::string xml_data, std::shared_ptr< Module > mod) |
Protected Member Functions | |
StandardModuleGUI (std::shared_ptr< Window > w, std::shared_ptr< Module > mod) | |
Protected Member Functions inherited from AlgAudio::ModuleGUI | |
ModuleGUI (std::shared_ptr< Module > mod) | |
Protected Member Functions inherited from AlgAudio::UIContainerSingle | |
UIContainerSingle (std::weak_ptr< Window > parent_window) | |
Protected Member Functions inherited from AlgAudio::UIWidget | |
bool | IsFocused () const |
bool | IsRoot () const |
void | SetMinimalSize (Size2D) |
void | SetNeedsRedrawing () |
UIWidget (std::weak_ptr< Window > parent_window) | |
Protected Member Functions inherited from AlgAudio::UIMouseEventsBase | |
UIMouseEventsBase () | |
Protected Member Functions inherited from AlgAudio::UIVisibilityBase | |
UIVisibilityBase () | |
|
inlineprotected |
|
static |
|
static |
|
overridevirtual |
Implements AlgAudio::UIWidget.
|
inlineoverridevirtual |
Reimplemented from AlgAudio::UIContainerSingle.
|
inlineoverridevirtual |
Reimplemented from AlgAudio::UIMouseEventsBase.
|
inlineoverridevirtual |
Reimplemented from AlgAudio::UIMouseEventsBase.
|
inlineoverridevirtual |
Reimplemented from AlgAudio::UIMouseEventsBase.
|
inlineoverridevirtual |
This call is supposed to return TRUE iff it's the end of the click chain, i.e. the event was NOT passed to another widget. It must return FALSE if the event was passed to any child widget.
Reimplemented from AlgAudio::UIMouseEventsBase.
|
overridevirtual |
Reimplemented from AlgAudio::UIWidget.
|
inlinevirtual |
Implements AlgAudio::UIContainerSingle.
|
overridevirtual |
This method shall translate an inlet/outlet widget id to the corresponding param id.
Implements AlgAudio::ModuleGUI.
|
overridevirtual |
This function is used by the CanvasView to ask the module GUI what kind of element is located at a given point. This way the CanvasView can handle connections etc. and ModuleGUI does not have to bother about them.
Implements AlgAudio::ModuleGUI.
|
overridevirtual |
This method will be called by a child when it changes the desired size.
Reimplemented from AlgAudio::UIWidget.
|
overridevirtual |
This method will be called by a child when it changes its visibility.
Reimplemented from AlgAudio::UIWidget.
|
virtual |
A Module may call this method sometimes to notify its GUI that the set of inlets has changed, and the ModuleGUI should take appropriate changes.
Reimplemented from AlgAudio::ModuleGUI.
|
overridevirtual |
When set to true, the module shall draw itself in it's "highlighted" variant.
Implements AlgAudio::ModuleGUI.
|
overridevirtual |
This method is called by CanvasView when a slider drag has ended. Usually, the ModuleGUI will pass this event to the right slider widget.
Reimplemented from AlgAudio::ModuleGUI.
|
overridevirtual |
CanvasView uses this function to notify the ModuleGUI that a slider is being dragged. This way the drag can continue outside the ModuleGUI. The only arguments is the slider widget id (as returned by WhatIsHere). Usually, the ModuleGUI will pass this event to the right slider widget.
Reimplemented from AlgAudio::ModuleGUI.
|
overridevirtual |
This method is called by CanvasView for each step of a slider drag. Note that offset values may be outside moduleGUI, or even negative. Usually, the ModuleGUI will pass this event to the right slider widget.
Reimplemented from AlgAudio::ModuleGUI.
|
overridevirtual |
These methods are used by the CanvasView to query where it should draw connection wire endings. The only parameter is iolet ID. The ModuleGUI implementation should return the coordinates where the connector is drawn.
Implements AlgAudio::ModuleGUI.
|
overridevirtual |
These methods are used by the CanvasView to query where it should draw connection wire endings. The only parameter is iolet ID. The ModuleGUI implementation should return the coordinates where the connector is drawn.
Implements AlgAudio::ModuleGUI.
|
overridevirtual |
These methods are used by the CanvasView to query where it should draw connection wire endings. The only parameter is iolet ID. The ModuleGUI implementation should return the coordinates where the connector is drawn.
Implements AlgAudio::ModuleGUI.
|
overridevirtual |
These methods are used by the CanvasView to query where it should draw connection wire endings. The only parameter is iolet ID. The ModuleGUI implementation should return the coordinates where the connector is drawn.
Implements AlgAudio::ModuleGUI.
|
overridevirtual |
These methods are used by the CanvasView to query where it should draw connection wire endings. The only parameter is iolet ID. The ModuleGUI implementation should return the coordinates where the connector is drawn.
Implements AlgAudio::ModuleGUI.
|
inlineoverridevirtual |
Returns the widget representing this module. Cannot return nullptr. Must be implemented by all ModuleGUI specialisations. ModuleGUI is just an interface defining a set of methods. It cannot inherit from UIWidget, as that would mess up inheritance completely. Tuhs, to access the underlyin widget use this method. Custom implementations, like StandardModuleGUI, return a pointer to itself, because StandardModuleGUI inherts from both ModuleGUI and UIWidget.
Implements AlgAudio::ModuleGUI.