Class: GObjectIntrospection::IEnumInfo
Overview
Wraps a GIEnumInfo struct if it represents an enum. If it represents a flag, an IFlagsInfo object is used instead.
Instance Method Summary
collapse
#g_type, #type_init, #type_name
Methods inherited from IBaseInfo
#==, build_array_method, build_finder_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #name, #namespace, #safe_namespace, #to_ptr, wrap
Instance Method Details
#get_method(index) ⇒ Object
19
20
21
|
# File 'lib/ffi-gobject_introspection/i_enum_info.rb', line 19
def get_method index
IFunctionInfo.wrap(Lib.g_enum_info_get_method @gobj, index)
end
|
#get_n_methods ⇒ Object
15
16
17
|
# File 'lib/ffi-gobject_introspection/i_enum_info.rb', line 15
def get_n_methods
Lib.g_enum_info_get_n_methods @gobj
end
|
#n_values ⇒ Object
5
6
7
|
# File 'lib/ffi-gobject_introspection/i_enum_info.rb', line 5
def n_values
Lib.g_enum_info_get_n_values @gobj
end
|
#storage_type ⇒ Object
27
28
29
|
# File 'lib/ffi-gobject_introspection/i_enum_info.rb', line 27
def storage_type
Lib.g_enum_info_get_storage_type @gobj
end
|
#value(index) ⇒ Object
9
10
11
|
# File 'lib/ffi-gobject_introspection/i_enum_info.rb', line 9
def value index
IValueInfo.wrap(Lib.g_enum_info_get_value @gobj, index)
end
|