Added Window::SetTitle to CSFML and SFML.Net
This commit is contained in:
parent
b8ddbb6dcc
commit
4892866905
12 changed files with 64 additions and 0 deletions
|
@ -205,6 +205,17 @@ namespace SFML
|
|||
sfRenderWindow_SetSize(This, width, height);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Change the title of the window
|
||||
/// </summary>
|
||||
/// <param name="title">New title</param>
|
||||
////////////////////////////////////////////////////////////
|
||||
public override void SetTitle(string title)
|
||||
{
|
||||
sfRenderWindow_SetTitle(This, title);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// 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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue