diff options
author | David Robillard <d@drobilla.net> | 2021-01-02 14:02:44 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-02 14:02:44 +0100 |
commit | 663a5d01b1931b97370ed8feff3ae229a9cc7ea4 (patch) | |
tree | aba74794cb45f06734bd80bbf53d79f947008e54 /src/Canvas.hpp | |
parent | 1936aace80b5594078d874e9b661a9a91e461279 (diff) | |
download | patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.tar.gz patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.tar.bz2 patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.zip |
Format all code with clang-format
Diffstat (limited to 'src/Canvas.hpp')
-rw-r--r-- | src/Canvas.hpp | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/src/Canvas.hpp b/src/Canvas.hpp index dbc902a..59b886b 100644 --- a/src/Canvas.hpp +++ b/src/Canvas.hpp @@ -47,41 +47,42 @@ class Connector; class Canvas : public Ganv::Canvas { public: - Canvas(Connector& connector, int width, int height); + Canvas(Connector& connector, int width, int height); - CanvasPort* - create_port(Patchage& patchage, const PortID& id, const PortInfo& info); + CanvasPort* create_port(Patchage& patchage, + const PortID& id, + const PortInfo& info); - CanvasModule* find_module(const ClientID& id, SignalDirection type); - CanvasPort* find_port(const PortID& id); + CanvasModule* find_module(const ClientID& id, SignalDirection type); + CanvasPort* find_port(const PortID& id); - void remove_module(const ClientID& id); - void remove_module(CanvasModule* module); + void remove_module(const ClientID& id); + void remove_module(CanvasModule* module); - void remove_ports(bool (*pred)(const CanvasPort*)); + void remove_ports(bool (*pred)(const CanvasPort*)); - void add_module(const ClientID& id, CanvasModule* module); + void add_module(const ClientID& id, CanvasModule* module); - bool make_connection(Ganv::Node* tail, Ganv::Node* head); + bool make_connection(Ganv::Node* tail, Ganv::Node* head); - void remove_port(const PortID& id); + void remove_port(const PortID& id); - void clear() override; + void clear() override; private: - using PortIndex = std::map<const PortID, CanvasPort*>; - using ModuleIndex = std::multimap<const ClientID, CanvasModule*>; + using PortIndex = std::map<const PortID, CanvasPort*>; + using ModuleIndex = std::multimap<const ClientID, CanvasModule*>; - friend void disconnect_edge(GanvEdge*, void*); + friend void disconnect_edge(GanvEdge*, void*); - bool on_event(GdkEvent* ev); + bool on_event(GdkEvent* ev); - void on_connect(Ganv::Node* port1, Ganv::Node* port2); - void on_disconnect(Ganv::Node* port1, Ganv::Node* port2); + void on_connect(Ganv::Node* port1, Ganv::Node* port2); + void on_disconnect(Ganv::Node* port1, Ganv::Node* port2); - Connector& _connector; - PortIndex _port_index; - ModuleIndex _module_index; + Connector& _connector; + PortIndex _port_index; + ModuleIndex _module_index; }; } // namespace patchage |