Class: GObjectIntrospection::IFieldInfo
- Inherits:
-
IBaseInfo
- Object
- IBaseInfo
- GObjectIntrospection::IFieldInfo
show all
- Defined in:
- lib/ffi-gobject_introspection/i_field_info.rb
Overview
Wraps a GIFieldInfo struct. Represents a field of an IStructInfo or an IUnionInfo.
Instance Method Summary
collapse
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
#field_type ⇒ Object
17
18
19
|
# File 'lib/ffi-gobject_introspection/i_field_info.rb', line 17
def field_type
ITypeInfo.wrap(Lib.g_field_info_get_type @gobj)
end
|
#flags ⇒ Object
5
6
7
|
# File 'lib/ffi-gobject_introspection/i_field_info.rb', line 5
def flags
Lib.g_field_info_get_flags @gobj
end
|
#offset ⇒ Object
13
14
15
|
# File 'lib/ffi-gobject_introspection/i_field_info.rb', line 13
def offset
Lib.g_field_info_get_offset @gobj
end
|
#readable? ⇒ Boolean
21
22
23
|
# File 'lib/ffi-gobject_introspection/i_field_info.rb', line 21
def readable?
flags & 1 != 0
end
|
#size ⇒ Object
9
10
11
|
# File 'lib/ffi-gobject_introspection/i_field_info.rb', line 9
def size
Lib.g_field_info_get_size @gobj
end
|
#writable? ⇒ Boolean
25
26
27
|
# File 'lib/ffi-gobject_introspection/i_field_info.rb', line 25
def writable?
flags & 2 != 0
end
|