rofi/include/rofi-icon-fetcher.h
Dave Davenport 441c511296
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.
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
2018-06-09 19:13:57 +02:00

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