News for hackers. Stuff that matters.
Re:Photon Micro GUI by FraKtus on Monday July 08, 2019 @01:38PM (#20384856)
From the author "Photon has its own HTML5 inspired canvas drawing engine using Cairo underneath".

That means it should render nicely at any resolution, the author says, "resolution independent and allows for HDPI displays".

But using Cairo means it should not have a good performance at high resolutions. I have yet to find a fork of Cairo GPU accelerated that supports all the API. So it may fit the bill if you are coding a simple interface, but it will be too slow to render at 60FPS and at high resolution.

What comes closest for me is Dear ImGui, but I never saw an interface with those nicely rendered buttons in real-time done with Dear ImGui.

Re:Photon Micro GUI by gigatexal on Monday July 08, 2019 @03:32PM (#20385956)
I knew the original dev of cairo. It’s amazing to see how it is being used in many different projects: a testament to his work all those years ago.

This GUI looks great, too. It’d be interesting to have python bindings to it.

Re:Photon Micro GUI by djowel64 on Tuesday July 09, 2019 @03:51AM (#20389757)
Hi I'm Joel, the the author of Photon. The "canvas" part is encapsulated and can re-target another vector engine. I'm considering Skia, but it was too unstable when I first tried. Maybe I'll try again.
Re:Photon Micro GUI by srikz on Monday July 08, 2019 @02:07PM (#20385187)
I'm curious if you have come across (and recommend) any framework which lie in between Photon (Cairo) and Dear ImGui.

I'm trying to follow all thr efforts in native desktop GUI tools and am currently using Dear ImGui for something which will only be used internally.

Re:Photon Micro GUI by FraKtus on Monday July 08, 2019 @04:56PM (#20386677)
For me, nothing is as nice looking as Photon (resolution independent) and GPU friendly to allow 60 FPS cross-platform GUI.

It looks like you still need to roll your own.

I am currently working with Dear ImGui and found a pipeline where I put SVG icons in a true type front and can then render them resolution independent with Dear ImGui.

Re:Photon Micro GUI by elcritch on Monday July 08, 2019 @08:11PM (#20387905)
You might try Scenic. It’s more embedded oriented but does run on desktops using OpenGL. Also it’s new so the component library is pretty small still.
Re:Photon Micro GUI by srikz on Thursday July 11, 2019 @07:04AM (#20410628)
Yes, have been excitedly following Scenic since Boyd Multerer's talk about his experiments a couple of years back. Haven't tried it yet as I somehow kept putting off wrapping my head around Elixir and FP
Re:Photon Micro GUI by pier25 on Monday July 08, 2019 @02:27PM (#20385352)
Anyone using Skia?
Re:Photon Micro GUI by badsectoracula on Monday July 08, 2019 @02:56PM (#20385642)
Doesn't Skia have a very fragile API? I remember reading that they were breaking their API/ABI all the time. If nothing else, Cairo's API is always backwards compatible.
Re:Photon Micro GUI by pjmlp on Tuesday July 09, 2019 @02:07AM (#20389353)
It is at very least a pain to set up, specially on Windows.
Re:Photon Micro GUI by joezydeco on Monday July 08, 2019 @03:40PM (#20386036)
I’ve always been curious why Google didn’t spin out Skia. Maybe because it lacks the UI primitives you really need to make it useful?
Re:Photon Micro GUI by pier25 on Monday July 08, 2019 @05:18PM (#20386857)
What do you mean with "spin out"?

(sorry English is not my first language)

Re:Photon Micro GUI by joezydeco on Monday July 08, 2019 @05:52PM (#20387133)
Take Skia and promote it as a toolkit independent from Android, Chrome, etc.
Re:Photon Micro GUI by pjmlp on Tuesday July 09, 2019 @01:23AM (#20389211)
It would already help they had binaries available, or not expect externals to replicate their build infrastructure.