@@ -86,14 +86,6 @@ public: | |||||
return h(); | return h(); | ||||
} | } | ||||
/** | |||||
Get size. | |||||
*/ | |||||
Size<int> getSize() const | |||||
{ | |||||
return Size<int>(w(), h()); | |||||
} | |||||
/** | /** | ||||
Set width. | Set width. | ||||
*/ | */ | ||||
@@ -118,14 +110,6 @@ public: | |||||
resize(x(), y(), width, height); | resize(x(), y(), width, height); | ||||
} | } | ||||
/** | |||||
Set size. | |||||
*/ | |||||
void setSize(const Size<int>& size) | |||||
{ | |||||
resize(x(), y(), size.getWidth(), size.getHeight()); | |||||
} | |||||
/** | /** | ||||
Get absolute X. | Get absolute X. | ||||
*/ | */ | ||||
@@ -142,14 +126,6 @@ public: | |||||
return y(); | return y(); | ||||
} | } | ||||
/** | |||||
Get absolute position. | |||||
*/ | |||||
Point<int> getAbsolutePos() const | |||||
{ | |||||
return Point<int>(x(), y()); | |||||
} | |||||
/** | /** | ||||
Set absolute X. | Set absolute X. | ||||
*/ | */ | ||||
@@ -174,14 +150,6 @@ public: | |||||
resize(x, y, w(), h()); | resize(x, y, w(), h()); | ||||
} | } | ||||
/** | |||||
Set absolute position. | |||||
*/ | |||||
void setAbsolutePos(const Point<int>& pos) | |||||
{ | |||||
resize(pos.getX(), pos.getY(), w(), h()); | |||||
} | |||||
/** | /** | ||||
Get this widget's window application. | Get this widget's window application. | ||||
Same as calling getParentWindow().getApp(). | Same as calling getParentWindow().getApp(). | ||||
@@ -207,14 +175,6 @@ public: | |||||
return (x >= 0 && y >= 0 && x < w() && y < h()); | return (x >= 0 && y >= 0 && x < w() && y < h()); | ||||
} | } | ||||
/** | |||||
Check if this widget contains the point @a pos. | |||||
*/ | |||||
bool contains(const Point<int>& pos) const | |||||
{ | |||||
return contains(pos.getX(), pos.getY()); | |||||
} | |||||
/** | /** | ||||
Tell this widget's window to repaint itself. | Tell this widget's window to repaint itself. | ||||
*/ | */ | ||||
@@ -19,8 +19,6 @@ | |||||
#include "NtkApp.hpp" | #include "NtkApp.hpp" | ||||
#include "../Geometry.hpp" | |||||
START_NAMESPACE_DGL | START_NAMESPACE_DGL | ||||
class NtkWidget; | class NtkWidget; | ||||
@@ -130,21 +128,11 @@ public: | |||||
return h(); | return h(); | ||||
} | } | ||||
Size<uint> getSize() const noexcept | |||||
{ | |||||
return Size<uint>(w(), h()); | |||||
} | |||||
void setSize(uint width, uint height) | void setSize(uint width, uint height) | ||||
{ | { | ||||
resize(x(), y(), width, height); | resize(x(), y(), width, height); | ||||
} | } | ||||
void setSize(Size<uint> size) | |||||
{ | |||||
resize(x(), y(), size.getWidth(), size.getHeight()); | |||||
} | |||||
void setTitle(const char* title) | void setTitle(const char* title) | ||||
{ | { | ||||
label(title); | label(title); | ||||
@@ -409,6 +409,8 @@ class Plugin | |||||
public: | public: | ||||
/** | /** | ||||
Plugin class constructor. | 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); | Plugin(const uint32_t parameterCount, const uint32_t programCount, const uint32_t stateCount); | ||||
@@ -182,8 +182,10 @@ private: | |||||
void setAbsoluteX(int) const noexcept {} | void setAbsoluteX(int) const noexcept {} | ||||
void setAbsoluteY(int) const noexcept {} | void setAbsoluteY(int) const noexcept {} | ||||
void setAbsolutePos(int, int) const noexcept {} | void setAbsolutePos(int, int) const noexcept {} | ||||
void setAbsolutePos(const DGL::Point<int>&) const noexcept {} | |||||
void setNeedsFullViewport(bool) const noexcept {} | void setNeedsFullViewport(bool) const noexcept {} | ||||
#if ! DISTRHO_UI_USE_NTK | |||||
void setAbsolutePos(const DGL::Point<int>&) const noexcept {} | |||||
#endif | |||||
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(UI) | DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(UI) | ||||
}; | }; | ||||