diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-03-13 10:38:28 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-03-13 10:38:28 +0100 |
| commit | eeb9267e6ea1a8481bef36186e36c02189924f3b (patch) | |
| tree | cbcac46d56d4bf4da55c240dd650235991335f30 /src/fl_cursor.cxx | |
| parent | af4789077f44d0391b80432a8e0fcfbf4865a924 (diff) | |
Wayland: add support for multiple high or low DPI displays
Diffstat (limited to 'src/fl_cursor.cxx')
| -rw-r--r-- | src/fl_cursor.cxx | 18 |
1 files changed, 17 insertions, 1 deletions
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 <FL/Enumerations.H>. + + \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() */ |
