Lines Matching defs:px

148 	u_int			 px, idx;
153 for (px = 0; px < gl->cellsize; px++) {
154 gce = &gl->celldata[px];
168 for (px = 0; px < gl->cellsize; px++) {
169 gce = &gl->celldata[px];
198 grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg)
201 struct grid_cell_entry *gce = &gl->celldata[px];
502 grid_get_cell1(struct grid_line *gl, u_int px, struct grid_cell *gc)
504 struct grid_cell_entry *gce = &gl->celldata[px];
538 grid_get_cell(struct grid *gd, u_int px, u_int py, struct grid_cell *gc)
541 px >= gd->linedata[py].cellsize)
544 grid_get_cell1(&gd->linedata[py], px, gc);
549 grid_set_cell(struct grid *gd, u_int px, u_int py, const struct grid_cell *gc)
557 grid_expand_line(gd, py, px + 1, 8);
560 if (px + 1 > gl->cellused)
561 gl->cellused = px + 1;
563 gce = &gl->celldata[px];
572 grid_set_padding(struct grid *gd, u_int px, u_int py)
574 grid_set_cell(gd, px, py, &grid_padding_cell);
579 grid_set_cells(struct grid *gd, u_int px, u_int py, const struct grid_cell *gc,
590 grid_expand_line(gd, py, px + slen, 8);
593 if (px + slen > gl->cellused)
594 gl->cellused = px + slen;
597 gce = &gl->celldata[px + i];
608 grid_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg)
616 if (px == 0 && nx == gd->sx) {
634 if (px > sx)
636 if (px + nx > sx)
637 ox = sx - px;
640 grid_expand_line(gd, yy, px + ox, 8); /* default bg first */
641 for (xx = px; xx < px + ox; xx++)
712 grid_move_cells(struct grid *gd, u_int dx, u_int px, u_int py, u_int nx,
718 if (nx == 0 || px == dx)
725 grid_expand_line(gd, py, px + nx, 8);
727 memmove(&gl->celldata[dx], &gl->celldata[px],
733 for (xx = px; xx < px + nx; xx++) {
1039 grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx,
1065 for (xx = px; xx < px + nx; xx++) {
1463 grid_wrap_position(struct grid *gd, u_int px, u_int py, u_int *wx, u_int *wy)
1475 if (px >= gd->linedata[yy].cellused)
1478 ax += px;
1485 grid_unwrap_position(struct grid *gd, u_int *px, u_int *py, u_int wx, u_int wy)
1512 *px = wx;
1521 u_int px;
1523 px = grid_get_line(gd, py)->cellsize;
1524 if (px > gd->sx)
1525 px = gd->sx;
1526 while (px > 0) {
1527 grid_get_cell(gd, px - 1, py, &gc);
1532 px--;
1534 return (px);