Ideas for a brand new widget toolkit
Adam D. Ruppe
destructionator at gmail.com
Fri Aug 16 06:51:17 PDT 2013
On Friday, 16 August 2013 at 07:19:09 UTC, Marek Janukowicz wrote:
> If we are discussing X's shortcomings: why don't we use
> something like http://wayland.freedesktop.org/
I don't have it installed on my computer! I do have X though.
BTW, my minigui.d (previously crappygui.d) is moving along at a
decent pace. Now has menus too, yay! I decided to use native
widgets on Windows after all, when applicable. It looks better
and automatically handles focus, hotkeys, etc. It still uses a
simple automatic layout function though, so you just add children
to the window and it figures out the sizes.
On X though, I'm still doing it all myself, keeping it small (and
fast on remote X! lol). So far, the minigui.d is 1100 lines long.
I think I can do everything I want to do in between 2000 and 3000
lines. The test program on windows is 370 KB, no outside
dependencies built with dmd, and the only modules it needs are my
simpledisplay.d and color.d, though I might have it depend on
eventloop later too. (It is about the same size using custom
widgets too; calls to Rectangle() and LineTo(), via
simpledisplay.d's ScreenPainter, aren't significantly bigger than
calls to CreateWindow()).
Anyway though, I'll probably post this to my github at some point
over the weekend. There isn't much to it.... but IMO that's the
best feature. The other D gui libs I've tried are all just too
complex for me.
More information about the Digitalmars-d
mailing list