Skip to content

Commit

Permalink
Renamed SetFocus() to Focus()
Browse files Browse the repository at this point in the history
  • Loading branch information
mayatskiy authored and Arugin committed Apr 25, 2024
1 parent 1a4eea2 commit bf55028
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Windowing/Silk.NET.Windowing.Common/Interfaces/IView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public interface IView : IViewProperties, IGLContextSource, IVkSurfaceSource, ID
/// <summary>
/// Sets focus to current window.
/// </summary>
void SetFocus();
void Focus();

/// <summary>
/// Close this window.
Expand Down Expand Up @@ -151,4 +151,4 @@ public interface IView : IViewProperties, IGLContextSource, IVkSurfaceSource, ID
/// <param name="onFrame">The callback to run each frame.</param>
void Run(Action onFrame);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected ViewImplementationBase(ViewOptions opts)
public abstract void ContinueEvents();
public abstract Vector2D<int> PointToClient(Vector2D<int> point);
public abstract Vector2D<int> PointToScreen(Vector2D<int> point);
public abstract void SetFocus();
public abstract void Focus();
public abstract void Close();
protected abstract void RegisterCallbacks();
protected abstract void UnregisterCallbacks();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Silk.NET.Windowing.IView.Render -> System.Action<double>?
Silk.NET.Windowing.IView.Reset() -> void
Silk.NET.Windowing.IView.Resize -> System.Action<Silk.NET.Maths.Vector2D<int>>?
Silk.NET.Windowing.IView.Run(System.Action! onFrame) -> void
Silk.NET.Windowing.IView.SetFocus() -> void
Silk.NET.Windowing.IView.Focus() -> void
Silk.NET.Windowing.IView.Time.get -> double
Silk.NET.Windowing.IView.Update -> System.Action<double>?
Silk.NET.Windowing.IViewProperties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Silk.NET.Windowing.IView.Render -> System.Action<double>?
Silk.NET.Windowing.IView.Reset() -> void
Silk.NET.Windowing.IView.Resize -> System.Action<Silk.NET.Maths.Vector2D<int>>?
Silk.NET.Windowing.IView.Run(System.Action! onFrame) -> void
Silk.NET.Windowing.IView.SetFocus() -> void
Silk.NET.Windowing.IView.Focus() -> void
Silk.NET.Windowing.IView.Time.get -> double
Silk.NET.Windowing.IView.Update -> System.Action<double>?
Silk.NET.Windowing.IViewProperties
Expand Down
2 changes: 1 addition & 1 deletion src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ public bool TryGetProcAddress(string proc, out nint addr, int? slot = default)
return ret;
}

public override void SetFocus()
public override void Focus()
{
_glfw.FocusWindow(_glfwWindow);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Windowing/Silk.NET.Windowing.Sdl/SdlView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ internal void RemoveEvent(int index)
Reset();
}

public override void SetFocus()
public override void Focus()
{
Sdl.RaiseWindow(SdlWindow);
}
Expand Down

0 comments on commit bf55028

Please sign in to comment.