|
|
@@ -73,10 +73,17 @@ Scene::Scene() { |
|
|
|
addChild(internal->resizeHandle); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Scene::~Scene() { |
|
|
|
delete internal; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
math::Vec Scene::getMousePos() { |
|
|
|
return mousePos; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Scene::step() { |
|
|
|
if (APP->window->isFullScreen()) { |
|
|
|
// Expand RackScrollWidget to cover entire screen if fullscreen |
|
|
@@ -107,10 +114,12 @@ void Scene::step() { |
|
|
|
Widget::step(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Scene::draw(const DrawArgs& args) { |
|
|
|
Widget::draw(args); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Scene::onHover(const HoverEvent& e) { |
|
|
|
mousePos = e.pos; |
|
|
|
if (mousePos.y < menuBar->box.size.y) { |
|
|
@@ -119,11 +128,13 @@ void Scene::onHover(const HoverEvent& e) { |
|
|
|
OpaqueWidget::onHover(e); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Scene::onDragHover(const DragHoverEvent& e) { |
|
|
|
mousePos = e.pos; |
|
|
|
OpaqueWidget::onDragHover(e); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Scene::onHoverKey(const HoverKeyEvent& e) { |
|
|
|
if (e.action == GLFW_PRESS || e.action == GLFW_REPEAT) { |
|
|
|
// DEBUG("key '%d '%c' scancode %d '%c' keyName '%s'", e.key, e.key, e.scancode, e.scancode, e.keyName.c_str()); |
|
|
@@ -298,6 +309,7 @@ void Scene::onHoverKey(const HoverKeyEvent& e) { |
|
|
|
OpaqueWidget::onHoverKey(e); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Scene::onPathDrop(const PathDropEvent& e) { |
|
|
|
if (e.paths.size() >= 1) { |
|
|
|
const std::string& path = e.paths[0]; |
|
|
|