jnjackins / graphics Goto Github PK
View Code? Open in Web Editor NEWGo packages for creating graphical programs
License: MIT License
Go packages for creating graphical programs
License: MIT License
A lot of good work went into this, thank you Jeremy.
Trying to compile the editor or just run one of the examples I get the same error:
go install github.com/graphics/cmd/edit
github.com/graphics/vendor/golang.org/x/exp/shiny/driver/x11driver/window.go:187: unknown field 'X' in struct literal of type mouse.Event
github.com/graphics/vendor/golang.org/x/exp/shiny/driver/x11driver/window.go:188: unknown field 'Y' in struct literal of type mouse.Event
Any pointers?
Cheers
Have you tried running this on mobile (android, ios) yet ?
I am keen to try a few things out with a database behind it that does sync.
This db:
https://goshawkdb.io/index.html
Its a new take on databases that can do sync for offline first with full transactional integrity.
Here is a nice video on it.
https://www.youtube.com/watch?v=PPZhksQdNBc
Jump to 20 minutes to get to the good stuff...
I want to try this out as i am very interested in shiny.
the main.go in the cmd folder fails.
the main.go in examples also fails.
both require certain command line args.
any chance you could update the readme to explain how to run this ?
i just want to play around with this as it looks very nice.
trying out your editor
i cant get a build because of the vendored shiny drivers being too old.
https://github.com/golang/exp/blob/master/shiny/driver/gldriver/gldriver.go
go version
go version go1.7.4 darwin/amd64
x-MacBook-Pro:edit apple$ go env
GOARCH="amd64"
GOBIN="/Users/apple/workspace/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/workspace/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/go-build909137846=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
x-MacBook-Pro:edit apple$ go run main.go
# github.com/jnjackins/graphics/vendor/golang.org/x/exp/shiny/driver/gldriver
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:109:23: warning: 'NSScrollWheel' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:82:26: note: 'NSScrollWheel' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:165:30: warning: 'NSKeyDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:74:26: note: 'NSKeyDown' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:243:15: warning: 'NSTitledWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:953:32: note: 'NSTitledWindowMask' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:246:23: warning: 'NSResizableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:956:32: note: 'NSResizableWindowMask' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:247:23: warning: 'NSMiniaturizableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:955:32: note: 'NSMiniaturizableWindowMask' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:248:23: warning: 'NSClosableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:954:32: note: 'NSClosableWindowMask' has been explicitly marked deprecated here
# command-line-arguments
./main.go:27: undefined: widget
./main.go:29: undefined: widget
./main.go:63: undefined: loadFont
./main.go:75: undefined: updateFont
./main.go:76: undefined: fontFace in fontFace.Metrics
./main.go:81: undefined: newWidget
./main.go:81: undefined: fontFace
./main.go:85: undefined: loadMain
./main.go:89: undefined: newWidget
./main.go:89: undefined: fontFace
./main.go:89: too many errors
Using cmd/buf, if one sweeps down past the edge of the window and then quickly back up, some of the text the bottom of the window which was deselected on the upsweep will not be redrawn, leaving an undesired selection rectangle at the bottom edge of the window.
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.