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 7 def initialize(gtype) @gtype = gtype end
Public Instance Methods
class_size()
click to toggle source
# File lib/gir_ffi/g_type.rb, line 15 def class_size type_query.class_size end
instance_size()
click to toggle source
# File lib/gir_ffi/g_type.rb, line 19 def instance_size type_query.instance_size end
to_i()
click to toggle source
# File lib/gir_ffi/g_type.rb, line 11 def to_i @gtype end
Private Instance Methods
type_query()
click to toggle source
# File lib/gir_ffi/g_type.rb, line 25 def type_query @type_query ||= GObject.type_query @gtype end