Class: GObjectIntrospection::IPropertyInfo

Inherits:
IBaseInfo
  • Object
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

Constructor Details

This class inherits a constructor from GObjectIntrospection::IBaseInfo

Instance Method Details

#construct?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 21

def construct?
  flags & 4 != 0
end

#construct_only?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 25

def construct_only?
  flags & 8 != 0
end

#flagsObject



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_typeObject



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

Returns:

  • (Boolean)


13
14
15
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 13

def readable?
  flags & 1 != 0
end

#writeable?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 17

def writeable?
  flags & 2 != 0
end