mirror of
https://github.com/lbonn/rofi
synced 2024-11-27 06:10:30 +00:00
441c511296
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool. * Make threadpool more generic usable. * Add generic icon fetcher, that caches icons. * Make DRUN use this fetcher. * Add icon widget. #809
21 lines
398 B
C
21 lines
398 B
C
#ifndef ROFI_ICON_FETCHER_H
|
|
#define ROFI_ICON_FETCHER_H
|
|
|
|
#include <glib.h>
|
|
#include <stdint.h>
|
|
#include <cairo.h>
|
|
#include "nkutils-xdg-theme.h"
|
|
|
|
void rofi_icon_fetcher_init ( void );
|
|
|
|
|
|
void rofi_icon_fetcher_destroy ( void );
|
|
|
|
|
|
uint32_t rofi_icon_fetcher_query ( const char *name, const int size );
|
|
|
|
|
|
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid );
|
|
|
|
|
|
#endif // ROFI_ICON_FETCHER_H
|