diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-08 18:18:34 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-08 18:19:31 +0200 |
commit | db564a03c77e8271534810e2e3a60fd3506ec0b0 (patch) | |
tree | 943271cb92db5dc057cc44947df9fcd5ff8be91c /libs/ardour/ardour/plugin.h | |
parent | 77e50f56f9f9107c122bf8785978eb6bd7e49a36 (diff) |
add an plugin API to query generic-gui grid-layout
Diffstat (limited to 'libs/ardour/ardour/plugin.h')
-rw-r--r-- | libs/ardour/ardour/plugin.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h index dcb6577e7a..bc32d7c3e6 100644 --- a/libs/ardour/ardour/plugin.h +++ b/libs/ardour/ardour/plugin.h @@ -88,6 +88,18 @@ class LIBARDOUR_API Plugin : public PBD::StatefulDestructible, public Latent virtual std::string get_docs () const { return ""; } virtual std::string get_parameter_docs (uint32_t /*which*/) const { return ""; } + struct UILayoutHint { + UILayoutHint () + : x0(-1), x1(-1), y0(-1), y1(-1), knob(false) {} + int x0; + int x1; + int y0; + int y1; + bool knob; + }; + + virtual bool get_layout (uint32_t which, UILayoutHint&) const { return false; } + virtual int get_parameter_descriptor (uint32_t which, ParameterDescriptor&) const = 0; virtual uint32_t nth_parameter (uint32_t which, bool& ok) const = 0; virtual void activate () = 0; |