Lines Matching refs:area

1267 vt_is_cursor_in_area(const struct vt_device *vd, const term_rect_t *area)  in vt_is_cursor_in_area()  argument
1278 if (mx >= area->tr_end.tp_col || in vt_is_cursor_in_area()
1279 mx + vd->vd_mcursor->width <= area->tr_begin.tp_col || in vt_is_cursor_in_area()
1280 my >= area->tr_end.tp_row || in vt_is_cursor_in_area()
1281 my + vd->vd_mcursor->height <= area->tr_begin.tp_row) in vt_is_cursor_in_area()
1289 term_rect_t area; in vt_mark_mouse_position_as_dirty() local
1301 area.tr_begin.tp_col = x / vf->vf_width; in vt_mark_mouse_position_as_dirty()
1302 area.tr_begin.tp_row = y / vf->vf_height; in vt_mark_mouse_position_as_dirty()
1303 area.tr_end.tp_col = in vt_mark_mouse_position_as_dirty()
1305 area.tr_end.tp_row = in vt_mark_mouse_position_as_dirty()
1314 area.tr_begin.tp_col = x; in vt_mark_mouse_position_as_dirty()
1315 area.tr_begin.tp_row = y; in vt_mark_mouse_position_as_dirty()
1316 area.tr_end.tp_col = x + 2; in vt_mark_mouse_position_as_dirty()
1317 area.tr_end.tp_row = y + 2; in vt_mark_mouse_position_as_dirty()
1323 vd->vd_driver->vd_invalidate_text(vd, &area); in vt_mark_mouse_position_as_dirty()
1324 vtbuf_dirty(&vw->vw_buf, &area); in vt_mark_mouse_position_as_dirty()
1331 vt_set_border(struct vt_device *vd, const term_rect_t *area, in vt_set_border() argument
1340 if (area->tr_begin.tp_row > 0) in vt_set_border()
1342 area->tr_begin.tp_row - 1, 1, c); in vt_set_border()
1345 if (area->tr_begin.tp_col > 0) in vt_set_border()
1346 drawrect(vd, 0, area->tr_begin.tp_row, in vt_set_border()
1347 area->tr_begin.tp_col - 1, area->tr_end.tp_row - 1, 1, c); in vt_set_border()
1350 if (area->tr_end.tp_col < vd->vd_width) in vt_set_border()
1351 drawrect(vd, area->tr_end.tp_col, area->tr_begin.tp_row, in vt_set_border()
1352 vd->vd_width - 1, area->tr_end.tp_row - 1, 1, c); in vt_set_border()
1355 if (area->tr_end.tp_row < vd->vd_height) in vt_set_border()
1356 drawrect(vd, 0, area->tr_end.tp_row, vd->vd_width - 1, in vt_set_border()
1362 const struct vt_window *vw, const term_rect_t *area) in vt_flush_to_buffer() argument
1369 for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) { in vt_flush_to_buffer()
1370 for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; in vt_flush_to_buffer()
1402 const term_rect_t *area) in vt_bitblt_buffer() argument
1413 for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) { in vt_bitblt_buffer()
1414 for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; in vt_bitblt_buffer()
1445 drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width; in vt_bitblt_buffer()
1446 drawn_area.tr_begin.tp_row = area->tr_begin.tp_row * vf->vf_height; in vt_bitblt_buffer()
1447 drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf->vf_width; in vt_bitblt_buffer()
1448 drawn_area.tr_end.tp_row = area->tr_end.tp_row * vf->vf_height; in vt_bitblt_buffer()