25#ifndef TGUI_BACKEND_GLFW_HPP
26#define TGUI_BACKEND_GLFW_HPP
28#include <TGUI/Backend/Window/GLFW/BackendGuiGLFW.hpp>
30#if !TGUI_BUILD_AS_CXX_MODULE
31 #include <TGUI/Backend/Window/Backend.hpp>
34#if !TGUI_EXPERIMENTAL_USE_STD_MODULE
35 #include <unordered_map>
41#if !TGUI_BUILD_AS_CXX_MODULE
42 using GLFWwindow =
struct GLFWwindow;
43 using GLFWcursor =
struct GLFWcursor;
48TGUI_MODULE_EXPORT
namespace tgui
129 TGUI_NODISCARD GLFWcursor* createSystemCursor(
Cursor::Type type);
134 void updateMouseCursorStyle(
Cursor::Type type, GLFWcursor* cursor);
139 void updateShownMouseCursor(GLFWwindow* window,
Cursor::Type type);
144 TGUI_NODISCARD GLFWwindow* getAnyWindow()
const;
151 GLFWwindow* window =
nullptr;
155 std::unordered_map<BackendGui*, GuiResources> m_guiResources;
156 std::unordered_map<Cursor::Type, GLFWcursor*> m_mouseCursors;
Definition BackendGLFW.hpp:51
TGUI_NODISCARD String getClipboard() const override
Returns the contents of the clipboard.
void setMouseCursor(BackendGui *gui, Cursor::Type type) override
Changes the mouse cursor when the mouse is on top of the window to which the gui is attached.
void setMouseCursorStyle(Cursor::Type type, const std::uint8_t *pixels, Vector2u size, Vector2u hotspot) override
Changes the look of a certain mouse cursor by using a bitmap.
void setClipboard(const String &contents) override
Changes the contents of the clipboard.
TGUI_NODISCARD bool isKeyboardModifierPressed(Event::KeyModifier modifierKey) override
Checks the state for one of the modifier keys.
void detatchGui(BackendGui *gui) override
Informs the backend that a gui object is being destroyed.
~BackendGLFW() override
Destructor.
void resetMouseCursorStyle(Cursor::Type type) override
Changes the look of a certain mouse cursor back to the system theme.
void setGuiWindow(BackendGui *gui, GLFWwindow *window)
Informs the backend which window belongs to the gui.
Base class for the Gui.
Definition BackendGui.hpp:47
Base class for the backend.
Definition Backend.hpp:87
Type
List of available cursors.
Definition Cursor.hpp:50
Wrapper class to store strings.
Definition String.hpp:96
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
KeyModifier
Modifiers keys.
Definition Event.hpp:157