Go to the documentation of this file.
29 #include <xkbcommon/xkbcommon.h>
38 #define DEFAULT_SCROLLBAR_WIDTH 8
63 short handle = sb->
widget.
h - r;
64 double sec = ( ( r ) / (
double) ( sb->
length - 1 ) );
65 short half_handle = handle / 2;
67 y = MIN ( MAX ( 0, y ), sb->
widget.
h - 2 * half_handle );
69 unsigned int sel = ( ( y ) / sec );
70 return MIN ( sel, sb->
length - 1 );
135 sb->
length = MAX ( 1u, max );
171 unsigned int handle = wid->
h - r;
172 double sec = ( ( r ) / (
double) ( sb->
length - 1 ) );
173 unsigned int height = handle;
174 unsigned int y = sb->
pos * sec;
176 y = MIN ( y, wh - handle );
178 height = MAX ( 2, height );
182 cairo_rectangle ( draw,
void rofi_theme_get_color(const widget *widget, const char *property, cairo_t *d)
int distance_get_pixel(RofiDistance d, RofiOrientation ori)
RofiDistance rofi_theme_get_distance(const widget *widget, const char *property, int def)
MouseBindingMouseDefaultAction
@ ROFI_ORIENTATION_HORIZONTAL
void listview_set_selected(listview *lv, unsigned int selected)