Lines Matching refs:max

122 		r.max.x = cp->iargs[3];  in groupctl()
123 r.max.y = cp->iargs[4]; in groupctl()
206 r.max = Pt(_Ctlmaxsize, _Ctlmaxsize); in groupctl()
220 r.max.x = cp->iargs[3]; in groupctl()
221 r.max.y = cp->iargs[4]; in groupctl()
226 … if(r.min.x<=0 || r.min.y<=0 || r.max.x<=0 || r.max.y<=0 || r.max.x < r.min.x || r.max.y < r.min.y) in groupctl()
321 p1 = Pt(g->r.max.x, m->xy.y); in groupmouse()
326 p1 = Pt(m->xy.x, g->r.max.y); in groupmouse()
450 if (q->size.min.x == 0 || q->size.min.y == 0 || q->size.max.x == 0 || q->size.max.y == 0) in groupsize()
460 r.max.x += q->size.max.x + g->border; in groupsize()
462 r.max.x = q->size.max.x; in groupsize()
464 if (r.max.y < q->size.max.y) r.max.y = q->size.max.y; in groupsize()
468 if (r.max.x < q->size.max.x) r.max.x = q->size.max.x; in groupsize()
474 r.max.y += q->size.max.y + g->border; in groupsize()
476 r.max.y = q->size.max.y; in groupsize()
480 if (r.max.x < q->size.max.x) r.max.x = q->size.max.x; in groupsize()
482 if (r.max.y < q->size.max.y) r.max.y = q->size.max.y; in groupsize()
509 if (g->kids[i]->size.max.x < wid) in boxboxresize()
510 wid = g->kids[i]->size.max.x; in boxboxresize()
529 rr.max.y = rr.min.y + g->separation+hpad; in boxboxresize()
535 rr.max.x = rr.min.x + g->separation+wpad; in boxboxresize()
554 r.max.x = r.min.x + g->size.min.x; in columnresize()
558 r.max.y = r.min.y + g->size.min.y; in columnresize()
566 if(debug) fprint(2, "[%q]: %d⋯%d\t", q->name, q->size.min.y, q->size.max.y); in columnresize()
569 p[i] = q->size.max.y - q->size.min.y; in columnresize()
577 if (y >= g->size.max.y - g->size.min.y) { in columnresize()
581 y -= g->size.max.y - g->size.min.y; in columnresize()
586 t = p[i] * y/(g->size.max.y - g->size.min.y); in columnresize()
601 g->separators[i].max.x = r.max.x; in columnresize()
608 g->separators[i-1].max.y = rr.min.y; in columnresize()
610 rr.max.y = r.min.y + j; in columnresize()
612 g->separators[i].min.y = rr.max.y; in columnresize()
633 r.max.x = r.min.x + g->size.min.x; in rowresize()
638 r.max.y = r.min.y + g->size.min.y; in rowresize()
645 if(debug) fprint(2, "[%q]: %d⋯%d\t", q->name, q->size.min.x, q->size.max.x); in rowresize()
648 p[i] = q->size.max.x - q->size.min.x; in rowresize()
656 if (x >= g->size.max.x - g->size.min.x) { in rowresize()
657 if (debug) fprint(2, "max: %d > %d - %d", x, g->size.max.x, g->size.min.x); in rowresize()
661 x -= g->size.max.x - g->size.min.x; in rowresize()
663 if (debug) fprint(2, "divvie up: %d < %d - %d", x, g->size.max.x, g->size.min.x); in rowresize()
667 t = p[i] * x/(g->size.max.x - g->size.min.x); in rowresize()
682 g->separators[i].max.y = r.max.y; in rowresize()
689 g->separators[i-1].max.x = rr.min.x; in rowresize()
691 rr.max.x = r.min.x + j; in rowresize()
693 g->separators[i].min.x = rr.max.x; in rowresize()
719 if (x > g->size.max.x) { in stackresize()
720 x = (x - g->size.max.x)/2; in stackresize()
722 r.max.x -= x; in stackresize()
724 if (y > g->size.max.y) { in stackresize()
725 y = (y - g->size.max.y)/2; in stackresize()
727 r.max.y -= y; in stackresize()