Jonathan Gordon | b4a9564 | 2010-06-11 04:47:46 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id: tag_table.c 26346 2010-05-28 02:30:27Z jdgordon $ |
| 9 | * |
| 10 | * Copyright (C) 2010 Jonathan Gordon |
| 11 | * |
| 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License |
| 14 | * as published by the Free Software Foundation; either version 2 |
| 15 | * of the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
| 21 | |
| 22 | #include <stdio.h> |
| 23 | #include <stdlib.h> |
| 24 | #include <stdbool.h> |
| 25 | #include <string.h> |
| 26 | #include <ctype.h> |
| 27 | |
| 28 | #include "skin_parser.h" |
| 29 | #include "tag_table.h" |
Jonathan Gordon | 21cbdac | 2010-06-13 13:54:34 +0000 | [diff] [blame] | 30 | #ifndef SKIN_STRUCTS_H_ |
| 31 | #define SKIN_STRUCTS_H_ |
Jonathan Gordon | b4a9564 | 2010-06-11 04:47:46 +0000 | [diff] [blame] | 32 | struct skin |
| 33 | { |
Jonathan Gordon | b4a9564 | 2010-06-11 04:47:46 +0000 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | |
| 37 | struct progressbar { |
| 38 | enum skin_token_type type; |
| 39 | struct viewport *vp; |
| 40 | /* regular pb */ |
| 41 | short x; |
| 42 | /* >=0: explicitly set in the tag -> y-coord within the viewport |
| 43 | <0 : not set in the tag -> negated 1-based line number within |
| 44 | the viewport. y-coord will be computed based on the font height */ |
| 45 | short y; |
| 46 | short width; |
| 47 | short height; |
| 48 | bool follow_lang_direction; |
| 49 | /*progressbar image*/ |
| 50 | // struct bitmap bm; |
| 51 | bool have_bitmap_pb; |
| 52 | }; |
Jonathan Gordon | 21cbdac | 2010-06-13 13:54:34 +0000 | [diff] [blame] | 53 | |
Jonathan Gordon | 17c3484 | 2010-06-13 14:42:09 +0000 | [diff] [blame] | 54 | struct line { |
| 55 | unsigned update_mode; |
| 56 | bool eat_line_ending; |
| 57 | }; |
| 58 | |
Jonathan Gordon | 21cbdac | 2010-06-13 13:54:34 +0000 | [diff] [blame] | 59 | struct subline { |
| 60 | int timeout; |
| 61 | int current_line; |
| 62 | unsigned long last_change_tick; |
| 63 | }; |
| 64 | |
Jonathan Gordon | b49577b | 2010-06-14 10:00:22 +0000 | [diff] [blame] | 65 | struct conditional { |
| 66 | int last_value; |
| 67 | }; |
| 68 | |
Jonathan Gordon | 21cbdac | 2010-06-13 13:54:34 +0000 | [diff] [blame] | 69 | |
| 70 | #endif |