summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2018-06-12 11:10:46 +0200
committerDave Davenport <qball@gmpclient.org>2018-06-12 11:10:46 +0200
commit75811fd5a573cd570645d56ac91093b5722a291b (patch)
tree629957d4f1a8aa79ccca4c080749113d60e5a1d3
parent53ccfd37ced61eb026bef69a3af08542b834ed38 (diff)
[IconFetcher] Add some doxygen documentation
-rw-r--r--include/rofi-icon-fetcher.h35
1 files changed, 33 insertions, 2 deletions
diff --git a/include/rofi-icon-fetcher.h b/include/rofi-icon-fetcher.h
index 3198658e..e2b8329d 100644
--- a/include/rofi-icon-fetcher.h
+++ b/include/rofi-icon-fetcher.h
@@ -6,16 +6,47 @@
#include <cairo.h>
#include "nkutils-xdg-theme.h"
+/**
+ * @defgroup ICONFETCHER IconFetcher
+ * @ingroup HELPERS
+ *
+ * Small helper of to fetch icons. This makes use of the 'view' threadpool.
+ * @{
+ */
+
+/**
+ * Initialize the icon fetcher.
+ */
void rofi_icon_fetcher_init ( void );
-
+/**
+ * Destroy and free the memory used by the icon fetcher.
+ */
void rofi_icon_fetcher_destroy ( void );
+/**
+ * @param name The name of the icon to fetch.
+ * @param size The size of the icon to fetch.
+ *
+ * Query the icon-theme for icon with name and size.
+ * The returned icon will be the best match for the requested size, it should still be resized to the actual size.
+ *
+ * name can also be a full path, if prefixed with file://.
+ *
+ * @returns the uid identifying the request.
+ */
uint32_t rofi_icon_fetcher_query ( const char *name, const int size );
+/**
+ * @param uid The unique id representing the matching request.
+ *
+ * If the surface is used, the user should reference the surface.
+ *
+ * @returns the surface with the icon, NULL when not found.
+ */
cairo_surface_t * rofi_icon_fetcher_get ( const uint32_t uid );
-
+/* @} */
#endif // ROFI_ICON_FETCHER_H