summaryrefslogtreecommitdiff
path: root/include/SFML/Window/Window.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/SFML/Window/Window.hpp')
-rw-r--r--include/SFML/Window/Window.hpp25
1 files changed, 18 insertions, 7 deletions
diff --git a/include/SFML/Window/Window.hpp b/include/SFML/Window/Window.hpp
index 44f0752..0839287 100644
--- a/include/SFML/Window/Window.hpp
+++ b/include/SFML/Window/Window.hpp
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
+// Copyright (C) 2007-2016 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.
@@ -98,8 +98,7 @@ public:
/// advanced OpenGL context settings such as antialiasing,
/// depth-buffer bits, etc.
///
- /// \param handle Platform-specific handle of the control (\a HWND on
- /// Windows, \a %Window on Linux/FreeBSD, \a NSWindow on OS X)
+ /// \param handle Platform-specific handle of the control
/// \param settings Additional settings for the underlying OpenGL context
///
////////////////////////////////////////////////////////////
@@ -143,8 +142,7 @@ public:
/// advanced OpenGL context settings such as antialiasing,
/// depth-buffer bits, etc.
///
- /// \param handle Platform-specific handle of the control (\a HWND on
- /// Windows, \a %Window on Linux/FreeBSD, \a NSWindow on OS X)
+ /// \param handle Platform-specific handle of the control
/// \param settings Additional settings for the underlying OpenGL context
///
////////////////////////////////////////////////////////////
@@ -351,6 +349,21 @@ public:
void setMouseCursorVisible(bool visible);
////////////////////////////////////////////////////////////
+ /// \brief Grab or release the mouse cursor
+ ///
+ /// If set, grabs the mouse cursor inside this window's client
+ /// area so it may no longer be moved outside its bounds.
+ /// Note that grabbing is only active while the window has
+ /// focus and calling this function for fullscreen windows
+ /// won't have any effect (fullscreen windows always grab the
+ /// cursor).
+ ///
+ /// \param grabbed True to enable, false to disable
+ ///
+ ////////////////////////////////////////////////////////////
+ void setMouseCursorGrabbed(bool grabbed);
+
+ ////////////////////////////////////////////////////////////
/// \brief Enable or disable automatic key-repeat
///
/// If key repeat is enabled, you will receive repeated
@@ -459,8 +472,6 @@ public:
/// You shouldn't need to use this function, unless you have
/// very specific stuff to implement that SFML doesn't support,
/// or implement a temporary workaround until a bug is fixed.
- /// The type is \a HWND on Windows, \a %Window on Linux/FreeBSD
- /// and \a NSWindow on OS X.
///
/// \return System handle of the window
///