Sha256: 8b9cb371970a7cacdd4a66a40811834dcb87990c16f8126fde8ba9d4b142d89f

Contents?: true

Size: 376 Bytes

Versions: 5

Compression:

Stored size: 376 Bytes

Contents

module GObject
  load_class :ObjectClass

  # Overrides for GObjectClass, a struct containing GObject's class data
  class ObjectClass
    def set_property= callback
      @struct[:set_property] = GObject::ObjectSetPropertyFunc.from callback
    end

    def get_property= callback
      @struct[:get_property] = GObject::ObjectGetPropertyFunc.from callback
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.7.4 lib/ffi-gobject/object_class.rb
gir_ffi-0.7.3 lib/ffi-gobject/object_class.rb
gir_ffi-0.7.2 lib/ffi-gobject/object_class.rb
gir_ffi-0.7.1 lib/ffi-gobject/object_class.rb
gir_ffi-0.7.0 lib/ffi-gobject/object_class.rb