diff --git a/dgl/ntk/NtkWidget.hpp b/dgl/ntk/NtkWidget.hpp index b11e4e92..2247be38 100644 --- a/dgl/ntk/NtkWidget.hpp +++ b/dgl/ntk/NtkWidget.hpp @@ -86,14 +86,6 @@ public: return h(); } - /** - Get size. - */ - Size getSize() const - { - return Size(w(), h()); - } - /** Set width. */ @@ -118,14 +110,6 @@ public: resize(x(), y(), width, height); } - /** - Set size. - */ - void setSize(const Size& size) - { - resize(x(), y(), size.getWidth(), size.getHeight()); - } - /** Get absolute X. */ @@ -142,14 +126,6 @@ public: return y(); } - /** - Get absolute position. - */ - Point getAbsolutePos() const - { - return Point(x(), y()); - } - /** Set absolute X. */ @@ -174,14 +150,6 @@ public: resize(x, y, w(), h()); } - /** - Set absolute position. - */ - void setAbsolutePos(const Point& pos) - { - resize(pos.getX(), pos.getY(), w(), h()); - } - /** Get this widget's window application. Same as calling getParentWindow().getApp(). @@ -207,14 +175,6 @@ public: return (x >= 0 && y >= 0 && x < w() && y < h()); } - /** - Check if this widget contains the point @a pos. - */ - bool contains(const Point& pos) const - { - return contains(pos.getX(), pos.getY()); - } - /** Tell this widget's window to repaint itself. */ diff --git a/dgl/ntk/NtkWindow.hpp b/dgl/ntk/NtkWindow.hpp index 81ad45b6..47e9f104 100644 --- a/dgl/ntk/NtkWindow.hpp +++ b/dgl/ntk/NtkWindow.hpp @@ -19,8 +19,6 @@ #include "NtkApp.hpp" -#include "../Geometry.hpp" - START_NAMESPACE_DGL class NtkWidget; @@ -130,21 +128,11 @@ public: return h(); } - Size getSize() const noexcept - { - return Size(w(), h()); - } - void setSize(uint width, uint height) { resize(x(), y(), width, height); } - void setSize(Size size) - { - resize(x(), y(), size.getWidth(), size.getHeight()); - } - void setTitle(const char* title) { label(title); diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp index 762d38a8..359f4b24 100644 --- a/distrho/DistrhoPlugin.hpp +++ b/distrho/DistrhoPlugin.hpp @@ -409,6 +409,8 @@ class Plugin public: /** Plugin class constructor. + You must set all parameter values to their defaults, matching ParameterRanges::def. + If you're using states you must also set them to their defaults by calling d_setState(). */ Plugin(const uint32_t parameterCount, const uint32_t programCount, const uint32_t stateCount); diff --git a/distrho/DistrhoUI.hpp b/distrho/DistrhoUI.hpp index 21e970d6..4366d40f 100644 --- a/distrho/DistrhoUI.hpp +++ b/distrho/DistrhoUI.hpp @@ -182,8 +182,10 @@ private: void setAbsoluteX(int) const noexcept {} void setAbsoluteY(int) const noexcept {} void setAbsolutePos(int, int) const noexcept {} - void setAbsolutePos(const DGL::Point&) const noexcept {} void setNeedsFullViewport(bool) const noexcept {} +#if ! DISTRHO_UI_USE_NTK + void setAbsolutePos(const DGL::Point&) const noexcept {} +#endif DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(UI) };