Lines Matching defs:clip
71 #define clip(val_, min_, max_) min((max_), max((min_), (val_)))
1188 speed = clip(speed + amount, -1, 1);
1403 w->pointer.x = clip(w->pointer.x + dx, 0.0, w->width);
1404 w->pointer.y = clip(w->pointer.y + dy, 0.0, w->height);
1405 w->unaccelerated.x = clip(w->unaccelerated.x + dx_unaccel, 0.0, w->width);
1406 w->unaccelerated.y = clip(w->unaccelerated.y + dy_unaccel, 0.0, w->height);
1474 w->scroll.vy = clip(w->scroll.vy, 0, w->height);
1478 w->scroll.vy_discrete = clip(w->scroll.vy_discrete, 0, w->height);
1486 w->scroll.hx = clip(w->scroll.hx, 0, w->width);
1490 w->scroll.hx_discrete = clip(w->scroll.hx_discrete, 0, w->width);