diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-19 14:29:17 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-19 18:16:19 (EDT) |
commit | ecceb4f7eebc8204836e164c4ff655e9abbc2636 (patch) | |
tree | 876ebf0c308895e22dc7fe3a38e85a60c3eaf932 /src/defs.h | |
parent | 16283c0018a584a95a2b4a62522918049d945f75 (diff) | |
download | dodge-balls-ecceb4f7eebc8204836e164c4ff655e9abbc2636.zip dodge-balls-ecceb4f7eebc8204836e164c4ff655e9abbc2636.tar.gz dodge-balls-ecceb4f7eebc8204836e164c4ff655e9abbc2636.tar.bz2 |
src/defs.h: New macro definitions file
Diffstat (limited to 'src/defs.h')
-rw-r--r-- | src/defs.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/defs.h b/src/defs.h new file mode 100644 index 0000000..eefe893 --- /dev/null +++ b/src/defs.h @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2021 P. J. McDermott + * + * This file is part of Dodge Balls + * + * Dodge Balls 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 3 of the License, or + * (at your option) any later version. + * + * Dodge Balls 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 Dodge Balls. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef DB_DEFS_H_ +#define DB_DEFS_H_ + +#define DB_WINDOW_W 640 /* Window width */ +#define DB_WINDOW_H 480 /* Window height */ +#define DB_WINDOW_P 16 /* Window padding */ +#define DB_MARGIN 16 /* Margin between elements */ +#define DB_SCROLL_W 16 /* Scroll button width */ +#define DB_SCROLL_H DB_SCROLL_W / 2 /* Scroll button height */ +#define DB_SCROLL_S 16 /* Scrolling step */ + +#define DB_FONT_TITLE_SIZE 48 /* Title font size */ +#define DB_FONT_TEXT_SIZE 16 /* Regular text font size */ + +#define DB_COLOR_BACK_R 0x7F /* Background color */ +#define DB_COLOR_BACK_G 0x7F +#define DB_COLOR_BACK_B 0x7F +#define DB_COLOR_BACK_A 0xFF +#define DB_COLOR_FORE_R 0x00 /* Text/button color */ +#define DB_COLOR_FORE_G 0x00 +#define DB_COLOR_FORE_B 0xFF +#define DB_COLOR_FORE_A 0xFF +#define DB_COLOR_ACTV_R 0xFF /* Active/hovered color */ +#define DB_COLOR_ACTV_G 0xFF +#define DB_COLOR_ACTV_B 0xFF +#define DB_COLOR_ACTV_A 0xFF +#define DB_COLOR_DISA_R 0x3F /* Disabled color */ +#define DB_COLOR_DISA_G 0x3F +#define DB_COLOR_DISA_B 0x7F +#define DB_COLOR_DISA_A 0xFF + +#endif /* DB_DEFS_H_ */ |