Add RequestWindowAttention API.

This commit is contained in:
Pieter-Jan Briers
2020-08-16 23:21:07 +02:00
parent 559d890128
commit c72ea7194e
3 changed files with 16 additions and 0 deletions
@@ -468,6 +468,11 @@ namespace Robust.Client.Graphics.Clyde
GLFW.SetWindowTitle(_glfwWindow, title);
}
public void RequestWindowAttention()
{
GLFW.RequestWindowAttention(_glfwWindow);
}
public void ProcessInput(FrameEventArgs frameEventArgs)
{
GLFW.PollEvents();
@@ -58,6 +58,11 @@ namespace Robust.Client.Graphics.Clyde
// Nada.
}
public void RequestWindowAttention()
{
// Nada.
}
public override bool Initialize()
{
return true;
@@ -14,6 +14,12 @@ namespace Robust.Client.Interfaces.Graphics
Vector2i ScreenSize { get; }
void SetWindowTitle(string title);
/// <summary>
/// This is the magic method to make the game window ping you in the task bar.
/// </summary>
void RequestWindowAttention();
event Action<WindowResizedEventArgs> OnWindowResized;
Texture LoadTextureFromPNGStream(Stream stream, string? name = null,