Commit Graph
4 Commits
Author SHA1 Message Date
Vadim Zeitlin 1eeb494ca7 Add wxCursorBundle ctor taking wxStockCursor
This allows the existing code passing wxStockCursor instead of wxCursor
parameter to keep working with the functions taking wxCursorBundle
instead of wxCursor too and, in particular, we can keep just a single
version of wxSetCursor() instead of having two overloads (which wasn't
necessarily a problem for just this function, but is inconsistent with
the other functions taking wxCursor, notably wxDropSource ctor where
overloads really can't be used because we would need too many of them
to cover all combinations of 3 different wxCursor parameters).
2025-05-08 02:49:54 +02:00
Vadim Zeitlin d6188e42f5 Provide wxBeginBusyCursor() overload taking wxCursorBundle
Make it simpler to use a high resolution busy cursor.
2025-05-08 02:49:54 +02:00
Vadim Zeitlin 8ddc55f66b Make wxBusyCursor constructor explicit
It doesn't make sense to implicitly convert wxCursor pointers to
wxBusyCursor, so forbid it.
2025-05-08 02:49:54 +02:00
Vadim Zeitlin 198b826acd Extract busy cursor-related stuff into its own header
It didn't make sense to include wx/utils.h from wx/cursor.h, but it
somewhat does make sense to declare busy cursor-related functions and
wxBusyCursor itself in this header, so extract these declarations into
their own header which is included from both wx/cursor.h and wx/utils.h
for compatibility, but can be also included directly.

Document that wx/cursor.h doesn't pull in wx/utils.h any longer as it's
an incompatible change (but hopefully one not resulting in too much
disruption and so worth it).
2025-05-08 02:49:54 +02:00