Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to a GIO client #47

Open
gedw99 opened this issue Jul 29, 2021 · 4 comments · May be fixed by #51
Open

Change to a GIO client #47

gedw99 opened this issue Jul 29, 2021 · 4 comments · May be fixed by #51
Assignees
Labels
enhancement New feature or request

Comments

@gedw99
Copy link

gedw99 commented Jul 29, 2021

Is your feature request related to a problem? Please describe.

The nature of maintaining a html5 canvas can be easily done using gio because of the nature of how gio works.
The advantage is that then Clients work in Browsers, Desktop and Mobile from the exact same code base.

Describe the solution you'd like

Write a GIO based client for Occamy.

Describe alternatives you've considered

https://github.com/deluan/bring also uses a canvas, but is not as performant or portable as using gio.

Additional context

Making a client with GIO that can quickly swap in images and also sense the mouse, touch and key presses is easy with gio because its inherently synergistic with how GIO is designed.

Here are the links. I would be happy to collaborate on this. Been using gio for a while now and its really getting better and better.

https://gioui.org/

Code:
https://github.com/gioui/gio
OR
https://git.sr.ht/~eliasnaur/gio

GIO works using only a GPU accelerated canvas and is 100% golang.
You can compile the same code for web ( wasm), desktop or Mobile.

Examples:
https://github.com/gioui/gio-example/

Extension components:
https://github.com/gioui/gio-x


Ironically, GIo makes it easy to share an App over VNC also. For example see this example of a headless rendering example.
https://github.com/gioui/gio-example/tree/main/opengl

@gedw99
Copy link
Author

gedw99 commented Jul 29, 2021

also the youtube community meetup videos are a good resource

https://www.youtube.com/channel/UCzuKUnKK5gAFJKNyA1imIHw

@changkun
Copy link
Owner

changkun commented Jul 29, 2021

That's also a good suggestion. Using Gio would be great too (as a Gio user)

@gedw99
Copy link
Author

gedw99 commented Jul 29, 2021

Hey @changkun

I am really amazed how good GIo has become now.

Its a joy to develop on and debug on. On Desktop you just go run . and your debugging the golang client and your golang server.

Good example btw:

https://github.com/gioverse/chat

changkun added a commit that referenced this issue Dec 7, 2021
changkun added a commit that referenced this issue Dec 7, 2021
changkun added a commit that referenced this issue Dec 7, 2021
changkun added a commit that referenced this issue Dec 7, 2021
changkun added a commit that referenced this issue Dec 7, 2021
changkun added a commit that referenced this issue Dec 16, 2021
@changkun changkun linked a pull request Dec 16, 2021 that will close this issue
@changkun changkun added enhancement New feature or request and removed NeedsInvestigation labels Dec 16, 2021
@gedw99
Copy link
Author

gedw99 commented Jan 20, 2022

Regarding issue and the need for hotkeys

your hotkey is one way.

https://github.com/jkvatne/gio-v also has all focus between fields working to esc and tab. I dont knwo if it can do custom key combinations. Hotkeys seems to be key combinations ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants