summaryrefslogtreecommitdiff
path: root/examples/CairoUI/PluginMain.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/CairoUI/PluginMain.h')
-rw-r--r--examples/CairoUI/PluginMain.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/CairoUI/PluginMain.h b/examples/CairoUI/PluginMain.h
new file mode 100644
index 00000000..cd4ca4b8
--- /dev/null
+++ b/examples/CairoUI/PluginMain.h
@@ -0,0 +1,20 @@
+// Copyright Jean Pierre Cimalando 2018.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#include "DistrhoPlugin.hpp"
+
+class ExamplePlugin : public Plugin {
+public:
+ ExamplePlugin();
+ const char *getLabel() const override;
+ const char *getMaker() const override;
+ const char *getLicense() const override;
+ uint32_t getVersion() const override;
+ int64_t getUniqueId() const override;
+ void initParameter(uint32_t index, Parameter &parameter) override;
+ float getParameterValue(uint32_t index) const override;
+ void setParameterValue(uint32_t index, float value) override;
+ void run(const float **inputs, float **outputs, uint32_t frames) override;
+};