digitizer_display.h (1522B)
1 /* 2 This file is part of TALER cash2ecash 3 Copyright (C) 2026 GNUnet e.V. 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU Affero General Public License as 7 published by the Free Software Foundation, either version 3 of the 8 License, or (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU Affero General Public License for more details. 15 16 You should have received a copy of the GNU Affero General Public License 17 along with this program. If not, see <https://www.gnu.org/licenses/>. 18 */ 19 20 /** 21 * @file digitizer_display.c 22 * @brief runs screen and touch 23 * @author Reto Tellenbach 24 */ 25 26 #ifndef DIGITIZER_DISPLAY_H 27 #define DIGITIZER_DISPLAY_H 28 /** 29 * Button state used to recognise presses shoe user 30 * input feedback 31 */ 32 enum DIGITIZER_ButtonState 33 { 34 /** 35 * Button is not pressable, 36 * therfor grayed out 37 */ 38 DIGITIZER_BUTTON_UNACCESSABLE, 39 40 /** 41 * Button ready to be pressed 42 */ 43 DIGITIZER_BUTTON_READY, 44 45 /** 46 * Button is currently pressed, 47 * shown in a darker tone 48 */ 49 DIGITIZER_BUTTON_PRESSED, 50 }; 51 52 struct DIGITIZER_DisplayContext 53 { 54 char *status_text; 55 56 char *help_text; 57 58 enum DIGITIZER_ButtonState digitizing_btn; 59 60 enum DIGITIZER_ButtonState cancle_btn; 61 }; 62 #endif