summaryrefslogtreecommitdiff
path: root/src/SFML/Window/Linux/WindowImplX11.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SFML/Window/Linux/WindowImplX11.hpp')
-rw-r--r--[-rwxr-xr-x]src/SFML/Window/Linux/WindowImplX11.hpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/SFML/Window/Linux/WindowImplX11.hpp b/src/SFML/Window/Linux/WindowImplX11.hpp
index 8c31621..b4506fc 100755..100644
--- a/src/SFML/Window/Linux/WindowImplX11.hpp
+++ b/src/SFML/Window/Linux/WindowImplX11.hpp
@@ -82,6 +82,14 @@ public :
////////////////////////////////////////////////////////////
~WindowImplX11();
+ ////////////////////////////////////////////////////////////
+ /// Check if there's an active context on the current thread
+ ///
+ /// \return True if there's a context bound to the current thread
+ ///
+ ////////////////////////////////////////////////////////////
+ static bool IsContextActive();
+
private :
friend class VideoModeSupport;
@@ -99,10 +107,10 @@ private :
virtual void ProcessEvents();
////////////////////////////////////////////////////////////
- /// /see WindowImpl::MakeActive
+ /// /see WindowImpl::SetActive
///
////////////////////////////////////////////////////////////
- virtual void MakeActive(bool Active = true) const;
+ virtual void SetActive(bool Active = true) const;
////////////////////////////////////////////////////////////
/// /see WindowImpl::UseVerticalSync
@@ -129,6 +137,12 @@ private :
virtual void SetPosition(int Left, int Top);
////////////////////////////////////////////////////////////
+ /// /see WindowImpl::SetSize
+ ///
+ ////////////////////////////////////////////////////////////
+ virtual void SetSize(unsigned int Width, unsigned int Height);
+
+ ////////////////////////////////////////////////////////////
/// /see sfWindowImpl::Show
///
////////////////////////////////////////////////////////////
@@ -141,6 +155,12 @@ private :
virtual void EnableKeyRepeat(bool Enabled);
////////////////////////////////////////////////////////////
+ /// /see WindowImpl::SetIcon
+ ///
+ ////////////////////////////////////////////////////////////
+ virtual void SetIcon(unsigned int Width, unsigned int Height, const Uint8* Pixels);
+
+ ////////////////////////////////////////////////////////////
/// Switch to fullscreen mode
///
/// \param Mode : video mode to switch to
@@ -246,6 +266,7 @@ private :
int myOldVideoMode; ///< Video mode in use before we switch to fullscreen
Cursor myHiddenCursor; ///< As X11 doesn't provide cursor hidding, we must create a transparent one
XIC myInputContext; ///< Input context used to get unicode input in our window
+ bool myKeyRepeat; ///< Is the KeyRepeat feature enabled ?
};
} // namespace priv