33#include <xkbcommon/xkbcommon.h>
38#define DEFAULT_SCROLLBAR_WIDTH 8
44 G_GNUC_UNUSED
const int width) {
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);
80 G_GNUC_UNUSED gint x, gint y,
81 G_GNUC_UNUSED
void *user_data) {
134 sb->
length = MAX(1u, max);
167 unsigned int handle = wid->
h - r;
168 double sec = ((r) / (
double)(sb->
length - 1));
169 unsigned int height = handle;
170 unsigned int y = sb->
pos * sec;
172 y = MIN(y, wh - handle);
174 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)