-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Records in normal mode #103
Comments
We seem to be going down the one struct per file path so it makes sense to do the same with records. Wrapping them is a bit more difficult mostly because some of them are refcounted ( The owned records have to be taken as arguments by The kind of ownership transfer (none/full) we know. |
Unless the function takes a |
Theoretically, if an owned record is passed as an argument with |
Some "Boxed" types support has been added. A completely opaque struct can be represented now. Other kinds need more thinking. |
6 owned(boxed) records without fields: Some have only copy, ref, unref: |
While the owned and refcounted records need slightly different wrappers, the difference probably doesn't matter for the conversions code. The
let mut ptr = ptr::null_mut();
ffi::func(&mut ptr);
from_glib_xyz(ptr)
let mut rec = Rec::uninitialized();
ffi::func(rec.to_glib_none_mut().0);
rec |
Now, there also are "plain old data" records like |
So, there now exist
|
Generate ApplicationCommandLine.
Part of #102
Seems records will more difficult that I think.
Object
but maybe without inheritance).gtk_sys
or separate some (with functions) or all.in
parameter then it passed by reference and translated withto_glib_none
.from_glib_none()
The text was updated successfully, but these errors were encountered: