alexflint / gallium

Build desktop applications in Go and HTML.
MIT License
3.67k stars 135 forks source link

Add interface for getting native window handle #35

Closed alexflint closed 8 years ago

alexflint commented 8 years ago

This pr makes it possible to get native window handles from gallium, and manipulate them in cgo code. There is an example that shows how to change the alpha value of a window by via [NSWindow setAlphaValue:].

The reason to expose the native handles at all is that each platform's windowing API is very deep, and while gallium will provide a platform-independent abstraction layer over the most common use case, we will never cover every possible thing that you can do via native APIs.

Depends on #34