The State of the GUI

drug drug2004 at bk.ru
Wed Oct 24 12:43:52 UTC 2018


24.10.2018 15:30, Guillaume Piolat пишет:
> Honestly UI toolkits are indeed coupled, perhaps unnecessarily, and I 
> think we could strive to find something much more "Design by 
> Introspection":
> 
> 
> color abstraction (eg: `std.experimental.color`) <= image abstraction 
> (eg: `ae.utils.graphics`)
> image abstraction <= image decoder (eg: `imageformats`)
> windowing (eg: dplug.window or something stealing it and making it 
> SDL-like) <= Canvas renderer (eg: `printed`)
> Canvas renderer + open-methods/ECS <= widget library (for a UI you need 
> widgets that don't depend to the rendering method, and that's an 
> open-method problem)
> layout-system (something CSS-like) <= widget-library
very interesting, I thought about it but without details like you

> 
> Every one of these packages can work without the others, and essentially 
> is not so opinionated.
> 
> (Anything based on OpenGL would be hopeless I think. But anything 
> GPU-based and not OpenGL need some kind of shader compiler which is also 
> too much work. So I think for the purpose of practicality it can be left 
> as an exercise)
> 
Why opengl based would be hopeless? Could you elaborate?


More information about the Digitalmars-d mailing list