Class: GirFFI::StructBase
Overview
Base class for generated classes representing GLib structs.
Direct Known Subclasses
Constant Summary
Constants inherited from ClassBase
Instance Attribute Summary
Attributes inherited from ClassBase
Instance Method Summary collapse
-
#initialize ⇒ StructBase
constructor
A new instance of StructBase.
Methods included from StructLikeBase
Methods inherited from ClassBase
#==, direct_wrap, from, #setup_and_call, setup_and_call, setup_instance_method, setup_method, to_ffi_type, try_in_ancestors, wrap
Methods included from RegisteredTypeBase
Methods included from TypeBase
Constructor Details
#initialize ⇒ StructBase
Returns a new instance of StructBase.
10 11 12 13 14 |
# File 'lib/gir_ffi/struct_base.rb', line 10 def initialize @struct = self.class::Struct.new @struct.owned = true @struct.to_ptr.autorelease = false end |