Class: GObjectIntrospection::IPropertyInfo
- Inherits:
-
IBaseInfo
- Object
- IBaseInfo
- GObjectIntrospection::IPropertyInfo
show all
- Defined in:
- lib/ffi-gobject_introspection/i_property_info.rb
Overview
Wraps a GIPropertyInfo struct. Represents a property of an IObjectInfo or an IInterfaceInfo.
Instance Method Summary
collapse
Methods inherited from IBaseInfo
#==, #attribute, build_array_method, build_finder_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #name, #namespace, #safe_namespace, #to_ptr, wrap
Instance Method Details
#construct? ⇒ Boolean
22
23
24
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 22
def construct?
flags[:construct]
end
|
#construct_only? ⇒ Boolean
26
27
28
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 26
def construct_only?
flags[:construct_only]
end
|
#flags ⇒ Object
10
11
12
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 10
def flags
Lib.g_property_info_get_flags @gobj
end
|
#property_type ⇒ Object
6
7
8
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 6
def property_type
ITypeInfo.wrap Lib.g_property_info_get_type(@gobj)
end
|
#readable? ⇒ Boolean
14
15
16
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 14
def readable?
flags[:readable]
end
|
#writeable? ⇒ Boolean
18
19
20
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 18
def writeable?
flags[:writable]
end
|