Skip to content

Commit 8bb3ef2

Browse files
committed
Support SDL_RaiseWindow
1 parent 79e193e commit 8bb3ef2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/SDL/Window.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ public final class SDLWindow {
7373
return (Int(width), Int(height))
7474
}
7575

76+
/// Raise a window above other windows and set the input focus
77+
public func raise() {
78+
79+
SDL_RaiseWindow(internalPointer)
80+
}
81+
7682
/// The output size in pixels of a rendering context.
7783
public var rendererSize: (width: Int, height: Int)? {
7884

0 commit comments

Comments
 (0)