Added Window::SetTitle to CSFML and SFML.Net

This commit is contained in:
Laurent Gomila 2011-04-10 09:48:33 +02:00
parent b8ddbb6dcc
commit 4892866905
12 changed files with 64 additions and 0 deletions

View file

@ -240,6 +240,17 @@ namespace SFML
sfWindow_SetSize(This, width, height);
}
////////////////////////////////////////////////////////////
/// <summary>
/// Change the title of the window
/// </summary>
/// <param name="title">New title</param>
////////////////////////////////////////////////////////////
public virtual void SetTitle(string title)
{
sfWindow_SetTitle(This, title);
}
////////////////////////////////////////////////////////////
/// <summary>
/// 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);