diff --git a/bindings/c/include/SFML/Graphics/RenderWindow.h b/bindings/c/include/SFML/Graphics/RenderWindow.h
index 8d12339af..c283f4406 100644
--- a/bindings/c/include/SFML/Graphics/RenderWindow.h
+++ b/bindings/c/include/SFML/Graphics/RenderWindow.h
@@ -183,6 +183,15 @@ CSFML_API void sfRenderWindow_SetPosition(sfRenderWindow* renderWindow, int left
////////////////////////////////////////////////////////////
CSFML_API void sfRenderWindow_SetSize(sfRenderWindow* renderWindow, unsigned int width, unsigned int height);
+////////////////////////////////////////////////////////////
+/// Change the title of a window
+///
+/// \param renderWindow : Renderwindow object
+/// \param title : New title
+///
+////////////////////////////////////////////////////////////
+CSFML_API void sfRenderWindow_SetTitle(sfRenderWindow* renderWindow, const char* title);
+
////////////////////////////////////////////////////////////
/// Show or hide a window
///
diff --git a/bindings/c/include/SFML/Window/Window.h b/bindings/c/include/SFML/Window/Window.h
index 4d315452d..60d905eee 100644
--- a/bindings/c/include/SFML/Window/Window.h
+++ b/bindings/c/include/SFML/Window/Window.h
@@ -208,6 +208,15 @@ CSFML_API void sfWindow_SetPosition(sfWindow* window, int left, int top);
////////////////////////////////////////////////////////////
CSFML_API void sfWindow_SetSize(sfWindow* window, unsigned int width, unsigned int height);
+////////////////////////////////////////////////////////////
+/// Change the title of a window
+///
+/// \param window : Window object
+/// \param title : New title
+///
+////////////////////////////////////////////////////////////
+CSFML_API void sfWindow_SetTitle(sfWindow* window, const char* title);
+
////////////////////////////////////////////////////////////
/// Show or hide a window
///
diff --git a/bindings/c/src/SFML/Graphics/RenderWindow.cpp b/bindings/c/src/SFML/Graphics/RenderWindow.cpp
index c6368073b..0d78cba3c 100644
--- a/bindings/c/src/SFML/Graphics/RenderWindow.cpp
+++ b/bindings/c/src/SFML/Graphics/RenderWindow.cpp
@@ -247,6 +247,15 @@ void sfRenderWindow_SetSize(sfRenderWindow* renderWindow, unsigned int width, un
}
+////////////////////////////////////////////////////////////
+/// Change the title of a window
+////////////////////////////////////////////////////////////
+void sfRenderWindow_SetTitle(sfRenderWindow* renderWindow, const char* title)
+{
+ CSFML_CALL(renderWindow, SetTitle(title))
+}
+
+
////////////////////////////////////////////////////////////
/// Show or hide a window
////////////////////////////////////////////////////////////
diff --git a/bindings/c/src/SFML/Window/Window.cpp b/bindings/c/src/SFML/Window/Window.cpp
index 5f4cab18c..51c22a0ac 100644
--- a/bindings/c/src/SFML/Window/Window.cpp
+++ b/bindings/c/src/SFML/Window/Window.cpp
@@ -239,6 +239,15 @@ void sfWindow_SetSize(sfWindow* window, unsigned int width, unsigned int height)
}
+////////////////////////////////////////////////////////////
+/// Change the title of a window
+////////////////////////////////////////////////////////////
+void sfWindow_SetTitle(sfWindow* window, const char* title)
+{
+ CSFML_CALL(window, SetTitle(title))
+}
+
+
////////////////////////////////////////////////////////////
/// Show or hide a window
////////////////////////////////////////////////////////////
diff --git a/bindings/dotnet/extlibs/x64/csfml-audio-2.dll b/bindings/dotnet/extlibs/x64/csfml-audio-2.dll
index 47b622a66..37e3315c8 100644
Binary files a/bindings/dotnet/extlibs/x64/csfml-audio-2.dll and b/bindings/dotnet/extlibs/x64/csfml-audio-2.dll differ
diff --git a/bindings/dotnet/extlibs/x64/csfml-graphics-2.dll b/bindings/dotnet/extlibs/x64/csfml-graphics-2.dll
index bcc4023cb..222097e12 100644
Binary files a/bindings/dotnet/extlibs/x64/csfml-graphics-2.dll and b/bindings/dotnet/extlibs/x64/csfml-graphics-2.dll differ
diff --git a/bindings/dotnet/extlibs/x64/csfml-window-2.dll b/bindings/dotnet/extlibs/x64/csfml-window-2.dll
index 8fabc36e9..478fc640c 100644
Binary files a/bindings/dotnet/extlibs/x64/csfml-window-2.dll and b/bindings/dotnet/extlibs/x64/csfml-window-2.dll differ
diff --git a/bindings/dotnet/extlibs/x86/csfml-audio-2.dll b/bindings/dotnet/extlibs/x86/csfml-audio-2.dll
index 631ac3148..997267981 100644
Binary files a/bindings/dotnet/extlibs/x86/csfml-audio-2.dll and b/bindings/dotnet/extlibs/x86/csfml-audio-2.dll differ
diff --git a/bindings/dotnet/extlibs/x86/csfml-graphics-2.dll b/bindings/dotnet/extlibs/x86/csfml-graphics-2.dll
index 4322b0240..045e75fca 100644
Binary files a/bindings/dotnet/extlibs/x86/csfml-graphics-2.dll and b/bindings/dotnet/extlibs/x86/csfml-graphics-2.dll differ
diff --git a/bindings/dotnet/extlibs/x86/csfml-window-2.dll b/bindings/dotnet/extlibs/x86/csfml-window-2.dll
index 873629a17..f8e4e80bf 100644
Binary files a/bindings/dotnet/extlibs/x86/csfml-window-2.dll and b/bindings/dotnet/extlibs/x86/csfml-window-2.dll differ
diff --git a/bindings/dotnet/src/Graphics/RenderWindow.cs b/bindings/dotnet/src/Graphics/RenderWindow.cs
index b6f63742d..76f9066d7 100644
--- a/bindings/dotnet/src/Graphics/RenderWindow.cs
+++ b/bindings/dotnet/src/Graphics/RenderWindow.cs
@@ -205,6 +205,17 @@ namespace SFML
sfRenderWindow_SetSize(This, width, height);
}
+ ////////////////////////////////////////////////////////////
+ ///
+ /// Change the title of the window
+ ///
+ /// New title
+ ////////////////////////////////////////////////////////////
+ public override void SetTitle(string title)
+ {
+ sfRenderWindow_SetTitle(This, title);
+ }
+
////////////////////////////////////////////////////////////
///
/// Show or hide the window
@@ -569,6 +580,9 @@ namespace SFML
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
static extern void sfRenderWindow_SetSize(IntPtr This, uint Width, uint Height);
+ [DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
+ static extern void sfRenderWindow_SetTitle(IntPtr This, string title);
+
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
static extern void sfRenderWindow_Show(IntPtr This, bool Show);
diff --git a/bindings/dotnet/src/Window/Window.cs b/bindings/dotnet/src/Window/Window.cs
index b1dbe8386..99239f78f 100644
--- a/bindings/dotnet/src/Window/Window.cs
+++ b/bindings/dotnet/src/Window/Window.cs
@@ -240,6 +240,17 @@ namespace SFML
sfWindow_SetSize(This, width, height);
}
+ ////////////////////////////////////////////////////////////
+ ///
+ /// Change the title of the window
+ ///
+ /// New title
+ ////////////////////////////////////////////////////////////
+ public virtual void SetTitle(string title)
+ {
+ sfWindow_SetTitle(This, title);
+ }
+
////////////////////////////////////////////////////////////
///
/// Show or hide the window
@@ -632,6 +643,9 @@ namespace SFML
[DllImport("csfml-window-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
static extern void sfWindow_SetSize(IntPtr This, uint Width, uint Height);
+ [DllImport("csfml-window-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
+ static extern void sfWindow_SetTitle(IntPtr This, string title);
+
[DllImport("csfml-window-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
static extern void sfWindow_Show(IntPtr This, bool Show);