Lines Matching refs:area
653 * Compute the drawable area, so that the text is centered on
1141 vt_is_cursor_in_area(const struct vt_device *vd, const term_rect_t *area)
1152 if (mx >= area->tr_end.tp_col ||
1153 mx + vd->vd_mcursor->width <= area->tr_begin.tp_col ||
1154 my >= area->tr_end.tp_row ||
1155 my + vd->vd_mcursor->height <= area->tr_begin.tp_row)
1163 term_rect_t area;
1175 area.tr_begin.tp_col = x / vf->vf_width;
1176 area.tr_begin.tp_row = y / vf->vf_height;
1177 area.tr_end.tp_col =
1179 area.tr_end.tp_row =
1185 * FIXME: This fake area needs to be revisited once the
1188 area.tr_begin.tp_col = x;
1189 area.tr_begin.tp_row = y;
1190 area.tr_end.tp_col = x + 2;
1191 area.tr_end.tp_row = y + 2;
1194 vtbuf_dirty(&vw->vw_buf, &area);
1199 vt_set_border(struct vt_device *vd, const term_rect_t *area,
1208 if (area->tr_begin.tp_row > 0)
1210 area->tr_begin.tp_row - 1, 1, c);
1213 if (area->tr_begin.tp_col > 0)
1214 drawrect(vd, 0, area->tr_begin.tp_row,
1215 area->tr_begin.tp_col - 1, area->tr_end.tp_row - 1, 1, c);
1218 if (area->tr_end.tp_col < vd->vd_width)
1219 drawrect(vd, area->tr_end.tp_col, area->tr_begin.tp_row,
1220 vd->vd_width - 1, area->tr_end.tp_row - 1, 1, c);
1223 if (area->tr_end.tp_row < vd->vd_height)
1224 drawrect(vd, 0, area->tr_end.tp_row, vd->vd_width - 1,
1660 * Compute the drawable area and move the mouse cursor inside
1661 * it, in case the new area is smaller than the previous one.