miketheprogrammer / go-thrust

Cross Platform UI Kit powered by Blink/V8/Chromium Content Lib
MIT License
445 stars 34 forks source link

Closing windows? #9

Closed taf2 closed 9 years ago

taf2 commented 9 years ago

I don't see a method to close or quit the application...

miketheprogrammer commented 9 years ago

@taf2 There is no api currently to my knowledge in Thrust to close the window. https://github.com/breach/thrust/blob/master/docs/api/window.md @spolu Is this possible, can we close windows programmatically.

@taf2, Currently a few committer are looking into improving the overall go-thrust code, as well we will be adding a quit interface which will allow you to respond to events and signal to the Go Application to quit all of its goroutines and the actual application itself.

miketheprogrammer commented 9 years ago

see, #11

spolu commented 9 years ago

@miketheprogrammer there's a close method on the window object: https://github.com/breach/thrust/blob/master/src/api/thrust_window_binding.cc#L152

miketheprogrammer commented 9 years ago

Ok, well get this done. We plan to 1. expose a way to add handlers. 2. finish up the window api methods

tehbilly commented 9 years ago

This will be handled in #11, cleaning up to prevent duplicate issues.