From ecceb4f7eebc8204836e164c4ff655e9abbc2636 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 19 Mar 2021 14:29:17 -0400 Subject: src/defs.h: New macro definitions file --- (limited to 'src/defs.h') 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 . + */ + +#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_ */ -- cgit v0.9.1