Re: DQt: Qt bindings using extern(C++)

2021-12-06 Thread MGW via Digitalmars-d-announce
Can you explain in more detail some points that are difficult for 
me:


widgets/label.d file. I see a C++ mapping of class QLabelPrivate 
to structure D

extern(C++, class) struct QLabelPrivate;
this makes sense.

I see below an implementation of a class D named QLabel
class /+ Q_WIDGETS_EXPORT +/ QLabel : QFrame
in which I see calls to methods of the QLabel class.

I don't understand at what stage (where exactly) the mapping
QLabelPrivate structure methods onto QLabel methods.

I expected to see something like:
QLabelPrivate dd = QLabelPrivate(...);
and then
dd.MetodsQLabel(...)

Can you explain this place in more detail.




Re: DQt: Qt bindings using extern(C++)

2021-12-06 Thread zjh via Digitalmars-d-announce

On Monday, 6 December 2021 at 16:14:03 UTC, Tim wrote:


I wrote a converter, but also had to make many manual changes.


It would be interesting to have a `C++/rust` general-purpose 
converter.





Re: DQt: Qt bindings using extern(C++)

2021-12-06 Thread MGW via Digitalmars-d-announce

I wrote a converter, but also had to make many manual changes.


I realized that without a converter you can't do this kind of 
volume ... I'm thinking about a converter too, I keep thinking 
and thinking 


Please - more comments in the examples, a lot of non-obvious 
constructions. The library is great, I really liked it!


Re: DQt: Qt bindings using extern(C++)

2021-12-06 Thread Tim via Digitalmars-d-announce

On Monday, 6 December 2021 at 08:28:58 UTC, MGW wrote:

On Sunday, 5 December 2021 at 12:54:21 UTC, Tim wrote:
DQt contains new experimental bindings for using a subset of 
Qt with D.
Qt is a library for writing cross-platform graphical user 
interfaces.
Currently bindings exist for the Qt modules core, gui and 
widgets. The
bindings use extern(C++) and don't need any wrapper in C++. 
They are
based on Qt 5.15.2 and tested on Linux and Windows, but need a 
dmd

compiled from master for Windows.

For more details see the README.md in the repository:
https://github.com/tim-dlang/dqt

It is also available with dub:
https://code.dlang.org/packages/dqt


Nice work!
Did you use any converter to describe classes automatically, or 
is it all manual?


I wrote a converter, but also had to make many manual changes.


Re: Skia library for D, porting from SkiaSharp API.

2021-12-06 Thread Johndavidson9 via Digitalmars-d-announce

On Monday, 6 December 2021 at 09:08:20 UTC, zoujiaqing wrote:
SkiaD is a cross-platform 2D graphics API for D based on Mono's 
SkiaSharp. It provides a comprehensive 2D API that can be used 
across mobile, server and desktop models to render images.


https://github.com/gearui/skiad

Thank you for providing information.




Re: Skia library for D, porting from SkiaSharp API.

2021-12-06 Thread zjh via Digitalmars-d-announce

On Monday, 6 December 2021 at 09:08:20 UTC, zoujiaqing wrote:


https://github.com/gearui/skiad


Nice.



Re: Skia library for D, porting from SkiaSharp API.

2021-12-06 Thread Petar via Digitalmars-d-announce

On Monday, 6 December 2021 at 09:08:20 UTC, zoujiaqing wrote:
SkiaD is a cross-platform 2D graphics API for D based on Mono's 
SkiaSharp. It provides a comprehensive 2D API that can be used 
across mobile, server and desktop models to render images.


https://github.com/gearui/skiad


Thanks for sharing! About two years I started creating [D 
bindings][1] for the C API of Skia, but I didn't have time to 
finish that project. Actually, if I remember correctly, all of 
the C API is covered, but I haven't tested it. My main motivation 
was to play with creating a Flutter-like GUI library, but I had 
to put this task on hold.


Initially, one of the challenges was figuring out a good model 
for building and distributing Skia for users of the Dub package. 
Nowadays, if I were to resume work on this, I would most likely 
use a [Nix][2] + Dub combo, since Nix solves the problem of 
building third-party libraries and including them in another 
project in a very clean way (among many other cool properties).


[1]: https://github.com/PetarKirov/skia-d
[2]: https://nixos.org/


Skia library for D, porting from SkiaSharp API.

2021-12-06 Thread zoujiaqing via Digitalmars-d-announce
SkiaD is a cross-platform 2D graphics API for D based on Mono's 
SkiaSharp. It provides a comprehensive 2D API that can be used 
across mobile, server and desktop models to render images.


https://github.com/gearui/skiad


Re: DQt: Qt bindings using extern(C++)

2021-12-06 Thread MGW via Digitalmars-d-announce

On Sunday, 5 December 2021 at 12:54:21 UTC, Tim wrote:
DQt contains new experimental bindings for using a subset of Qt 
with D.
Qt is a library for writing cross-platform graphical user 
interfaces.
Currently bindings exist for the Qt modules core, gui and 
widgets. The
bindings use extern(C++) and don't need any wrapper in C++. 
They are
based on Qt 5.15.2 and tested on Linux and Windows, but need a 
dmd

compiled from master for Windows.

For more details see the README.md in the repository:
https://github.com/tim-dlang/dqt

It is also available with dub:
https://code.dlang.org/packages/dqt


Nice work!
Did you use any converter to describe classes automatically, or 
is it all manual?