X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=gui.h;fp=gui.h;h=97b99690938508a2d27eec1b60323f11b4d5fa0a;hb=6a52c8891d69e45389081a4400c7d3f1314be868;hp=0000000000000000000000000000000000000000;hpb=c39956768e5a7e4bc8c0124b216afbdadf3c0262;p=paraslash.git diff --git a/gui.h b/gui.h new file mode 100644 index 00000000..97b99690 --- /dev/null +++ b/gui.h @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2007 Andre Noll + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + */ + +/** \file gui.h symbols used by gui and gui_theme */ + +struct stat_item_data { + const char *prefix, *postfix; + unsigned x, y, len; + int fg, bg, align; +}; + +struct gui_theme { + const char *name; + const char *author; + int sb_fg, sb_bg; + int cmd_fg, cmd_bg; + int output_fg, output_bg; + int msg_fg, msg_bg; + int err_msg_fg, err_msg_bg; + int welcome_fg, welcome_bg; + int sep_fg, sep_bg; + const char *sep_str; + int default_fg, default_bg; + + int top_lines_default, top_lines_min; + int lines_min, cols_min; + struct stat_item_data data[NUM_STAT_ITEMS]; +}; + +void init_theme(int i, struct gui_theme *); +void next_theme(struct gui_theme *); +void prev_theme(struct gui_theme *); +#define LEFT 1 +#define RIGHT 2 +#define CENTER 3