Sha256: ebff1f416d90fa71f152aff19e710d6dad7bdad10d19c9f4a9079855440525b4

Contents?: true

Size: 599 Bytes

Versions: 13

Compression:

Stored size: 599 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
      @property_type ||= ITypeInfo.wrap Lib.g_property_info_get_type(self)
    end

    def flags
      @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

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.16.1 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.16.0 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.9 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.8 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.7 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.6 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.5 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.4 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.3 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.2 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.1 lib/ffi-gobject_introspection/i_property_info.rb
gir_ffi-0.15.0 lib/ffi-gobject_introspection/i_property_info.rb