Lines Matching defs:cx
24 grid_reader_start(struct grid_reader *gr, struct grid *gd, u_int cx, u_int cy)
27 gr->cx = cx;
33 grid_reader_get_cursor(struct grid_reader *gr, u_int *cx, u_int *cy)
35 *cx = gr->cx;
58 if (wrap && gr->cx >= px && gr->cy < gr->gd->hsize + gr->gd->sy - 1) {
61 } else if (gr->cx < px) {
62 gr->cx++;
63 while (gr->cx < px) {
64 grid_get_cell(gr->gd, gr->cx, gr->cy, &gc);
67 gr->cx++;
78 while (gr->cx > 0) {
79 grid_get_cell(gr->gd, gr->cx, gr->cy, &gc);
82 gr->cx--;
84 if (gr->cx == 0 && gr->cy > 0 &&
89 } else if (gr->cx > 0)
90 gr->cx--;
101 while (gr->cx > 0) {
102 grid_get_cell(gr->gd, gr->cx, gr->cy, &gc);
105 gr->cx--;
117 while (gr->cx > 0) {
118 grid_get_cell(gr->gd, gr->cx, gr->cy, &gc);
121 gr->cx--;
135 gr->cx = 0;
151 gr->cx = gr->gd->sx;
153 gr->cx = grid_reader_line_length(gr);
165 while (gr->cx > *xx) {
183 return (grid_in_set(gr->gd, gr->cx, gr->cy, set));
214 gr->cx++;
220 gr->cx++;
228 gr->cx += width;
257 gr->cx++;
260 gr->cx++;
267 gr->cx++;
286 if (gr->cx > 0) {
287 gr->cx--;
300 if (stop_at_eol && gr->cx > 0) {
301 oldx = gr->cx;
302 gr->cx--;
305 gr->cx = oldx;
318 oldx = gr->cx;
320 if (gr->cx == 0) {
328 if (gr->cx > 0)
329 gr->cx--;
332 gr->cx = oldx;
357 px = gr->cx;
365 gr->cx = px;
387 xx = gr->cx + 1;
393 gr->cx = px - 1;
415 oldx = gr->cx;
426 gr->cx = px;
434 gr->cx = oldx;