--
You received this message because you are subscribed to the Google Groups "go-uik" group.
To view this discussion on the web visit https://groups.google.com/d/msg/go-uik/-/pdpo3Xg-8wwJ.
To post to this group, send email to go-...@googlegroups.com.
To unsubscribe from this group, send email to go-uik+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/go-uik?hl=en.
I dont personally think it would be completely appropriate to ditch draw2d/xgb completely but perhaps provide an interface for drawing that could make use of different backends.
And then I would have to agree that in this phase of things, it would be far more productive to focus on the opengl backend.This might initially limit where go.uik could run, limited to graphic accelerated environments, but would greatly simplify the drawing process so a more concentrated effort could be made on providing a full set of features.
When the other packages come around, that just opens up more areas to run go.uik, but the focus really needs to be on uik, not keeping up with ever-changing packages.
I only vaguely keep up with the opengl stuff, and only partly familiar with go's threading model, but I do believe everything has to be locked to a single thread which works against the goals of go.uik. Here I'm referencing use of `github.com/chsc/gogl` package where one needs to issue a `runtime.LockOSThread()` if using goroutines.
In light of that issue, I still think it's worthwhile to pursue the opengl backend as its only a matter of time before go.uiks goals of a non blocking UI are eventually met.
- make the killer layout engine.
I'd really like something like CSS, except not terrible and confusing. Something where you can give it a document configuration file, and a set of named components, and it will figure out where to put them. I've already set up an interface for this that should make it easy to integrate into go.uik.
I really enjoy writing DSLs and wanted to set something up to easily create layouts and styles. This might not be totally appropriate as the official go.uik way as it would be more suitable to make use of xml/json for programmer-familiarity and parsing with the encoding package would mean more time making a great ui toolkit for others involved.
First and foremost in my mind though, once there's a stable drawing backend implemented, I'd probably be hacking layouts, widgets, styling, animations, etc. Then I'd find myself wanting to declare a documents for layouts and bringing it all together for a text editor.
I'm 90% of the way to insisting on json. I'm 100% of the way to insisting that it be something that can be dumped easily into a go struct. Whatever layouting language is used, there should be no logic in there - just layout information. Logic needs to be written in go.
I really want to encourage you to think about how a nice document-based layout engine would work. Feel free to start a new thread for kicking around ideas.
--
Visit this group at http://groups.google.com/group/go-uik?hl=en.For more options, visit https://groups.google.com/groups/opt_out.