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.
1 parent 79e193e commit a1c75e2Copy full SHA for a1c75e2
Sources/SDL/Window.swift
@@ -104,6 +104,21 @@ public final class SDLWindow {
104
return SDL_SetWindowDisplayMode(internalPointer, nil) >= 0
105
}
106
107
+
108
+ /// Set the title of a window
109
+ public var title: String {
110
111
+ get {
112
113
+ return String(cString: SDL_GetWindowTitle(internalPointer))
114
115
+ }
116
+ set {
117
118
+ SDL_SetWindowTitle(internalPointer, newValue)
119
120
121
122
123
124
// MARK: - Supporting Types
0 commit comments