We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f5b265 + a1c75e2 commit c57075bCopy full SHA for c57075b
Sources/SDL/Window.swift
@@ -110,6 +110,21 @@ public final class SDLWindow {
110
return SDL_SetWindowDisplayMode(internalPointer, nil) >= 0
111
}
112
113
+
114
+ /// Set the title of a window
115
+ public var title: String {
116
117
+ get {
118
119
+ return String(cString: SDL_GetWindowTitle(internalPointer))
120
121
+ }
122
+ set {
123
124
+ SDL_SetWindowTitle(internalPointer, newValue)
125
126
127
128
129
130
// MARK: - Supporting Types
0 commit comments