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)


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

def construct?
  flags[:construct]
end

#construct_only?Boolean

Returns:

  • (Boolean)


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

def construct_only?
  flags[:construct_only]
end

#flagsObject



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_typeObject



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

Returns:

  • (Boolean)


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

def readable?
  flags[:readable]
end

#writeable?Boolean

Returns:

  • (Boolean)


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

def writeable?
  flags[:writable]
end