Sha256: 6fae40096ee5850dc459d2a68a0eafddf3c6c6c74457617cf6609fe1e03f7314
Contents?: true
Size: 926 Bytes
Versions: 13
Compression:
Stored size: 926 Bytes
Contents
module GObjectIntrospection # Wraps a GIStructInfo struct. # Represents a struct. class IStructInfo < IRegisteredTypeInfo def n_fields Lib.g_struct_info_get_n_fields @gobj end def field(index) IFieldInfo.wrap(Lib.g_struct_info_get_field @gobj, index) end ## build_array_method :fields def get_n_methods Lib.g_struct_info_get_n_methods @gobj end def get_method(index) IFunctionInfo.wrap(Lib.g_struct_info_get_method @gobj, index) end ## build_array_method :get_methods def find_method(name) method_map[name] end def method_map @method_map ||= Hash[get_methods.map {|mthd| [mthd.name, mthd] }] end def size Lib.g_struct_info_get_size @gobj end def alignment Lib.g_struct_info_get_alignment @gobj end def gtype_struct? Lib.g_struct_info_is_gtype_struct @gobj end end end
Version data entries
13 entries across 13 versions & 1 rubygems