1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Fix documentation

* theme
* view
* textbox
This commit is contained in:
Dave Davenport 2018-06-12 12:16:33 +02:00
parent b8592f8b99
commit 32b45c2d10
3 changed files with 18 additions and 2 deletions

View file

@ -283,7 +283,7 @@ Property *rofi_theme_find_property ( ThemeWidget *widget, PropertyType type, con
/**
* @param widget The widget to query
* @param property The property to query.
* @param pad The default value.
* @param defaults The default value.
*
* Obtain list of elements (strings) of the widget.
*

View file

@ -46,6 +46,7 @@
#include <cairo.h>
#include <cairo-xcb.h>
/** Indicated we understand the startup notification api is not yet stable.*/
#define SN_API_NOT_YET_FROZEN
#include <libsn/sn.h>
#include "rofi.h"
@ -552,20 +553,33 @@ static RofiViewState * __rofi_view_state_create ( void )
return g_malloc0 ( sizeof ( RofiViewState ) );
}
/**
* Thread state for workers started for the view.
*/
typedef struct _thread_state_view
{
/** Generic thread state. */
thread_state st;
/** Condition. */
GCond *cond;
/** Lock for condition. */
GMutex *mutex;
/** Count that is protected by lock. */
unsigned int *acount;
/** Current state. */
RofiViewState *state;
/** Start row for this worker. */
unsigned int start;
/** Stop row for this worker. */
unsigned int stop;
/** Rows processed. */
unsigned int count;
/** Pattern input to filter. */
const char *pattern;
/** Length of pattern. */
glong plen;
} thread_state_view;

View file

@ -41,6 +41,7 @@
#include "theme.h"
/** The space reserved for the DOT when enabling multi-select. */
#define DOT_OFFSET 15
static void textbox_draw ( widget *, cairo_t * );
@ -890,7 +891,7 @@ int textbox_get_font_width ( const textbox *tb )
return rect.width + rect.x;
}
/** Caching for the expected character height. */
/** Caching for the estimated character height. (em) */
static double char_height = -1;
double textbox_get_estimated_char_height ( void )
{
@ -912,6 +913,7 @@ double textbox_get_estimated_char_width ( void )
return char_width;
}
/** Cache storing the estimated width of a digit (ch). */
static double ch_width = -1;
double textbox_get_estimated_ch ( void )
{