diff options
Diffstat (limited to 'src/SFML/Window/Unix/Display.hpp')
-rw-r--r-- | src/SFML/Window/Unix/Display.hpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/SFML/Window/Unix/Display.hpp b/src/SFML/Window/Unix/Display.hpp index d2bb736..9aaca69 100644 --- a/src/SFML/Window/Unix/Display.hpp +++ b/src/SFML/Window/Unix/Display.hpp @@ -1,7 +1,7 @@ //////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library -// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) +// Copyright (C) 2007-2023 Laurent Gomila (laurent@sfml-dev.org) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages arising from the use of this software. @@ -56,6 +56,27 @@ Display* OpenDisplay(); void CloseDisplay(Display* display); //////////////////////////////////////////////////////////// +/// \brief Get the shared XIM context for the Display +/// +/// This function increments the reference count of the XIM context, +/// it must be matched with a call to CloseXIM. +/// +/// It must be called with a display already opened. +/// +/// \return XIM handle (a pointer) of the context +/// +//////////////////////////////////////////////////////////// +XIM OpenXIM(); + +//////////////////////////////////////////////////////////// +/// \brief Release a reference to the shared XIM context +/// +/// \param xim XIM context to release +/// +//////////////////////////////////////////////////////////// +void CloseXIM(XIM xim); + +//////////////////////////////////////////////////////////// /// \brief Get the atom with the specified name /// /// \param name Name of the atom |