summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mfluadir/otfcc/include/otfcc/table/CPAL.h
blob: cd45e1e0b4eb80ae97ac9e644c4573d7f8e93545 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef CARYLL_INCLUDE_TABLE_CPAL_H
#define CARYLL_INCLUDE_TABLE_CPAL_H

#include "table-common.h"

// Color and Color list
typedef struct {
	uint8_t red;
	uint8_t green;
	uint8_t blue;
	uint8_t alpha;
	uint16_t label;
} cpal_Color;
extern caryll_ElementInterface(cpal_Color) cpal_iColor;
typedef caryll_Vector(cpal_Color) cpal_ColorSet;
extern caryll_VectorInterface(cpal_ColorSet, cpal_Color) cpal_iColorSet;

// Palette and Palette list
typedef struct {
	cpal_ColorSet colorset;
	uint32_t type;
	uint32_t label;
} cpal_Palette;
extern caryll_ElementInterface(cpal_Palette) cpal_iPalette;
typedef caryll_Vector(cpal_Palette) cpal_PaletteSet;
extern caryll_VectorInterface(cpal_PaletteSet, cpal_Palette) cpal_iPaletteSet;

// CPAL table
typedef struct {
	uint16_t version;
	cpal_PaletteSet palettes;
} table_CPAL;
extern caryll_RefElementInterface(table_CPAL) table_iCPAL;

#endif