Move some code around to help remote tool later
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
76cdce063c
commit
058ad891d2
11 changed files with 747 additions and 198 deletions
|
|
@ -20,10 +20,11 @@
|
|||
#include "NanoVG.hpp"
|
||||
#include "PluginContext.hpp"
|
||||
|
||||
#include <app/common.hpp>
|
||||
|
||||
class CardinalRemoteUI : public NanoTopLevelWidget
|
||||
{
|
||||
CardinalPluginContext context;
|
||||
std::string autosavePath;
|
||||
rack::math::Vec lastMousePos;
|
||||
|
||||
public:
|
||||
explicit CardinalRemoteUI(Window& window, const std::string& templatePath);
|
||||
|
|
@ -31,6 +32,12 @@ public:
|
|||
|
||||
protected:
|
||||
void onNanoDisplay() override;
|
||||
bool onMouse(const MouseEvent& ev) override;
|
||||
bool onMotion(const MotionEvent& ev) override;
|
||||
bool onScroll(const ScrollEvent& ev) override;
|
||||
bool onCharacterInput(const CharacterInputEvent& ev) override;
|
||||
bool onKeyboard(const KeyboardEvent& ev) override;
|
||||
void onResize(const ResizeEvent& ev) override;
|
||||
|
||||
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CardinalRemoteUI)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue