Class: GirFFI::Builders::InterfaceBuilder

Inherits:
RegisteredTypeBuilder show all
Defined in:
lib/gir_ffi/builders/interface_builder.rb

Overview

Implements the creation of a module representing an Interface.

Instance Attribute Summary

Attributes inherited from GirFFI::BaseTypeBuilder

#info

Instance Method Summary collapse

Methods inherited from RegisteredTypeBuilder

#setup_instance_method, #setup_method, #target_gtype

Methods inherited from GirFFI::BaseTypeBuilder

#build_class, #initialize, #instantiate_class

Methods included from GirFFI::BuilderHelper

#get_or_define_class, #get_or_define_module, #optionally_define_constant

Constructor Details

This class inherits a constructor from GirFFI::BaseTypeBuilder

Instance Method Details

#interface_structObject



10
11
12
13
14
# File 'lib/gir_ffi/builders/interface_builder.rb', line 10

def interface_struct
  @interface_struct ||=
    StructBuilder.new(iface_struct_info,
                      superclass: GObject::TypeInterface).build_class
end