class GirFFI::GType
Wrapper class providing extended functionality for a GType, which is normally just a kind of integer
Public Class Methods
new(gtype)
click to toggle source
# File lib/gir_ffi/g_type.rb, line 5 def initialize(gtype) @gtype = gtype end
Public Instance Methods
class_size()
click to toggle source
# File lib/gir_ffi/g_type.rb, line 13 def class_size type_query.class_size end
instance_size()
click to toggle source
# File lib/gir_ffi/g_type.rb, line 17 def instance_size type_query.instance_size end
to_i()
click to toggle source
# File lib/gir_ffi/g_type.rb, line 9 def to_i @gtype end
Private Instance Methods
type_query()
click to toggle source
# File lib/gir_ffi/g_type.rb, line 23 def type_query @type_query ||= GObject.type_query @gtype end