class GObject::GValue
def self.alloc
-
(GValue)
- a new gvalue set to 0
def self.alloc # allocate memory memory = FFI::MemoryPointer.new GValue # make this alloc autorelease ... we mustn't release in # GValue::release, since we are used to wrap GValue pointers # made by other people pointer = FFI::Pointer.new GValue, memory # ... and wrap in a GValue GValue.new pointer end