allendang / gimu Goto Github PK
View Code? Open in Web Editor NEWCross-platform GUI for go is never this easy and clean.
License: MIT License
Cross-platform GUI for go is never this easy and clean.
License: MIT License
issue canceled
unicode support
error msg:
Build github.com/AllenDang/gimu: cannot load github.com/AllenDang/gimu/nk: cannot find module providing package github.com/AllenDang/gimu/nk
sys env:
os: win7 x64
go version: go1.13.1 windows/386
gcc: 7.3.0 (i6860-posix-dwarf-rev0, Build by MinGW-W64 project)
Hi,
It looks like it runs at 30 fps regardless of what's going on, but if it used WaitEvents it could allow saving CPU cycles and battery. PostEmptyEvent could be used to break out of the WaitEvents for exit or updates.
This makes UI updates somewhat more difficult, requiring an explicit update call to invalidate the current display and force update, but this is fairly common in GUIs. Or at least it seems like a tradeoff the application might want to make.
The simple demo example in the https://github.com/AllenDang/gimu/blob/master/README.md has the following compile error
# command-line-arguments
./main.go:14:25: cannot use width (type int32) as type int in argument to image.Rect
./main.go:14:25: cannot use height (type int32) as type int in argument to image.Rect
./main.go:16:10: cannot use bounds (type image.Rectangle) as type nk.Rect in argument to w.Window
Changing
bounds := image.Rect(0, 0, width, height)
to
bounds := nk.NkRecti(0, 0, width, height)
Seems to solve the issue, but is this the right fix ?
Awesome Library BTW
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.