Class: GObjectIntrospection::ITypeInfo
- Inherits:
-
IBaseInfo
- Object
- IBaseInfo
- GObjectIntrospection::ITypeInfo
show all
- Defined in:
- lib/ffi-gobject_introspection/i_type_info.rb
Overview
Wraps a GITypeInfo struct. Represents type information, direction, transfer etc.
Instance Method Summary
collapse
Methods inherited from IBaseInfo
#==, #attribute, build_array_method, build_finder_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #namespace, #safe_namespace, #to_ptr, wrap
Instance Method Details
#array_fixed_size ⇒ Object
27
28
29
|
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 27
def array_fixed_size
Lib.g_type_info_get_array_fixed_size @gobj
end
|
#array_length ⇒ Object
23
24
25
|
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 23
def array_length
Lib.g_type_info_get_array_length @gobj
end
|
#array_type ⇒ Object
31
32
33
|
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 31
def array_type
Lib.g_type_info_get_array_type @gobj
end
|
#name ⇒ Object
39
40
41
|
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 39
def name
raise 'Should not call this for ITypeInfo'
end
|
#param_type(index) ⇒ Object
14
15
16
|
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 14
def param_type(index)
ITypeInfo.wrap Lib.g_type_info_get_param_type(@gobj, index)
end
|
#pointer? ⇒ Boolean
6
7
8
|
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 6
def pointer?
Lib.g_type_info_is_pointer @gobj
end
|
#tag ⇒ Object
10
11
12
|
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 10
def tag
Lib.g_type_info_get_tag @gobj
end
|
#zero_terminated? ⇒ Boolean
35
36
37
|
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 35
def zero_terminated?
Lib.g_type_info_is_zero_terminated @gobj
end
|