Sha256: 8d65f5792e9495dd7f25854f7b2cf578bf8be518451ac64bc747f4273307180a

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

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(self)
    end

    def flags
      Lib.g_property_info_get_flags self
    end

    def readable?
      flags[:readable]
    end

    def writeable?
      flags[:writable]
    end

    def construct?
      flags[:construct]
    end

    def construct_only?
      flags[:construct_only]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.14.1 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.14.0 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.13.1 lib/ffi-gobject_introspection/i_property_info.rb