summaryrefslogtreecommitdiff
path: root/include/SFML
diff options
context:
space:
mode:
Diffstat (limited to 'include/SFML')
-rw-r--r--include/SFML/Config.hpp2
-rw-r--r--include/SFML/System/FileInputStream.hpp4
-rw-r--r--include/SFML/Window/Clipboard.hpp19
-rw-r--r--include/SFML/Window/Cursor.hpp9
4 files changed, 24 insertions, 10 deletions
diff --git a/include/SFML/Config.hpp b/include/SFML/Config.hpp
index aae5f54..40b677e 100644
--- a/include/SFML/Config.hpp
+++ b/include/SFML/Config.hpp
@@ -31,7 +31,7 @@
////////////////////////////////////////////////////////////
#define SFML_VERSION_MAJOR 2
#define SFML_VERSION_MINOR 5
-#define SFML_VERSION_PATCH 0
+#define SFML_VERSION_PATCH 1
////////////////////////////////////////////////////////////
diff --git a/include/SFML/System/FileInputStream.hpp b/include/SFML/System/FileInputStream.hpp
index 43618da..ca26797 100644
--- a/include/SFML/System/FileInputStream.hpp
+++ b/include/SFML/System/FileInputStream.hpp
@@ -35,7 +35,7 @@
#include <cstdio>
#include <string>
-#ifdef ANDROID
+#ifdef SFML_SYSTEM_ANDROID
namespace sf
{
namespace priv
@@ -122,7 +122,7 @@ private:
////////////////////////////////////////////////////////////
// Member data
////////////////////////////////////////////////////////////
-#ifdef ANDROID
+#ifdef SFML_SYSTEM_ANDROID
priv::ResourceStream* m_file;
#else
std::FILE* m_file; ///< stdio file stream
diff --git a/include/SFML/Window/Clipboard.hpp b/include/SFML/Window/Clipboard.hpp
index 436da8f..50ea804 100644
--- a/include/SFML/Window/Clipboard.hpp
+++ b/include/SFML/Window/Clipboard.hpp
@@ -60,7 +60,12 @@ public:
/// This function sets the content of the clipboard as a
/// string.
///
- /// \param text sf::String containing the data to be sent
+ /// \warning Due to limitations on some operating systems,
+ /// setting the clipboard contents is only
+ /// guaranteed to work if there is currently an
+ /// open window for which events are being handled.
+ ///
+ /// \param text sf::String containing the data to be sent
/// to the clipboard
///
////////////////////////////////////////////////////////////
@@ -80,6 +85,11 @@ public:
/// sf::Clipboard provides an interface for getting and
/// setting the contents of the system clipboard.
///
+/// It is important to note that due to limitations on some
+/// operating systems, setting the clipboard contents is
+/// only guaranteed to work if there is currently an open
+/// window for which events are being handled.
+///
/// Usage example:
/// \code
/// // get the clipboard content as a string
@@ -96,11 +106,12 @@ public:
/// // Using Ctrl + V to paste a string into SFML
/// if(event.key.control && event.key.code == sf::Keyboard::V)
/// string = sf::Clipboard::getString();
+///
+/// // Using Ctrl + C to copy a string out of SFML
+/// if(event.key.control && event.key.code == sf::Keyboard::C)
+/// sf::Clipboard::setString("Hello World!");
/// }
/// }
-///
-/// // set the clipboard to a string
-/// sf::Clipboard::setString("Hello World!");
/// \endcode
///
/// \see sf::String, sf::Event
diff --git a/include/SFML/Window/Cursor.hpp b/include/SFML/Window/Cursor.hpp
index 30aebd4..9daa13b 100644
--- a/include/SFML/Window/Cursor.hpp
+++ b/include/SFML/Window/Cursor.hpp
@@ -62,13 +62,16 @@ public:
/// sf::Cursor::Hand | yes | yes | yes |
/// sf::Cursor::SizeHorizontal | yes | yes | yes |
/// sf::Cursor::SizeVertical | yes | yes | yes |
- /// sf::Cursor::SizeTopLeftBottomRight | no | no | yes |
- /// sf::Cursor::SizeBottomLeftTopRight | no | no | yes |
+ /// sf::Cursor::SizeTopLeftBottomRight | no | yes* | yes |
+ /// sf::Cursor::SizeBottomLeftTopRight | no | yes* | yes |
/// sf::Cursor::SizeAll | yes | no | yes |
/// sf::Cursor::Cross | yes | yes | yes |
- /// sf::Cursor::Help | yes | no | yes |
+ /// sf::Cursor::Help | yes | yes* | yes |
/// sf::Cursor::NotAllowed | yes | yes | yes |
///
+ /// * These cursor types are undocumented so may not
+ /// be available on all versions, but have been tested on 10.13
+ ///
////////////////////////////////////////////////////////////
enum Type
{