Re: [go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-27 Thread Elias Naur
On Mon, Feb 24, 2020 at 9:36 AM Elias Naur  wrote:

>> For example, with Gio, I had to download a set of .DLL files and extract 
>> them into the root folder of my Go build, as documented on the Gio website.
>
>
> I happen to be working on a direct3d port of Gio which I hope to have ready 
> within this week, in which case the 3 opengl DLLs are no longer needed. You 
> can follow the work at https://git.sr.ht/~eliasnaur/gio/log/d3d11.
>

Direct3D is now done, which should eliminate the dependency on OpenGL
emulation DLLs.

-- elias

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAMAFT9XJKG3Oq0CCPHQVx6HGYnB%3D6Y5%2BdtrJWQyKRiFcRq-gSg%40mail.gmail.com.


Re: [go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-26 Thread Elias Naur
On Tue Feb 25, 2020 at 3:21 PM,  wrote:
> I worked it out, will update the programs later. It was not that the
> events
> were missing - once I enabled the good old Printf debugger, I saw that
> the
> events are flowing fine. The issue is that on Linux, every Move Mouse
> event
> reflected what buttons were pressed the entire time they were pressed.
> On
> Windows, only the Press Mouse event included a value for the Button that
> was pressed (i.e. pointer.ButtonLeft).
>

That's a bug, now fixed with


https://git.sr.ht/~eliasnaur/gio/commit/e3f8d1a1afb27213f5e4c2e0b161e76d69778ff3

Thanks for finding it!

-- elias

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/C0W07JWK2MY0.OTB79OIYI1FI%40testmac.


[go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-25 Thread howardcshaw
I worked it out, will update the programs later. It was not that the events 
were missing - once I enabled the good old Printf debugger, I saw that the 
events are flowing fine. The issue is that on Linux, every Move Mouse event 
reflected what buttons were pressed the entire time they were pressed. On 
Windows, only the Press Mouse event included a value for the Button that 
was pressed (i.e. pointer.ButtonLeft).  

mouse pos({Move Mouse 0 Shared 863h55m54.282s  false {637 369} {0 0} }) 
false
mouse pos({Press Mouse 0 Shared 863h55m54.425s ButtonLeft false {637 369} 
{0 0} }) true
mouse down left({Press Mouse 0 Shared 863h55m54.425s ButtonLeft false {637 
369} {0 0} })
mouse pos({Move Mouse 0 Shared 863h55m54.515s  false {638 369} {0 0} }) 
false
mouse pos({Move Mouse 0 Shared 863h55m54.535s  false {639 369} {0 0} }) 
false
mouse pos({Move Mouse 0 Shared 863h55m54.555s  false {642 369} {0 0} }) 
false
Dragging.
mouse pos({Move Mouse 0 Shared 863h55m54.572s  false {645 370} {0 0} }) 
false
mouse pos({Move Mouse 0 Shared 863h55m54.59s  false {648 370} {0 0} }) false

My code was detecting the return to 0 as the mouse button no longer being 
pressed.

Howard

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cd2a324e-e8e9-4c32-b5ab-e96ff6842fff%40googlegroups.com.


[go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-24 Thread Elias Naur


On Saturday, February 22, 2020 at 5:00:33 AM UTC+1, howar...@gmail.com 
wrote:
>
>
> I have updated it to support go modules, and added support for the 
> recently appearing Gio and Fyne GUI toolkits. They are both operational, if 
> a bit oddly. I tested Gio on Windows yesterday when I had a chance, and it 
> did build, but for some reason, did not respond to mouse movements, only 
> mouse scrolling, and I have not resolved that issue yet.
>
>
I would love to figure out what causes the missing mouse events on Windows. 
To not derail this thread, please do file an issue on gioui.org/issue/, 
join #gioui on the gophers.slack.com channel, or write me directly at 
m...@eliasnaur.com.

FWIW, I ran the renderview/cmd/cmdgui program on Windows 10 which showed me 
a bunch of editable fields, all clickable.
 

> So now, in addition to serving as a quick and dirty tool for exercising 
> your image generating or algorithm visualizing code, the code-base itself 
> serves as a comparative implementation of the same task in Shiny,  go-gtk, 
> GoTK3, Gio, and Fyne.
>
>
Nice.
 

> As far as Windows goes, the Shiny backend works fine to draw a pannable, 
> zoomable image with Renderview on Windows, and as far as I am aware, 
> requires no further dependencies. But there is still not an editable text 
> widget in Shiny, and while I was able to find a third-party multi-line text 
> editor, I was not able to find a single-line one suitable for using as a 
> generic data entry field. 
>

Have you seen https://github.com/aarzilli/nucular? I believe it has a Shiny 
backend.

For example, with Gio, I had to download a set of .DLL files and extract 
> them into the root folder of my Go build, as documented on the Gio website.
>

I happen to be working on a direct3d port of Gio which I hope to have ready 
within this week, in which case the 3 opengl DLLs are no longer needed. You 
can follow the work at https://git.sr.ht/~eliasnaur/gio/log/d3d11.

-- elias

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/3b77319e-780e-4496-b691-bd77e08b8c1d%40googlegroups.com.


[go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-22 Thread howardcshaw
As far as Windows goes, the Shiny backend works fine to draw a pannable, 
zoomable image with Renderview on Windows, and as far as I am aware, 
requires no further dependencies. But there is still not an editable text 
widget in Shiny, and while I was able to find a third-party multi-line text 
editor, I was not able to find a single-line one suitable for using as a 
generic data entry field. 

So currently only the other four backends support editable widgets on 
Windows. They all require additional work on Windows to operate, however. 
For example, with Gio, I had to download a set of .DLL files and extract 
them into the root folder of my Go build, as documented on the Gio website.

Meanwhile Fyne appears to require installation of a C compiler on Windows, 
go-gtk and gotk3 need a working GTK environment, etc.

Howard

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/ecd3257a-7dba-491b-a072-0164fe98648f%40googlegroups.com.


[go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-22 Thread Kt Ye
For Windows, this will draw an image on screen: 
https://play.golang.org/p/-KDo9pHXZCj without external dependencies.
It's non-interactive, but nice to just see an image.

It comes in two versions: dev=SCREEN draws over the primary monitor, over 
everything else without borders. The image disappears when others redraw.
The other option is dev=CONSOLE which draws over the active console (the 
cmd.exe window) in a command line session. It even scrolls when new text 
appears.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/ccde3f0c-679e-4992-b334-6413dcdc1766%40googlegroups.com.