Sha256: 60f57ce6a70f5d1adc96361f3b55907b5cf4cdfbabf03d9d6af3c07c464247cc
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true GObject.load_class :ObjectClass module GObject # 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 def gtype GirFFI::InOutPointer.new(:GType, to_ptr).to_value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.9.5 | lib/ffi-gobject/object_class.rb |
gir_ffi-0.9.4 | lib/ffi-gobject/object_class.rb |
gir_ffi-0.9.3 | lib/ffi-gobject/object_class.rb |