class Bindgen::Configuration

Overview

Configuration as read from the .yml file passed to bindgen as program parameter.

Included Modules

Defined in:

bindgen/configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def builtin_out_arguments=(builtin_out_arguments : Bool) #

Take every non-const reference or pointer to a built-in type or an enum a method writes through, like bool *ok or int &, as an out argument, returned with the result (SPEC.md §2.2.5), not only in a method with a converted one. Pointers to byte and character types, buffers, excepted.


[View source]
def builtin_out_arguments? : Bool #

Take every non-const reference or pointer to a built-in type or an enum a method writes through, like bool *ok or int &, as an out argument, returned with the result (SPEC.md §2.2.5), not only in a method with a converted one. Pointers to byte and character types, buffers, excepted.


[View source]
def classes : Hash(String, String) #

Which classes to wrap


[View source]
def classes=(classes : Hash(String, String)) #

Which classes to wrap


[View source]
def containers : Array(Bindgen::Configuration::Container) #

Which templates to instantiate


[View source]
def containers=(containers : Array(Bindgen::Configuration::Container)) #

Which templates to instantiate


[View source]
def cookbook : String #

Cookbook to use for templates


[View source]
def cookbook=(cookbook : String) #

Cookbook to use for templates


[View source]
def enums : Hash(String, Bindgen::Configuration::Enum) #

Which enums to wrap


[View source]
def enums=(enums : Hash(String, Bindgen::Configuration::Enum)) #

Which enums to wrap


[View source]
def find_paths : Bindgen::FindPath::Configuration | Nil #

Find path configuration


[View source]
def find_paths=(find_paths : Bindgen::FindPath::Configuration | Nil) #

Find path configuration


[View source]
def functions : Hash(String, Bindgen::Configuration::Function) #

Which functions to wrap


[View source]
def functions=(functions : Hash(String, Bindgen::Configuration::Function)) #

Which functions to wrap


[View source]
def generators : Hash(String, Bindgen::Configuration::Generator) #

Used generators


[View source]
def generators=(generators : Hash(String, Bindgen::Configuration::Generator)) #

Used generators


[View source]
def ignore_deprecated=(ignore_deprecated : Bool) #

Drop the methods declared [[deprecated]], in filter_methods.


[View source]
def ignore_deprecated? : Bool #

Drop the methods declared [[deprecated]], in filter_methods.


[View source]
def ignore_methods : Array(Bindgen::TypeDatabase::MethodPattern) #

Methods to drop in every class, and functions, by name, signature or regular expression like the #ignore_methods of a type rule, see TypeDatabase::MethodPattern.


[View source]
def ignore_methods=(ignore_methods : Array(Bindgen::TypeDatabase::MethodPattern)) #

Methods to drop in every class, and functions, by name, signature or regular expression like the #ignore_methods of a type rule, see TypeDatabase::MethodPattern.


[View source]
def library : String | Nil #

What to put into @[Link(ldflags: "x")]


[View source]
def library=(library : String | Nil) #

What to put into @[Link(ldflags: "x")]


[View source]
def macros : Hash(String, Bindgen::Configuration::Macro) #

Which macros to wrap


[View source]
def macros=(macros : Hash(String, Bindgen::Configuration::Macro)) #

Which macros to wrap


[View source]
def member_functions : Array(String) #

Free functions bound as methods of the class of their first parameter, like friend operators are: [qHash]. The parameter becomes self, the method is const if it is.


[View source]
def member_functions=(member_functions : Array(String)) #

Free functions bound as methods of the class of their first parameter, like friend operators are: [qHash]. The parameter becomes self, the method is const if it is.


[View source]
def module : String #

Target Crystal module


[View source]
def module=(module __arg0 : String) #

Target Crystal module


[View source]
def nilable_results=(nilable_results : Bool) #

Return nil for a null pointer to a wrapped class, so such results are T?. Otherwise a wrapper of a null pointer is returned.


[View source]
def nilable_results? : Bool #

Return nil for a null pointer to a wrapped class, so such results are T?. Otherwise a wrapper of a null pointer is returned.


[View source]

Parser configuration


[View source]
def parser=(parser : Bindgen::Parser::Configuration) #

Parser configuration


[View source]
def processors : Array(String) #

Used processors


[View source]
def processors=(processors : Array(String)) #

Used processors


[View source]

Type database configuration


[View source]

Type database configuration


[View source]