class · System.Bindings
BindingModel
public class System.Bindings.BindingModel : System.Any
Every declaration of the binding, in the order C declared them, and its settings.
- Kind
- class
- Namespace
- System.Bindings
- Assembly
- System.Bindings
- Access
- public, final
- Source file
Model.ant
Inheritance
- Base classes
-
AnyBindingModel
Constructors
constructor BindingModel(settings: System.Bindings.BindingSettings)
#
Methods
static method Read(settings: System.Bindings.BindingSettings, path: System.String<u8>) -> System.Bindings.BindingModel
#
The model larva wrote to path for the profile: a declaration a line, its fields between tabs (E an enum,
M its member, T its typedef; S a struct, F its field; C a constant; U a function, P its parameter).
method AddFunction(entry: System.String<u8>, header: System.String<u8>, result: System.String<u8>, typedef: System.String<u8>) -> System.Bindings.CFunction
#
method AddStruct(cName: System.String<u8>, header: System.String<u8>, isUnion: bool, pack: i32) -> System.Bindings.CStruct
#
method AddEnum(cName: System.String<u8>, header: System.String<u8>, underlying: System.String<u8>, isFlags: bool) -> System.Bindings.CEnum
#
method AddConstant(cName: System.String<u8>, header: System.String<u8>, value: i64) -> System.Bindings.CConstant
#
method Function(entry: System.String<u8>) -> System.Bindings.CFunction?
#
The function whose C symbol is entry, or null.
method Struct(cName: System.String<u8>) -> System.Bindings.CStruct?
#
The struct named cName in C, or null.
method Enum(cName: System.String<u8>) -> System.Bindings.CEnum?
#
The enum named cName, or null.
method Constant(cName: System.String<u8>) -> System.Bindings.CConstant?
#
The constant named cName in C, or null.
method MakeEnum(name: System.String<u8>, pattern: System.String<u8>, flags: bool) -> System.Bindings.CEnum
#
An enum made from the constants whose C names match pattern (SDL_INIT_*): they leave the constants. Its
number type is the smallest that holds them; flags says whether it is a bitflag enum.
method MakeEnum(name: System.String<u8>, pattern: System.String<u8>, except: System.String<u8>, flags: bool) -> System.Bindings.CEnum
#
An enum made from the constants that match pattern and not except (SDL_WINDOW_*, SDL_WINDOW_SURFACE_*).
Fields
field Settings: System.Bindings.BindingSettings
#
field Functions: System.List<System.Bindings.CFunction>
#
field Structs: System.List<System.Bindings.CStruct>
#
field Enums: System.List<System.Bindings.CEnum>
#
field Constants: System.List<System.Bindings.CConstant>
#
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
BindingModel as Larva HIR, decompiled from its Larva HIR.
// Every declaration of the binding, in the order C declared them, and its settings.
public class System.Bindings.BindingModel : System.Any
{
field Settings: System.Bindings.BindingSettings
field Functions: System.List<System.Bindings.CFunction>
field Structs: System.List<System.Bindings.CStruct>
field Enums: System.List<System.Bindings.CEnum>
field Constants: System.List<System.Bindings.CConstant>
constructor BindingModel(settings: System.Bindings.BindingSettings)
// The model larva wrote to `path` for the profile: a declaration a line, its fields between tabs (`E` an enum,
// `M` its member, `T` its typedef; `S` a struct, `F` its field; `C` a constant; `U` a function, `P` its parameter).
static method Read(settings: System.Bindings.BindingSettings, path: System.String<u8>) -> System.Bindings.BindingModel
method AddFunction(entry: System.String<u8>, header: System.String<u8>, result: System.String<u8>, typedef: System.String<u8>) -> System.Bindings.CFunction
method AddStruct(cName: System.String<u8>, header: System.String<u8>, isUnion: bool, pack: i32) -> System.Bindings.CStruct
method AddEnum(cName: System.String<u8>, header: System.String<u8>, underlying: System.String<u8>, isFlags: bool) -> System.Bindings.CEnum
method AddConstant(cName: System.String<u8>, header: System.String<u8>, value: i64) -> System.Bindings.CConstant
// The function whose C symbol is `entry`, or null.
method Function(entry: System.String<u8>) -> System.Bindings.CFunction?
// The struct named `cName` in C, or null.
method Struct(cName: System.String<u8>) -> System.Bindings.CStruct?
// The enum named `cName`, or null.
method Enum(cName: System.String<u8>) -> System.Bindings.CEnum?
// The constant named `cName` in C, or null.
method Constant(cName: System.String<u8>) -> System.Bindings.CConstant?
// An enum made from the constants whose C names match `pattern` (`SDL_INIT_*`): they leave the constants. Its
// number type is the smallest that holds them; `flags` says whether it is a bitflag enum.
method MakeEnum(name: System.String<u8>, pattern: System.String<u8>, flags: bool) -> System.Bindings.CEnum
// An enum made from the constants that match `pattern` and not `except` (`SDL_WINDOW_*`, `SDL_WINDOW_SURFACE_*`).
method MakeEnum(name: System.String<u8>, pattern: System.String<u8>, except: System.String<u8>, flags: bool) -> System.Bindings.CEnum
}