Skip to content

Commit 5860bff

Browse files
committed
Adding SetTitle Method in Window binding
There is a specification for a `set_title` Method in the Thrust API docs [github.com/breach/thrust/blob/master/docs/api/window.md](https://github.com/breach/thrust/blob/master/docs/api/window.md).
1 parent 99246f6 commit 5860bff

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)