aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/text-style.h
blob: a1cae3744d35128c9649bd5d58eddd6bde50b7bc (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
#ifndef TEXT_STYLE_H
#define TEXT_STYLE_H

#include "../core/sok.h"
#include <SDL.h>

typedef enum {
  TEXT_ALIGN_TOP_LEFT,
  TEXT_ALIGN_TOP_CENTER,
  TEXT_ALIGN_TOP_RIGHT,
  TEXT_ALIGN_CENTER_LEFT,
  TEXT_ALIGN_CENTER_CENTER,
  TEXT_ALIGN_CENTER_RIGHT,
  TEXT_ALIGN_BOTTOM_LEFT,
  TEXT_ALIGN_BOTTOM_RIGHT,
  TEXT_ALIGN_BOTTOM_CENTER,
  TEXT_ALIGN_LAST,
} text_align_t;

typedef struct {
  const text_align_t align;
  const sok_pos_t pad;
  const SDL_Color colors[2];
} text_style_t;

#endif /* TEXT_STYLE_H */