blob: 4fc333c5000e0b934674511abc754eb5b380442f [file] [log] [blame]
Jonathan Gordonb4a95642010-06-11 04:47:46 +00001/***************************************************************************
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 Gordon21cbdac2010-06-13 13:54:34 +000030#ifndef SKIN_STRUCTS_H_
31#define SKIN_STRUCTS_H_
Jonathan Gordonb4a95642010-06-11 04:47:46 +000032struct skin
33{
Jonathan Gordonb4a95642010-06-11 04:47:46 +000034};
35
36
37struct 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 Gordon21cbdac2010-06-13 13:54:34 +000053
Jonathan Gordon17c34842010-06-13 14:42:09 +000054struct line {
55 unsigned update_mode;
56 bool eat_line_ending;
57};
58
Jonathan Gordon21cbdac2010-06-13 13:54:34 +000059struct subline {
60 int timeout;
61 int current_line;
62 unsigned long last_change_tick;
63};
64
Jonathan Gordonb49577b2010-06-14 10:00:22 +000065struct conditional {
66 int last_value;
67};
68
Jonathan Gordon21cbdac2010-06-13 13:54:34 +000069
70#endif