Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
icon-lookup.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause */
9
10#ifndef DUNST_ICON_LOOKUP_H
11#define DUNST_ICON_LOOKUP_H
12
13struct icon_theme {
14 char *name;
15 char *location; // full path to the theme
16 char *subdir_theme; // name of the directory in which the theme is located
17
18 int inherits_count;
19 int *inherits_index;
20
21 int dirs_count;
22 struct icon_theme_dir *dirs;
23};
24
25enum theme_dir_type { THEME_DIR_FIXED, THEME_DIR_SCALABLE, THEME_DIR_THRESHOLD };
26
28 char *name;
29 int size;
30 int scale;
31 int min_size, max_size;
32 int threshold;
33 enum theme_dir_type type;
34};
35
36
46int load_icon_theme(char *name);
47
48
56void add_default_theme(int theme_index);
57
68char *find_icon_in_theme(const char *name, int theme_index, int size);
69
70void set_default_theme(int theme_index);
71
83char *find_icon_path(const char *name, int size);
84
88void free_all_themes(void);
89
90#endif
int load_icon_theme(char *name)
Load a theme with given name from a standard icon directory.
void free_all_themes(void)
Free all icon themes.
void add_default_theme(int theme_index)
Add theme to the list of default themes.
char * find_icon_path(const char *name, int size)
Find icon of specified size in the default theme or an inherited theme.
char * find_icon_in_theme(const char *name, int theme_index, int size)
Find icon of specified size in selected theme.