Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yamnikov-oleg/wingo
Go library for coding gui on windows
https://github.com/yamnikov-oleg/wingo
Last synced: about 5 hours ago
JSON representation
Go library for coding gui on windows
- Host: GitHub
- URL: https://github.com/yamnikov-oleg/wingo
- Owner: yamnikov-oleg
- Created: 2015-09-23T16:46:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T15:13:53.000Z (about 9 years ago)
- Last Synced: 2024-06-20T10:42:57.408Z (5 months ago)
- Language: Go
- Size: 160 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wingo
Simple wrapper for w32 package for personal use.## Lil bit o' docs
To create a new window call the function:
```func NewWindow(resizable, minimizable bool) *Window```
Methods of `Window` are defined in `window.go` file.Window menu is created with the functions:
```func NewMenu() *Menu```
```func (m *Menu) AppendItemText(t string) *MenuItem```
```func (m *Menu) AppendPopup(t string) *Menu```
Methods of `Menu` and `MenuItem` are defined in `menu.go` file.Four available types of controls are created with functions:
```func (w *Window) NewLabel() *Label```
```func (w *Window) NewButton() *Button```
```func (w *Window) NewTextEdit() *TextEdit```
```func (w *Window) NewListBox() *ListBox```
Methods of the control structures are defined in `controls.go` file.After the window is set up, call the `wingo.Start()` to begin event loop.
The application is haltable anytime with a call to `wingo.Exit()`
These two functions are defined in `app.go`.## Build tools
The folder `/build-tools' contains three files, inserted for fast building of an application with window resources.
* `app.manifest` - sample manifest file.
* `resources.rc` - sample resources file, containing a reference to the manifest.
* `build.bat` - sample build script, which compiles resources file with `windres` into an object, then compiles the main.go file and links program with resources.