Class: GObjectIntrospection::IPropertyInfo

Inherits:
IBaseInfo
  • Object
show all
Includes:
GirFFI::InfoExt::IPropertyInfo
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 Attribute Summary

Attributes inherited from IBaseInfo

#pointer

Instance Method Summary collapse

Methods included from GirFFI::InfoExt::IPropertyInfo

#getter_name, #setter_name

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)


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

def construct?
  flags[:construct]
end

#construct_only?Boolean

Returns:

  • (Boolean)


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

def construct_only?
  flags[:construct_only]
end

#flagsObject



11
12
13
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 11

def flags
  @flags ||= Lib.g_property_info_get_flags self
end

#property_typeObject



7
8
9
# File 'lib/ffi-gobject_introspection/i_property_info.rb', line 7

def property_type
  @property_type ||= ITypeInfo.wrap Lib.g_property_info_get_type(self)
end

#readable?Boolean

Returns:

  • (Boolean)


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

def readable?
  flags[:readable]
end

#writeable?Boolean

Returns:

  • (Boolean)


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

def writeable?
  flags[:writable]
end