Skip to content

Commit d02c68d

Browse files
Merge pull request #54 from arnerjohn/master
Adding SetTitle Method in Window bindings
2 parents 99246f6 + 5860bff commit d02c68d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/bindings/window/window.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,17 @@ func (w *Window) Show() {
200200
w.CallWhenReady(&command)
201201
}
202202

203+
func (w *Window) SetTitle(title string) {
204+
command := Command{
205+
Method: "set_title",
206+
Args: CommandArguments{
207+
Title: title,
208+
},
209+
}
210+
211+
w.CallWhenDisplayed(&command)
212+
}
213+
203214
func (w *Window) Maximize() {
204215
command := Command{
205216
Method: "maximize",

0 commit comments

Comments
 (0)