class Bindgen::TypeDatabase::TypeConfig
- Bindgen::TypeDatabase::TypeConfig
- Reference
- Object
Overview
Configuration of types, used in Configuration#types
(The types:
map
in YAML). See TypeDatabase::Configuration
.
Defined in:
bindgen/type_database.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node, _dummy : Nil)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Instance Method Summary
- #alias_for : String?
- #alias_for=(_alias_for : String | Nil)
- #binding_type : String?
- #binding_type=(_binding_type : String | Nil)
- #builtin : Bool
- #builtin=(_builtin : Bool)
- #converter : String?
- #converter=(_converter : String | Nil)
- #copy_structure : Bool
- #copy_structure=(_copy_structure : Bool)
- #cpp_type : String?
- #cpp_type=(_cpp_type : String | Nil)
-
#crystal_pass_by : PassBy
Pass-by configuration in wrapper code.
- #crystal_type : String?
- #crystal_type=(_crystal_type : String | Nil)
- #from_cpp : String?
- #from_cpp=(_from_cpp : String | Nil)
- #from_crystal : String?
- #from_crystal=(_from_crystal : String | Nil)
- #generate_binding : Bool
- #generate_binding=(_generate_binding : Bool)
- #generate_wrapper : Bool
- #generate_wrapper=(_generate_wrapper : Bool)
-
#graph_node : Graph::Node | Nil
The node this type is represented by in the graph, if any
-
#graph_node=(graph_node : Graph::Node | Nil)
The node this type is represented by in the graph, if any
- #ignore : Bool
- #ignore=(_ignore : Bool)
-
#ignore? : Bool
Shall methods using this type be ignored?
- #ignore_methods : Array(String)
- #ignore_methods=(_ignore_methods : Array(String))
- #kind : Bindgen::Parser::Type::Kind
- #kind=(_kind : Parser::Type::Kind)
-
#lib_type : String | Nil
Type name to use in the Crystal
lib
block. -
#merge(other : self) : self
Merges the other rules with these rules.
- #pass_by : Bindgen::TypeDatabase::PassBy
- #pass_by=(_pass_by : PassBy)
- #sub_class : Bool
- #sub_class=(_sub_class : Bool)
- #to_cpp : String?
- #to_cpp=(_to_cpp : String | Nil)
- #to_crystal : String?
- #to_crystal=(_to_crystal : String | Nil)
- #to_yaml(__temp_293 : YAML::Nodes::Builder)
- #wrapper_pass_by : Bindgen::TypeDatabase::PassBy?
- #wrapper_pass_by=(_wrapper_pass_by : PassBy | Nil)
-
#wrapper_type : String | Nil
Type name to use in the Crystal wrapper.
Constructor Detail
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)
#
Instance Method Detail
Pass-by configuration in wrapper code. Prefers the #wrapper_pass_by
value, and falls back to #pass_by
.
def graph_node=(graph_node : Graph::Node | Nil)
#
The node this type is represented by in the graph, if any
Merges the other rules with these rules. If a rule is set in both rule-sets, the value from other wins.