Thread overview
Super Simple GUI Library
January 01
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.

January 01
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.
January 02
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.


January 02
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.
January 02
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.