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

Kind
class
Namespace
System.Bindings
Assembly
System.Bindings
Access
public, final
Source file
Model.ant

Inheritance

Base classes
Any CEnum

Constructors

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

Methods

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.

Fields

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

Inherited members (5)

Source

CEnum as Larva HIR, decompiled from its 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