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
21
22
23
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 21
def construct?
flags & 4 != 0
end
|
#construct_only? ⇒ Boolean
25
26
27
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 25
def construct_only?
flags & 8 != 0
end
|
#flags ⇒ Object
9
10
11
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 9
def flags
Lib.g_property_info_get_flags @gobj
end
|
#property_type ⇒ Object
5
6
7
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 5
def property_type
ITypeInfo.wrap Lib.g_property_info_get_type(@gobj)
end
|
#readable? ⇒ Boolean
13
14
15
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 13
def readable?
flags & 1 != 0
end
|
#writeable? ⇒ Boolean
17
18
19
|
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 17
def writeable?
flags & 2 != 0
end
|