Implement glfwCreateStandardCursor
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
9cd3529011
commit
da61999de5
3 changed files with 48 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue