www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Super Simple GUI Library

reply Ivan Trombley <itrombley dot-borg.org> writes:
I started a new GUI library project (for various reasons) base on 
SDL2. It's pretty basic at the moment but I created a github 
repository so that I can hopefully get some feedback on it. What 
is currently present:

- App: an application struct housing the main loop.
- Handle: a RAII struct for conveneint handling of SDL pointers.
- Area: an abstract rectangular base class for UI items.
- BlankArea: a non-visible area that can have children.
- RenderArea: an area with children and a render delegate for 
custom drawing.
- VisibleArea: a basic visible area.
- TextArea: an area for displaying a single line of text.

The github repository is here:
https://github.com/Barugon/ssgl

Please let me know what you think.
Dec 31
parent reply Anton Pastukhov <pastuhov85 gmail.com> writes:
On Monday, 1 January 2018 at 01:57:13 UTC, Ivan Trombley wrote:
 I started a new GUI library project (for various reasons) base 
 on SDL2. It's pretty basic at the moment but I created a github 
 repository so that I can hopefully get some feedback on it. 
 What is currently present:

 - App: an application struct housing the main loop.
 - Handle: a RAII struct for conveneint handling of SDL pointers.
 - Area: an abstract rectangular base class for UI items.
 - BlankArea: a non-visible area that can have children.
 - RenderArea: an area with children and a render delegate for 
 custom drawing.
 - VisibleArea: a basic visible area.
 - TextArea: an area for displaying a single line of text.

 The github repository is here:
 https://github.com/Barugon/ssgl

 Please let me know what you think.
Hi, it would be nice to see some more info. Screenshots, docs etc. Right now there is just another github repo without single example.
Jan 01
parent reply Ivan Trombley <itrombley dot-borg.org> writes:
On Monday, 1 January 2018 at 23:38:45 UTC, Anton Pastukhov wrote:
 Hi, it would be nice to see some more info. Screenshots, docs 
 etc. Right now there is just another github repo without single 
 example.
For now, app.d has an example in the doc comments. I'll be adding more examples to the doc comments.
Jan 01
parent reply Martin Nowak <code dawg.eu> writes:
On Tuesday, 2 January 2018 at 02:06:00 UTC, Ivan Trombley wrote:
 For now, app.d has an example in the doc comments. I'll be 
 adding more examples to the doc comments.
Generating documentation is as simple as `dub build -b ddox` btw. See https://github.com/MartinNowak/bloom for an example on how to publish them to gh-pages during CI. Note that the default ddox filter arguments exclude undocumented modules. So you either need to add ddoc comments on the module declarations ```d /// app module module ssgl.app; ``` or change `"-ddoxFilterArgs"` to sth. non-default https://github.com/dlang/dub/blob/bf095d8018d34ec0bf3d7459f722b67d7ddb804f/source/dub/dub.d#L1142.
Jan 01
parent Ivan Trombley <itrombley dot-borg.org> writes:
On Tuesday, 2 January 2018 at 02:12:24 UTC, Martin Nowak wrote:
 On Tuesday, 2 January 2018 at 02:06:00 UTC, Ivan Trombley wrote:
 For now, app.d has an example in the doc comments. I'll be 
 adding more examples to the doc comments.
Generating documentation is as simple as `dub build -b ddox` btw. See https://github.com/MartinNowak/bloom for an example on how to publish them to gh-pages during CI. Note that the default ddox filter arguments exclude undocumented modules. So you either need to add ddoc comments on the module declarations ```d /// app module module ssgl.app; ``` or change `"-ddoxFilterArgs"` to sth. non-default https://github.com/dlang/dub/blob/bf095d8018d34ec0bf3d7459f722b67d7ddb804f/source/dub/dub.d#L1142.
Excellent. Thanks for the info.
Jan 02