36 return scrollable_h - thumb_h;
43 int thumbable_y = (sb->
rect[0][1] + sb->
inset) + thumb_h / 2;
45 return (
float)(yco - thumbable_y) / thumbable_h;
64 thumb_r[0][0] = sb->
rect[0][0] + sb->
inset;
65 thumb_r[1][0] = sb->
rect[1][0] - sb->
inset;
68 thumb_r[1][1] = thumb_r[0][1] + thumb_h;
MINLINE float clamp_f(float value, float min, float max)
MINLINE int clamp_i(int value, int min, int max)
int rect_contains_pt(int rect[2][2], int pt[2])
int rect_height(int rect[2][2])
void rect_copy(int dst[2][2], int src[2][2])
Read Guarded memory(de)allocation.
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
ccl_device_inline float2 fabs(const float2 &a)