File: theme.h

package info (click to toggle)
gtkatlantic 0.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,144 kB
  • ctags: 863
  • sloc: sh: 10,807; ansic: 7,915; xml: 188; makefile: 94
file content (49 lines) | stat: -rw-r--r-- 1,731 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 *     gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
 *
 *
 *  Copyright © 2002-2015 Sylvain Rochet
 *
 *  gtkatlantic 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; see the file COPYING. If not, see
 *  <http://www.gnu.org/licenses/>.
 */

#ifndef THEME_H
#define THEME_H

#include <gtk/gtk.h>
#include <libxml/parser.h>

#define THEME_FILE_SECTION_GENERAL       10
#define THEME_FILE_SECTION_CARDS         20
#define THEME_FILE_SECTION_TOKEN_GROUP   30
#define THEME_FILE_SECTION_HOUSE_GROUP   40
#define THEME_FILE_SECTION_STAR_GROUP    50
#define THEME_FILE_SECTION_BOARD_GROUP   60
#define THEME_FILE_SECTION_ESTATE_GROUP  70


void     theme_build_database();
gboolean theme_get_valid_slot(guint32 *themeslot);
void     theme_del_entry(guint32 slot);
void     theme_add_entry(gchar *path);
void     theme_build_selection_win();
void     theme_fill_selection_list();
void     theme_preview_free();
void     theme_display(gint32 themeid);
guint8*  theme_preview_read(gint32 themeid, guint32 *width, guint32 *height);
void     theme_load(gint32 themeid);
void     on_theme_preview_draw(GtkWidget *widget, cairo_t *cr, gpointer data);

#endif /* THEME_H */