-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Gtk::GestureDrag and retrieving x,y coordinates #60
Comments
The code with the interactive constraints is found at
The compiler error message got truncated
|
It seems one has to use callback functions to retrieve the (x,y) coordinates when a widget is dragged
|
I see, it's another issue from the fact that GI-Crystal just ignore the out parameters. It's on my queue to touch this on GI-Crystal and let every method that have out parameters to return a Tuple |
I am also seeing methods where a parameter of type Pointer(Void) has to be specified e.g
but reading the Gi-Crystal doc, it says I should ignore user_data ?? |
Yes, what the binding generator uses this user_data pointer to pass a Crystal All these |
For the moment I will skip some of the Gtk4 examples as the API is still work in progress. PS I am not familiar with |
Working on interactive constraints and trying to call methods
to get the point where the drag started
and to get the offset from the start point.
If the gesture is active, this function returns true and fills in x and y with the drag start coordinates, in surface-relative coordinates
These x,y parameters are passed by value and not by reference, so not sure how these x,y values are returned.
The compiler complains with error
The text was updated successfully, but these errors were encountered: