Implement glfwCreateStandardCursor

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-06-20 11:33:22 +01:00
parent 9cd3529011
commit da61999de5
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 48 additions and 3 deletions

View file

@ -108,11 +108,11 @@ struct ResizeHandle : widget::OpaqueWidget {
}
void onEnter(const EnterEvent& e) override {
glfwSetCursor(nullptr, (GLFWcursor*)0x1);
glfwSetCursor(APP->window->win, glfwCreateStandardCursor(GLFW_RESIZE_NWSE_CURSOR));
}
void onLeave(const LeaveEvent& e) override {
glfwSetCursor(nullptr, nullptr);
glfwSetCursor(APP->window->win, nullptr);
}
void onDragStart(const DragStartEvent&) override {