1 /* Copyright (c) 2003-2014 Xfce Development Team 2 * 3 * This program is free software; you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation; either version 2 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program; if not, write to the Free Software 15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * Boston, MA 02110-1301, USA. 17 */ 18 19 #ifndef __WEATHER_ICON_H__ 20 #define __WEATHER_ICON_H__ 21 22 G_BEGIN_DECLS 23 24 typedef enum { 25 SYMBOL_NODATA = 0, 26 SYMBOL_SUN, 27 SYMBOL_LIGHTCLOUD, 28 SYMBOL_PARTLYCLOUD, 29 SYMBOL_CLOUD, 30 SYMBOL_LIGHTRAINSUN, 31 SYMBOL_LIGHTRAINTHUNDERSUN, 32 SYMBOL_SLEETSUN, 33 SYMBOL_SNOWSUN, 34 SYMBOL_LIGHTRAIN, 35 SYMBOL_RAIN, 36 SYMBOL_RAINTHUNDER, 37 SYMBOL_SLEET, 38 SYMBOL_SNOW, 39 SYMBOL_SNOWTHUNDER, 40 SYMBOL_FOG, 41 SYMBOL_SUNPOLAR, 42 SYMBOL_LIGHTCLOUDPOLAR, 43 SYMBOL_LIGHTRAINSUNPOLAR, 44 SYMBOL_SNOWSUNPOLAR, 45 SYMBOL_SLEETSUNTHUNDER, 46 SYMBOL_SNOWSUNTHUNDER, 47 SYMBOL_LIGHTRAINTHUNDER, 48 SYMBOL_SLEETTHUNDER, 49 SYMBOL_COUNT 50 } symbol_ids; 51 52 typedef struct { 53 gchar *dir; 54 gchar *name; 55 gchar *author; 56 gchar *description; 57 gchar *license; 58 GArray *missing_icons; 59 } icon_theme; 60 61 62 GdkPixbuf *get_icon(const icon_theme *theme, 63 const gchar *icon, 64 gint size, 65 gboolean night); 66 67 icon_theme *icon_theme_load_info(const gchar *dir); 68 69 icon_theme *icon_theme_load(const gchar *dir); 70 71 gchar *get_user_icons_dir(void); 72 73 GArray *find_icon_themes(void); 74 75 icon_theme *icon_theme_copy(icon_theme *src); 76 77 void icon_theme_free(icon_theme *theme); 78 79 const gchar *get_symbol_name (gint idx); 80 81 G_END_DECLS 82 83 #endif 84