Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status of custom GObjects #329

Open
Blquinn opened this issue Apr 14, 2021 · 4 comments
Open

Status of custom GObjects #329

Blquinn opened this issue Apr 14, 2021 · 4 comments
Labels

Comments

@Blquinn
Copy link

Blquinn commented Apr 14, 2021

In other bindings (py, js, c++) there are facilities for creating custom gobjects, along with custom signals and properties.

Is this something that has been attempted for gtk-d? I would love to see that!

@MikeWey
Copy link
Member

MikeWey commented Apr 15, 2021

gtkd.Implement provides One to implement GObjects and One to implement interfaces. https://api.gtkd.org/gtkd.Implement.html

We would probably do something similar for composite templates.

@Blquinn
Copy link
Author

Blquinn commented Apr 15, 2021

@MikeWey Is there any way to create custom properties and signals with this in d?

@MikeWey
Copy link
Member

MikeWey commented Apr 15, 2021

Currently no, your only option is to do the same as in C and write your own init function that connects the properties and signals.

@Blquinn
Copy link
Author

Blquinn commented Apr 15, 2021

Is this something you've thought about? I would be happy to take a stab at it, but would appreciate some direction if you have thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants