Back to index

gcompris  8.2.2
skin.h
Go to the documentation of this file.
00001 /* gcompris - skin.h
00002  *
00003  * Copyright (C) 2003 GCompris Developpement Team
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with this program; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019  
00020 #ifndef SKIN_H
00021 #define SKIN_H
00022 
00023 #include <gdk-pixbuf/gdk-pixbuf.h>
00024 #include "gcompris.h"
00025 
00026 extern guint32 gc_skin_color_title;
00027 extern guint32 gc_skin_color_text_button;
00028 extern guint32 gc_skin_color_content;
00029 extern guint32 gc_skin_color_subtitle;
00030 extern guint32 gc_skin_color_shadow;
00031 
00032 extern gchar* gc_skin_font_title;
00033 extern gchar* gc_skin_font_subtitle;
00034 extern gchar* gc_skin_font_content;
00035 
00036 extern gchar* gc_skin_font_board_tiny;
00037 extern gchar* gc_skin_font_board_small;
00038 extern gchar* gc_skin_font_board_medium;
00039 extern gchar* gc_skin_font_board_big;
00040 extern gchar* gc_skin_font_board_big_bold;
00041 extern gchar* gc_skin_font_board_fixed;
00042 extern gchar* gc_skin_font_board_title;
00043 extern gchar* gc_skin_font_board_title_bold;
00044 extern gchar* gc_skin_font_board_huge;
00045 extern gchar* gc_skin_font_board_huge_bold;
00046 
00047 
00048 gchar         *gc_skin_image_get(gchar *imagename);
00049 GdkPixbuf     *gc_skin_pixmap_load(char *pixmapfile);
00050 
00051 void            gc_skin_load (gchar* skin);
00052 void            gc_skin_free (void);
00053 
00054 guint32         gc_skin_get_color_default(gchar* id, guint32 def);
00055 void          gc_skin_get_gdkcolor_default(gchar* id, guint32 def, GdkColor *gdkcolor);
00056 gchar*          gc_skin_get_font_default(gchar* id, gchar* def);
00057 guint32              gc_skin_get_number_default(gchar* id, guint32 def);
00058 
00059 #define gc_skin_get_gdkcolor(id, gdkcolor) gc_skin_get_gdkcolor_default(id, 0x0D0DFA00, gdkcolor)
00060 #define gc_skin_get_color(id)     gc_skin_get_color_default(id, 0x0D0DFA00)
00061 #define gc_skin_get_font(id)      gc_skin_get_font_default(id, "Sans 12")
00062 #define gc_skin_get_number(id)    gc_skin_get_number_default(id, 0)
00063 
00064 #endif