Sha256: 220433765ec9fbcae2dde02e2ea074239431c08216fcbaeb24fb699348ccab70

Contents?: true

Size: 525 Bytes

Versions: 5

Compression:

Stored size: 525 Bytes

Contents

module GObjectIntrospection
  # Wraps a GIPropertyInfo struct.
  # Represents a property of an IObjectInfo or an IInterfaceInfo.
  class IPropertyInfo < IBaseInfo
    def property_type
      ITypeInfo.wrap(Lib.g_property_info_get_type @gobj)
    end

    def flags
      Lib.g_property_info_get_flags @gobj
    end

    def readable?
      flags & 1 != 0
    end

    def writeable?
      flags & 2 != 0
    end

    def construct?
      flags & 4 != 0
    end

    def construct_only?
      flags & 8 != 0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.9.0 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.8.6 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.8.5 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.8.4 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.8.3 lib/ffi-gobject_introspection/i_property_info.rb