class Bindgen::TypeDatabase::TypeConfig

Overview

Configuration of types, used in Configuration#types (The types: map in YAML). See TypeDatabase::Configuration.

Defined in:

bindgen/type_database.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

def self.new(crystal_type : String | Nil = nil, cpp_type : String | Nil = nil, binding_type : String | Nil = nil, from_cpp : String | Nil = nil, to_cpp : String | Nil = nil, converter : String | Nil = nil, from_crystal : String | Nil = nil, to_crystal : String | Nil = nil, kind : Bindgen::Parser::Type::Kind = Parser::Type::Kind::Class, ignore : Bool = false, pass_by : Bindgen::TypeDatabase::PassBy = PassBy::Original, wrapper_pass_by : PassBy | Nil = nil, sub_class : Bool = true, copy_structure : Bool = false, generate_wrapper : Bool = true, generate_binding : Bool = true, builtin : Bool = false, ignore_methods : Array(String) = [] of String, graph_node : Graph::Node | Nil = nil, alias_for : String | Nil = nil) #

[View source]

Instance Method Detail

def alias_for : String? #

def alias_for=(_alias_for : String | Nil) #

def binding_type : String? #

def binding_type=(_binding_type : String | Nil) #

def builtin : Bool #

def builtin=(_builtin : Bool) #

def converter : String? #

def converter=(_converter : String | Nil) #

def copy_structure : Bool #

def copy_structure=(_copy_structure : Bool) #

def cpp_type : String? #

def cpp_type=(_cpp_type : String | Nil) #

def crystal_pass_by : PassBy #

Pass-by configuration in wrapper code. Prefers the #wrapper_pass_by value, and falls back to #pass_by.


[View source]
def crystal_type : String? #

def crystal_type=(_crystal_type : String | Nil) #

def from_cpp : String? #

def from_cpp=(_from_cpp : String | Nil) #

def from_crystal : String? #

def from_crystal=(_from_crystal : String | Nil) #

def generate_binding : Bool #

def generate_binding=(_generate_binding : Bool) #

def generate_wrapper : Bool #

def generate_wrapper=(_generate_wrapper : Bool) #

def graph_node : Graph::Node | Nil #

The node this type is represented by in the graph, if any


[View source]
def graph_node=(graph_node : Graph::Node | Nil) #

The node this type is represented by in the graph, if any


[View source]
def ignore : Bool #

def ignore=(_ignore : Bool) #

def ignore? : Bool #

Shall methods using this type be ignored?


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

def ignore_methods=(_ignore_methods : Array(String)) #


def kind=(_kind : Parser::Type::Kind) #

def lib_type : String | Nil #

Type name to use in the Crystal lib block.


[View source]
def merge(other : self) : self #

Merges the other rules with these rules. If a rule is set in both rule-sets, the value from other wins.


[View source]

def pass_by=(_pass_by : PassBy) #

def sub_class : Bool #

def sub_class=(_sub_class : Bool) #

def to_cpp : String? #

def to_cpp=(_to_cpp : String | Nil) #

def to_crystal : String? #

def to_crystal=(_to_crystal : String | Nil) #

def to_yaml(__temp_293 : YAML::Nodes::Builder) #

def wrapper_pass_by : Bindgen::TypeDatabase::PassBy? #

def wrapper_pass_by=(_wrapper_pass_by : PassBy | Nil) #

def wrapper_type : String | Nil #

Type name to use in the Crystal wrapper.


[View source]