Lines Matching refs:grid
27 * Grid data. This is the basic data structure that represents what is shown on
30 * A grid is a grid of cells (struct grid_cell). Lines are not allocated until
31 * cells in that line are written to. The grid is split into history and
34 * functions in this file work on absolute coordinates, grid-view.c has
38 /* Default grid cell data. */
44 * Padding grid cell data. Padding cells are the only zero width cell that
45 * appears in the grid - because of this, they are always extended cells.
51 /* Cleared grid cell data. */
189 grid_get_line(struct grid *gd, u_int line)
196 grid_adjust_lines(struct grid *gd, u_int lines)
203 grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg)
223 /* Check grid y position. */
225 grid_check_y(struct grid *gd, const char *from, u_int py)
251 /* Compare grid cells. Return 1 if equal, 0 if not. */
264 /* Set grid cell to a tab. */
277 grid_free_line(struct grid *gd, u_int py)
287 grid_free_lines(struct grid *gd, u_int py, u_int ny)
295 /* Create a new grid. */
296 struct grid *
299 struct grid *gd;
322 /* Destroy grid. */
324 grid_destroy(struct grid *gd)
335 grid_compare(struct grid *ga, struct grid *gb)
362 grid_trim_history(struct grid *gd, u_int ny)
374 grid_collect_history(struct grid *gd)
400 grid_remove_history(struct grid *gd, u_int ny)
416 grid_scroll_history(struct grid *gd, u_int bg)
433 grid_clear_history(struct grid *gd)
446 grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg)
480 grid_expand_line(struct grid *gd, u_int py, u_int sx, u_int bg)
504 grid_empty_line(struct grid *gd, u_int py, u_int bg)
511 /* Peek at grid line. */
513 grid_peek_line(struct grid *gd, u_int py)
562 grid_get_cell(struct grid *gd, u_int px, u_int py, struct grid_cell *gc)
573 grid_set_cell(struct grid *gd, u_int px, u_int py, const struct grid_cell *gc)
596 grid_set_padding(struct grid *gd, u_int px, u_int py)
603 grid_set_cells(struct grid *gd, u_int px, u_int py, const struct grid_cell *gc,
632 grid_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg)
672 grid_clear_lines(struct grid *gd, u_int py, u_int ny, u_int bg)
694 grid_move_lines(struct grid *gd, u_int dy, u_int py, u_int ny, u_int bg)
736 grid_move_cells(struct grid *gd, u_int dx, u_int px, u_int py, u_int nx,
1063 grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx,
1157 grid_duplicate_lines(struct grid *dst, u_int dy, struct grid *src, u_int sy,
1205 grid_reflow_add(struct grid *gd, u_int n)
1219 grid_reflow_move(struct grid *gd, struct grid_line *from)
1231 grid_reflow_join(struct grid *target, struct grid *gd, u_int sx, u_int yy,
1339 grid_reflow_split(struct grid *target, struct grid *gd, u_int sx, u_int yy,
1405 /* Reflow lines on grid to new width. */
1407 grid_reflow(struct grid *gd, u_int sx)
1409 struct grid *target;
1415 * Create a destination grid
1478 * Replace the old grid with the new.
1492 grid_wrap_position(struct grid *gd, u_int px, u_int py, u_int *wx, u_int *wy)
1514 grid_unwrap_position(struct grid *gd, u_int *px, u_int *py, u_int wx, u_int wy)
1547 grid_line_length(struct grid *gd, u_int py)
1568 grid_in_set(struct grid *gd, u_int px, u_int py, const char *set)