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);
182 float radius = ((width < height) ? width : height) / 2;
185 cairo_new_sub_path(draw);
186 cairo_arc(draw, x + width - radius, y + radius, radius, -G_PI_2, 0);
187 cairo_arc(draw, x + width - radius, y + height - radius, radius, 0, G_PI_2);
188 cairo_arc(draw, x + radius, y + height - radius, radius, G_PI_2, G_PI);
189 cairo_arc(draw, x + radius, y + radius, radius, G_PI, 1.5 * G_PI);
190 cairo_close_path(draw);
MouseBindingMouseDefaultAction
struct _listview listview
void listview_set_selected(listview *lv, unsigned int selected)
@ ROFI_ORIENTATION_HORIZONTAL
int distance_get_pixel(RofiDistance d, RofiOrientation ori)
int rofi_theme_get_boolean(const widget *wid, const char *property, int def)
RofiDistance rofi_theme_get_distance(const widget *wid, const char *property, int def)
void rofi_theme_get_color(const widget *wid, const char *property, cairo_t *d)