[Widget::Icon] Fix doxygen documentation in header file.

This commit is contained in:
Dave Davenport 2018-06-12 11:28:31 +02:00
parent 75811fd5a5
commit c856c1a8ab
3 changed files with 29 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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." );