GObject Introspection, g-field-info-get-size



https://developer.gnome.org/gi/1.50/gi-GIFieldInfo.html#g-field-info-get-size

Is someone still familiar with GObject Introspection?

I am investigating creating high level GObject Introspection based Nim bindings.

Most seems to work well, some not: For example

g-field-info-get-size()

seems to give always zero.

Is that intended?

I may need that for introspecting structs with bit fields. Well, there
are not many, but a few.

Low level Nim bindings already exists, generated from header files with
tool c2nim:

https://github.com/ngtk3

But I have the feeling that for higher level bindings GObject
Introspection may be fine -- when it works reliable.

Another problem is g_enum_info_get_n_methods() and
g_enum_info_get_method(). For some GTK3 enums n_methods seems to be
greater than zero, but g_enum_info_get_method() gives garbage or
crashes. But that is a minor problem, I may just ignore it.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]