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.

Tipo
class
Espacio de nombres
System.Bindings
Ensamblado
System.Bindings
Acceso
public, final
Archivo fuente
Model.ant

Herencia

Clases base
Any BindingModel

Constructores

constructor BindingModel(settings: System.Bindings.BindingSettings)
#

Métodos

static

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_*).

Campos

Miembros heredados (5)

Código fuente

BindingModel en Larva HIR, descompilado a partir de su Larva HIR.

System.Bindings.BindingModel.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
}
Esc