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

Property binding API #129

Closed
jwharm opened this issue Aug 31, 2024 · 0 comments
Closed

Property binding API #129

jwharm opened this issue Aug 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jwharm
Copy link
Owner

jwharm commented Aug 31, 2024

Add an api to create property bindings with transformations. As an example, it seems Gtk-rs implemented some kind of Builder class for property bindings.

Currently java-gi users who want to bind properties with transform functions, must create callback methods with GValue parameters, and read/write from and to those GValues.

This probably can work with a generic builder class with <L, R> and <R, L> transformation functions that use the java-gi ValueUtil class to read from/to a GValue and cast to R or L.

@jwharm jwharm added the enhancement New feature or request label Aug 31, 2024
@jwharm jwharm closed this as completed in 2e85680 Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant