Sha256: dc49327a23991674e0c702ab8d6ef1ce6a0d1b9c4d6de43f646102f0d25900a8

Contents?: true

Size: 570 Bytes

Versions: 9

Compression:

Stored size: 570 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(@gobj)
    end

    def flags
      Lib.g_property_info_get_flags @gobj
    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

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.11.0 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.10.2 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.10.1 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.10.0 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.10.0.pre1 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.9.5 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.9.4 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.9.3 lib/ffi-gobject_introspection/i_property_info.rb