33 #include <xkbcommon/xkbcommon.h>
38 #define DEFAULT_SCROLLBAR_WIDTH 8
62 short handle = sb->
widget.
h - r;
63 double sec = ((r) / (
double)(sb->
length - 1));
64 short half_handle = handle / 2;
66 y = MIN(MAX(0, y), sb->
widget.
h - 2 * half_handle);
68 unsigned int sel = ((y) / sec);
69 return MIN(sel, sb->
length - 1);
79 G_GNUC_UNUSED gint x, gint y,
80 G_GNUC_UNUSED
void *user_data) {
133 sb->
length = MAX(1u, max);
166 unsigned int handle = wid->
h - r;
167 double sec = ((r) / (
double)(sb->
length - 1));
168 unsigned int height = handle;
169 unsigned int y = sb->
pos * sec;
171 y = MIN(y, wh - handle);
173 height = MAX(2, height);
MouseBindingMouseDefaultAction
void listview_set_selected(listview *lv, unsigned int selected)
@ ROFI_ORIENTATION_HORIZONTAL
RofiDistance rofi_theme_get_distance(const widget *widget, const char *property, int def)
int distance_get_pixel(RofiDistance d, RofiOrientation ori)
void rofi_theme_get_color(const widget *widget, const char *property, cairo_t *d)