Lines Matching refs:area
1257 vt_is_cursor_in_area(const struct vt_device *vd, const term_rect_t *area) in vt_is_cursor_in_area() argument
1268 if (mx >= area->tr_end.tp_col || in vt_is_cursor_in_area()
1269 mx + vd->vd_mcursor->width <= area->tr_begin.tp_col || in vt_is_cursor_in_area()
1270 my >= area->tr_end.tp_row || in vt_is_cursor_in_area()
1271 my + vd->vd_mcursor->height <= area->tr_begin.tp_row) in vt_is_cursor_in_area()
1279 term_rect_t area; in vt_mark_mouse_position_as_dirty() local
1291 area.tr_begin.tp_col = x / vf->vf_width; in vt_mark_mouse_position_as_dirty()
1292 area.tr_begin.tp_row = y / vf->vf_height; in vt_mark_mouse_position_as_dirty()
1293 area.tr_end.tp_col = in vt_mark_mouse_position_as_dirty()
1295 area.tr_end.tp_row = in vt_mark_mouse_position_as_dirty()
1304 area.tr_begin.tp_col = x; in vt_mark_mouse_position_as_dirty()
1305 area.tr_begin.tp_row = y; in vt_mark_mouse_position_as_dirty()
1306 area.tr_end.tp_col = x + 2; in vt_mark_mouse_position_as_dirty()
1307 area.tr_end.tp_row = y + 2; in vt_mark_mouse_position_as_dirty()
1313 vd->vd_driver->vd_invalidate_text(vd, &area); in vt_mark_mouse_position_as_dirty()
1314 vtbuf_dirty(&vw->vw_buf, &area); in vt_mark_mouse_position_as_dirty()
1321 vt_set_border(struct vt_device *vd, const term_rect_t *area, in vt_set_border() argument
1330 if (area->tr_begin.tp_row > 0) in vt_set_border()
1332 area->tr_begin.tp_row - 1, 1, c); in vt_set_border()
1335 if (area->tr_begin.tp_col > 0) in vt_set_border()
1336 drawrect(vd, 0, area->tr_begin.tp_row, in vt_set_border()
1337 area->tr_begin.tp_col - 1, area->tr_end.tp_row - 1, 1, c); in vt_set_border()
1340 if (area->tr_end.tp_col < vd->vd_width) in vt_set_border()
1341 drawrect(vd, area->tr_end.tp_col, area->tr_begin.tp_row, in vt_set_border()
1342 vd->vd_width - 1, area->tr_end.tp_row - 1, 1, c); in vt_set_border()
1345 if (area->tr_end.tp_row < vd->vd_height) in vt_set_border()
1346 drawrect(vd, 0, area->tr_end.tp_row, vd->vd_width - 1, in vt_set_border()
1352 const struct vt_window *vw, const term_rect_t *area) in vt_flush_to_buffer() argument
1359 for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) { in vt_flush_to_buffer()
1360 for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; in vt_flush_to_buffer()
1392 const term_rect_t *area) in vt_bitblt_buffer() argument
1403 for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) { in vt_bitblt_buffer()
1404 for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; in vt_bitblt_buffer()
1435 drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width; in vt_bitblt_buffer()
1436 drawn_area.tr_begin.tp_row = area->tr_begin.tp_row * vf->vf_height; in vt_bitblt_buffer()
1437 drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf->vf_width; in vt_bitblt_buffer()
1438 drawn_area.tr_end.tp_row = area->tr_end.tp_row * vf->vf_height; in vt_bitblt_buffer()