class Bindgen::CallBuilder::CppToCrystalProc

Overview

Builder for calls made from C++ to Crystal. Used for callbacks, Qt signals and virtual method overrides.

Defined in:

bindgen/call_builder/cpp_to_crystal_proc.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(db : TypeDatabase) #

[View source]

Instance Method Detail

def build(method : Parser::Method, *, proc_name : String = "_proc_", lambda = false) : Call #

Calls the method, using the proc_name to call-through to Crystal. If lambda is true, instead of invoking the method, builds a C++ lambda expression that wraps the invocation.


[View source]