summaryrefslogtreecommitdiffstats
path: root/src/CanvasModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-02 14:02:44 +0100
committerDavid Robillard <d@drobilla.net>2021-01-02 14:02:44 +0100
commit663a5d01b1931b97370ed8feff3ae229a9cc7ea4 (patch)
treeaba74794cb45f06734bd80bbf53d79f947008e54 /src/CanvasModule.hpp
parent1936aace80b5594078d874e9b661a9a91e461279 (diff)
downloadpatchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.tar.gz
patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.tar.bz2
patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.zip
Format all code with clang-format
Diffstat (limited to 'src/CanvasModule.hpp')
-rw-r--r--src/CanvasModule.hpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/CanvasModule.hpp b/src/CanvasModule.hpp
index 3361fbb..b8c9523 100644
--- a/src/CanvasModule.hpp
+++ b/src/CanvasModule.hpp
@@ -43,45 +43,45 @@ class Patchage;
class CanvasModule : public Ganv::Module
{
public:
- CanvasModule(Patchage* app,
- const std::string& name,
- SignalDirection type,
- ClientID id,
- double x = 0.0,
- double y = 0.0);
+ CanvasModule(Patchage* app,
+ const std::string& name,
+ SignalDirection type,
+ ClientID id,
+ double x = 0.0,
+ double y = 0.0);
- CanvasModule(const CanvasModule&) = delete;
- CanvasModule& operator=(const CanvasModule&) = delete;
+ CanvasModule(const CanvasModule&) = delete;
+ CanvasModule& operator=(const CanvasModule&) = delete;
- CanvasModule(CanvasModule&&) = delete;
- CanvasModule& operator=(CanvasModule&&) = delete;
+ CanvasModule(CanvasModule&&) = delete;
+ CanvasModule& operator=(CanvasModule&&) = delete;
- ~CanvasModule() override;
+ ~CanvasModule() override;
- bool show_menu(GdkEventButton* ev);
- void update_menu();
+ bool show_menu(GdkEventButton* ev);
+ void update_menu();
- void split();
- void join();
- void disconnect_all();
+ void split();
+ void join();
+ void disconnect_all();
- CanvasPort* get_port(const PortID& id);
+ CanvasPort* get_port(const PortID& id);
- void load_location();
- void store_location(double x, double y);
+ void load_location();
+ void store_location(double x, double y);
- SignalDirection type() const { return _type; }
- ClientID id() const { return _id; }
- const std::string& name() const { return _name; }
+ SignalDirection type() const { return _type; }
+ ClientID id() const { return _id; }
+ const std::string& name() const { return _name; }
protected:
- bool on_event(GdkEvent* ev) override;
+ bool on_event(GdkEvent* ev) override;
- Patchage* _app;
- Gtk::Menu* _menu;
- std::string _name;
- SignalDirection _type;
- ClientID _id;
+ Patchage* _app;
+ Gtk::Menu* _menu;
+ std::string _name;
+ SignalDirection _type;
+ ClientID _id;
};
} // namespace patchage