aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaynag/types.h
blob: 24da94187661f93233eb87ed0777c62c46cc5f62 (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
#ifndef _SWAYNAG_TYPES_H
#define _SWAYNAG_TYPES_H

struct swaynag_type {
	char *name;

	char *font;
	char *output;
	uint32_t anchors;

	// Colors
	uint32_t button_text;
	uint32_t button_background;
	uint32_t details_background;
	uint32_t background;
	uint32_t text;
	uint32_t border;
	uint32_t border_bottom;

	// Sizing
	ssize_t bar_border_thickness;
	ssize_t message_padding;
	ssize_t details_border_thickness;
	ssize_t button_border_thickness;
	ssize_t button_gap;
	ssize_t button_gap_close;
	ssize_t button_margin_right;
	ssize_t button_padding;
};

struct swaynag_type *swaynag_type_new(const char *name);

void swaynag_types_add_default(list_t *types);

struct swaynag_type *swaynag_type_get(list_t *types, char *name);

struct swaynag_type *swaynag_type_clone(struct swaynag_type *type);

void swaynag_type_merge(struct swaynag_type *dest, struct swaynag_type *src);

void swaynag_type_free(struct swaynag_type *type);

void swaynag_types_free(list_t *types);

#endif