From eeb9267e6ea1a8481bef36186e36c02189924f3b Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 13 Mar 2023 10:38:28 +0100 Subject: Wayland: add support for multiple high or low DPI displays --- src/fl_cursor.cxx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/fl_cursor.cxx') diff --git a/src/fl_cursor.cxx b/src/fl_cursor.cxx index 84ef9ff1e..681a98255 100644 --- a/src/fl_cursor.cxx +++ b/src/fl_cursor.cxx @@ -107,6 +107,18 @@ static void fallback_cursor(Fl_Window *w, Fl_Cursor c) { } +/** + Changes the cursor for this window. + + The window must be show()'n for this function to have any effect. + This always calls the system. If you are changing the cursor a lot + you may want to keep track of how you set it in a static variable + and call this only if the new cursor is different. + + The type Fl_Cursor is an enumeration defined in . + + \see cursor(const Fl_RGB_Image*, int, int), default_cursor() +*/ void Fl_Window::cursor(Fl_Cursor c) { int ret; @@ -137,13 +149,17 @@ void Fl_Window::cursor(Fl_Cursor c) { } /** - Changes the cursor for this window. This always calls the system. If + Changes the cursor for this window using the provided image as cursor's shape. + The window must be show()'n for this function to have any effect. + This always calls the system. If you are changing the cursor a lot you may want to keep track of how you set it in a static variable and call this only if the new cursor is different. The default cursor will be used if the provided image cannot be used as a cursor. + \param image Sets the cursor size and shape + \param hotx,hoty Sets the cursor's active location relatively to top-left of \c image when clicking \see cursor(Fl_Cursor), default_cursor() */ -- cgit v1.2.3