diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-23 18:13:26 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-23 18:13:26 +1000 |
commit | 176c79bada5f175202a1f67828a9d4bfc208895c (patch) | |
tree | 7487030ad4227dd1bd223d202d699a7400305bcf /source/windowing/StarGuiContext.hpp | |
parent | bab5f0bd1123034cce33e7519dbb33afbd04b081 (diff) |
Hardware Cursor support
Updated SDL2 for this, so lib\ is no longer gitignored
Diffstat (limited to 'source/windowing/StarGuiContext.hpp')
-rw-r--r-- | source/windowing/StarGuiContext.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/windowing/StarGuiContext.hpp b/source/windowing/StarGuiContext.hpp index 3457148..2f08394 100644 --- a/source/windowing/StarGuiContext.hpp +++ b/source/windowing/StarGuiContext.hpp @@ -90,6 +90,9 @@ public: void drawImageStretchSet(ImageStretchSet const& imageSet, RectF const& screenPos, GuiDirection direction = GuiDirection::Horizontal, Vec4B const& color = Vec4B::filled(255)); + // Returns true if the hardware cursor was successfully set to the drawable. Generally fails if the Drawable isn't an image part or the image is too big. + bool trySetCursor(Drawable const& drawable, Vec2I const& offset, int pixelRatio); + RectF renderText(String const& s, TextPositioning const& positioning); RectF renderInterfaceText(String const& s, TextPositioning const& positioning); |