Types

Types

Macros

#define KUVIO_ARG_TYPE(TYPE)TYPE KUVIO_INDIRECT(KUVIO_3RD_ARG,(KUVIO_ARG_TYPE_ ## TYPE,* ,))
#define KUVIO_TYPE_ID(TYPE)TYPE ## _id

Typedefs

typedef KUVIO_REAL kuvio_real
typedef int kuvio_refcount
typedef uint8_t kuvio_bool
typedef void* kuvio_voidptr
typedef const char* kuvio_string
typedef uint32_t kuvio_color32
typedef uint64_t kuvio_color64
typedef uint64_t kuvio_datetime
typedef void* kuvio_table
typedef void* kuvio_image_stream

Enumerations

enum
enum kuvio_type_id

Functions

size_t kuvio_align_of(uint32_t id)
size_t kuvio_size_of(uint32_t id)

Macro Definition Documentation

#define KUVIO_ARG_TYPE( TYPE) TYPE KUVIO_INDIRECT(KUVIO_3RD_ARG,(KUVIO_ARG_TYPE_ ## TYPE,* ,))

Expands to TYPE for types that are passed as values and TYPE* for those that are passed as pointers.

#define KUVIO_TYPE_ID( TYPE) TYPE ## _id

Expands to TYPE_id.

Typedef Documentation

typedef KUVIO_REAL kuvio_real

Preferred real number type. This is either double or float depending on target hardware and build configuration.

Enumeration Type Documentation

Type IDs for all supported types.

Function Documentation

size_t kuvio_align_of(uint32_t id)

Returns the alignment, in bytes, required for an instance of a type identified by id. If id represents a type that is passed as a pointer (such as a matrix or an image), returns the alignment of a pointer.

size_t kuvio_size_of(uint32_t id)

Returns the size, in bytes, required for an instance of a type identified by id. If id represents a type that is passed as a pointer (such as a matrix or an image), returns the size of a pointer.