From c856c1a8abb292b06bba4ef05a4338b6b4ad6832 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 12 Jun 2018 11:28:31 +0200 Subject: [PATCH] [Widget::Icon] Fix doxygen documentation in header file. --- include/css-colors.h | 21 +++++++++++++++++++++ include/widgets/icon.h | 4 ++++ source/rofi-icon-fetcher.c | 5 ++++- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/include/css-colors.h b/include/css-colors.h index 0c47b393..9dd36c92 100644 --- a/include/css-colors.h +++ b/include/css-colors.h @@ -1,12 +1,33 @@ #ifndef ROFI_INCLUDE_CSS_COLORS_H #define ROFI_INCLUDE_CSS_COLORS_H +/** + * @defgroup CSSCOLORS CssColors + * @ingroup HELPERS + * + * Lookup table for CSS 4.0 named colors. Like `Navo`. + * + * @{ + */ + +/** + * Structure of colors. + */ typedef struct CSSColor { + /** CSS name of the color. */ char *name; + /** BGRA 8 bit color components. */ uint8_t b, g, r, a; }CSSColor; +/** + * Array with all the named colors. Of type #CSSColor, there are #num_CSSColors items in this array. + */ extern const CSSColor CSSColors[]; +/** + * Number of named colors. + */ extern const unsigned int num_CSSColors; +/* @} */ #endif // ROFI_INCLUDE_CSS_COLORS_H diff --git a/include/widgets/icon.h b/include/widgets/icon.h index d2dfb1d2..315eda8a 100644 --- a/include/widgets/icon.h +++ b/include/widgets/icon.h @@ -58,6 +58,10 @@ icon * icon_create ( widget *parent, const char *name ); */ void icon_set_size ( widget *icon, const int size ); +/** + * @param icon The icon widget handle. + * @param surf The surface to display. + */ void icon_set_surface ( icon *icon, cairo_surface_t *surf ); /*@}*/ #endif // ROFI_ICON_H diff --git a/source/rofi-icon-fetcher.c b/source/rofi-icon-fetcher.c index f1038eca..615d3c61 100644 --- a/source/rofi-icon-fetcher.c +++ b/source/rofi-icon-fetcher.c @@ -32,6 +32,10 @@ #include "helper.h" #include "settings.h" +#include "xcb.h" +#include "keyb.h" +#include "view.h" + typedef struct { // Context for icon-themes. @@ -124,7 +128,6 @@ void rofi_icon_fetcher_destroy ( void ) g_free ( rofi_icon_fetcher_data ); } -void rofi_view_reload (); static void rofi_icon_fetcher_worker ( thread_state *sdata, G_GNUC_UNUSED gpointer user_data ) { g_debug ( "starting up icon fetching thread." );