1 /* Conky, a system monitor, based on torsmo
3 * Any original torsmo code is licensed under the BSD license
5 * All code written since the fork of torsmo is licensed under the GPL
7 * Please see COPYING for details
9 * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
10 * Copyright (c) 2005-2008 Brenden Matthews, Philip Kovacs, et. al.
12 * All rights reserved.
14 * This program is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program. If not, see <http://www.gnu.org/licenses/>.
30 /* special stuff in text_buffer */
32 #define SPECIAL_CHAR '\x01'
34 /* why 256? cause an array of more then 256 doubles seems excessive,
35 * and who needs that kind of precision anyway? */
36 #define MAX_GRAPH_DEPTH 256
38 //don't use spaces in LOGGRAPH or NORMGRAPH if you change them
39 #define LOGGRAPH "log"
40 #define NORMGRAPH "normal"
69 unsigned long first_colour; // for graph gradient
70 unsigned long last_colour;
74 /* direct access to the registered specials (FIXME: bad encapsulation) */
75 extern struct special_t *specials;
76 extern unsigned int special_count;
78 /* max number of specials allowed (TODO: use linked list instead) */
79 extern unsigned int max_specials;
81 /* scanning special arguments */
82 const char *scan_bar(const char *, int *, int *);
83 char *scan_font(const char *);
84 char *scan_graph(const char *, int *, int *, unsigned int *,
85 unsigned int *, unsigned int *, char *);
87 /* printing specials */
88 void new_bar(char *, int, int, int);
89 void new_font(char *, char *);
90 void new_graph(char *, int, int, unsigned int,
91 unsigned int, double, int, int, char);
92 void new_hr(char *, int);
93 void new_stippled_hr(char *, int, int);
94 void new_fg(char *, long);
95 void new_bg(char *, long);
96 void new_outline(char *, long);
97 void new_offset(char *, long);
98 void new_voffset(char *, long);
99 void new_alignr(char *, long);
100 void new_alignc(char *, long);
101 void new_goto(char *, long);
102 void new_tab(char *, int, int);
104 #endif /* _SPECIALS_H */