ammer

Datatypes

Libraries often group data into complex types such as structs. To make use of these in Haxe code and in ammer library definitions, they can be defined as Haxe types.

Opaque types

Opaque types are types whose fields and layout are only known to the library that defines them. Any interaction with such types happens through methods defined by the library.

Read on: Opaque types

Structs

Structs are types which contain fields, which can be read from or written to.

Read on: Structs

Enums

Enums are sets of named values of the same type.

Read on: Enums

Haxe types

Native libraries can store pointers to instances of Haxe types.

Read on: Haxe types

Callbacks

Callbacks allow Haxe code to be called by the native library.

Read on: Callbacks

« Previous: Sublibraries Next: Opaque types »