21#ifndef __EDELIB_ICONLOADER_H__
22#define __EDELIB_ICONLOADER_H__
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()); }
167 unsigned long options = 0);
187 unsigned long options = 0);
Loads icons with IconTheme.
Definition: IconLoader.h:84
static const char * get_fallback_icon(void)
static void init(void)
Definition: IconLoader.h:119
static String get_path(const char *name, IconSizes sz, IconContext ctx=ICON_CONTEXT_ANY)
static bool set(Fl_Widget *widget, const char *name, IconSizes sz, IconContext ctx=ICON_CONTEXT_ANY, unsigned long options=0)
static const IconTheme * theme(void)
static Fl_Shared_Image * get(const char *name, IconSizes sz, IconContext ctx=ICON_CONTEXT_ANY, unsigned long options=0)
static void reload(const char *theme)
static void set_fallback_icon(const char *name)
static void init(const char *theme)
static void shutdown(void)
static const char ** get_builtin_xpm_icon(IconSizes sz)
Finds named icon according to the given theme.
Definition: IconTheme.h:80
A (relatively simple) string implementation.
Definition: String.h:82
IconLoaderOptions
Settable options for IconLoader functions.
Definition: IconLoader.h:39
@ ICON_LOADER_OPTION_NO_ICON_SCALE
do not scale icon
Definition: IconLoader.h:42
@ ICON_LOADER_OPTION_NO_ABSOLUTE_PATH
do not see given the path as absolute icon path
Definition: IconLoader.h:40
IconContext
Icon types to look for.
Definition: IconTheme.h:46
IconSizes
Icon sizes to look for.
Definition: IconTheme.h:33