Re: Super Simple GUI Library

2018-01-02 Thread Ivan Trombley via Digitalmars-d-announce

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.


Re: Super Simple GUI Library

2018-01-01 Thread Martin Nowak via Digitalmars-d-announce

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.


Re: Super Simple GUI Library

2018-01-01 Thread Ivan Trombley via Digitalmars-d-announce

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.





Re: Super Simple GUI Library

2018-01-01 Thread Anton Pastukhov via Digitalmars-d-announce

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.