forked from xyb3rt/sxiv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.h
45 lines (37 loc) · 1.28 KB
/
tag.h
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
/* sxiv: tag.h
* Copyright (c) 2012 Devon Smith <decasm at gmail.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef TAG_H
#define TAG_H
#include "palette.h"
#define TAG_LABEL_NORMAL 0x5A5A5AFF
#define TAG_LABEL_SELECTED 0x000000FF
#define TAG_MAPPING_NORMAL 0x5A5A5AFF
#define TAG_MAPPING_SELECTED 0x000000FF
typedef struct {
bool tagging_on;
palette_t *palette;
win_t *win;
int palette_count;
int current_palette;
} tag_t;
void tag_init(tag_t *, win_t *);
void tag_render(tag_t *);
void tag_render_palette(tag_t *);
void tag_render_palette_mapping(tag_t *tag);
void tag_free(tag_t *tag);
#endif /* TAG_H */