21 #ifndef __EDELIB_ICONLOADER_H__
22 #define __EDELIB_ICONLOADER_H__
24 #include "IconTheme.h"
26 class Fl_Shared_Image;
31 struct IconLoaderItem;
41 ICON_LOADER_OPTION_NO_WIDGET_REDRAW = (1 << 2),
96 void clear_items(
void);
100 Fl_Shared_Image* get_icon(
const char* name,
IconSizes sz,
IconContext ctx,
unsigned long options);
101 bool set_icon(
const char* name, Fl_Widget* widget,
IconSizes sz,
IconContext ctx,
unsigned long options);
102 void load_theme(
const char* name);
103 void reload_icons(
void);
104 void repoll_icons(
void);
105 const IconTheme* current_theme(
void)
const {
return curr_theme; }
114 static void init(
const char* theme);
119 static void init(
void) { IconLoader::init(IconTheme::default_theme_name()); }
124 static void shutdown(
void);
129 static bool inited(
void);
140 static void reload(
const char* theme);
151 static void repoll(
void);
167 unsigned long options = 0);
186 static bool set(Fl_Widget* widget,
const char* name,
IconSizes sz,
IconContext ctx = ICON_CONTEXT_ANY,
187 unsigned long options = 0);
200 static void set_fallback_icon(
const char* name);
205 static const char* get_fallback_icon(
void);
211 static const char** get_builtin_xpm_icon(
IconSizes sz);
Loads icons with IconTheme.
Definition: IconLoader.h:84
static void init(void)
Definition: IconLoader.h:119
IconSizes
Icon sizes to look for.
Definition: IconTheme.h:33
do not scale icon
Definition: IconLoader.h:42
Can be any icon context.
Definition: IconTheme.h:47
IconLoaderOptions
Settable options for IconLoader functions.
Definition: IconLoader.h:39
A (relatively simple) string implementation.
Definition: String.h:82
IconContext
Icon types to look for.
Definition: IconTheme.h:46
Finds named icon according to the given theme.
Definition: IconTheme.h:80
do not see given the path as absolute icon path
Definition: IconLoader.h:40