Lines Matching defs:area

724 	 * Compute the drawable area, so that the text is centered on
1277 vt_is_cursor_in_area(const struct vt_device *vd, const term_rect_t *area)
1288 if (mx >= area->tr_end.tp_col ||
1289 mx + vd->vd_mcursor->width <= area->tr_begin.tp_col ||
1290 my >= area->tr_end.tp_row ||
1291 my + vd->vd_mcursor->height <= area->tr_begin.tp_row)
1299 term_rect_t area;
1311 area.tr_begin.tp_col = x / vf->vf_width;
1312 area.tr_begin.tp_row = y / vf->vf_height;
1313 area.tr_end.tp_col =
1315 area.tr_end.tp_row =
1321 * FIXME: This fake area needs to be revisited once the
1324 area.tr_begin.tp_col = x;
1325 area.tr_begin.tp_row = y;
1326 area.tr_end.tp_col = x + 2;
1327 area.tr_end.tp_row = y + 2;
1333 vd->vd_driver->vd_invalidate_text(vd, &area);
1334 vtbuf_dirty(&vw->vw_buf, &area);
1341 vt_set_border(struct vt_device *vd, const term_rect_t *area,
1350 if (area->tr_begin.tp_row > 0)
1352 area->tr_begin.tp_row - 1, 1, c);
1355 if (area->tr_begin.tp_col > 0)
1356 drawrect(vd, 0, area->tr_begin.tp_row,
1357 area->tr_begin.tp_col - 1, area->tr_end.tp_row - 1, 1, c);
1360 if (area->tr_end.tp_col < vd->vd_width)
1361 drawrect(vd, area->tr_end.tp_col, area->tr_begin.tp_row,
1362 vd->vd_width - 1, area->tr_end.tp_row - 1, 1, c);
1365 if (area->tr_end.tp_row < vd->vd_height)
1366 drawrect(vd, 0, area->tr_end.tp_row, vd->vd_width - 1,
1372 const struct vt_window *vw, const term_rect_t *area)
1379 for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) {
1380 for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col;
1412 const term_rect_t *area)
1423 for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) {
1424 for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col;
1455 drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width;
1456 drawn_area.tr_begin.tp_row = area->tr_begin.tp_row * vf->vf_height;
1457 drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf->vf_width;
1458 drawn_area.tr_end.tp_row = area->tr_end.tp_row * vf->vf_height;
2200 * Compute the drawable area and move the mouse cursor inside
2201 * it, in case the new area is smaller than the previous one.