class · System.Bindings

CEnum

public class System.Bindings.CEnum : System.Any

An enum (or bitflag enum): from a C enum, or made from constants (BindingModel.Enum).

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

Herencia

Clases base
Any CEnum

Constructores

constructor CEnum(cName: System.String<u8>, header: System.String<u8>, underlying: System.String<u8>, isFlags: bool)
#

Métodos

method Add(cName: System.String<u8>, value: i64) -> System.Bindings.CEnum
#
method Typedef(typedef: System.String<u8>) -> System.Bindings.CEnum
#

Takes a typedef: what C wrote with it takes this enum.

Campos

field CName: System.String<u8>
#

Its C name (the C enum's, or the name a profile gave it).

field Name: System.String<u8>
#
field Namespace: System.String<u8>
#
field File: System.String<u8>
#
field Underlying: System.String<u8>
#

Its number type (i32, u32…).

field IsFlags: bool
#
field Typedefs: System.List<System.String<u8>>
#

C typedefs whose parameters, results and fields take this enum (SDL_InitFlags).

field MemberPrefix: System.String<u8>
#

The prefix its members lose ("": the one they share, when the settings say so).

Miembros heredados (5)

Código fuente

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

System.Bindings.CEnum.hir
// An enum (or bitflag enum): from a C enum, or made from constants (`BindingModel.Enum`).
public class System.Bindings.CEnum : System.Any
{
    // Its C name (the C enum's, or the name a profile gave it).
    field CName: System.String<u8>
    field Name: System.String<u8>
    field Header: System.String<u8>
    field Namespace: System.String<u8>
    field File: System.String<u8>
    // Its number type (`i32`, `u32`…).
    field Underlying: System.String<u8>
    field IsFlags: bool
    field Members: System.List<System.Bindings.CEnumMember>
    // C typedefs whose parameters, results and fields take this enum (`SDL_InitFlags`).
    field Typedefs: System.List<System.String<u8>>
    // The prefix its members lose ("": the one they share, when the settings say so).
    field MemberPrefix: System.String<u8>
    constructor CEnum(cName: System.String<u8>, header: System.String<u8>, underlying: System.String<u8>, isFlags: bool)
    method Add(cName: System.String<u8>, value: i64) -> System.Bindings.CEnum
    // Takes a typedef: what C wrote with it takes this enum.
    method Typedef(typedef: System.String<u8>) -> System.Bindings.CEnum
}
Esc