Lines Matching refs:rect

50 static void erase(VTermState *state, VTermRect rect, int selective)
53 if((*state->callbacks->erase)(rect, selective, state->cbdata))
81 static void scroll(VTermState *state, VTermRect rect, int downward, int rightward)
87 if(rect.start_col == 0 && rect.end_col == state->cols && rightward == 0) {
88 int height = rect.end_row - rect.start_row - abs(downward);
91 memmove(state->lineinfo + rect.start_row,
92 state->lineinfo + rect.start_row + downward,
95 memmove(state->lineinfo + rect.start_row - downward,
96 state->lineinfo + rect.start_row,
101 if((*state->callbacks->scrollrect)(rect, downward, rightward, state->cbdata))
105 vterm_scroll_rect(rect, downward, rightward,
112 VTermRect rect = {
119 scroll(state, rect, 1, 0);
310 VTermRect rect = {
316 scroll(state, rect, 0, -1);
407 VTermRect rect = {
414 scroll(state, rect, -1, 0);
913 VTermRect rect;
958 rect.start_row = state->pos.row;
959 rect.end_row = state->pos.row + 1;
960 rect.start_col = state->pos.col;
962 rect.end_col = SCROLLREGION_RIGHT(state);
964 rect.end_col = THISROWWIDTH(state);
966 scroll(state, rect, 0, -count);
1038 rect.start_row = state->pos.row; rect.end_row = state->pos.row + 1;
1039 rect.start_col = state->pos.col; rect.end_col = state->cols;
1040 if(rect.end_col > rect.start_col)
1041 erase(state, rect, selective);
1043 rect.start_row = state->pos.row + 1; rect.end_row = state->rows;
1044 rect.start_col = 0;
1045 for(row = rect.start_row; row < rect.end_row; row++)
1047 if(rect.end_row > rect.start_row)
1048 erase(state, rect, selective);
1052 rect.start_row = 0; rect.end_row = state->pos.row;
1053 rect.start_col = 0; rect.end_col = state->cols;
1054 for(row = rect.start_row; row < rect.end_row; row++)
1056 if(rect.end_col > rect.start_col)
1057 erase(state, rect, selective);
1059 rect.start_row = state->pos.row; rect.end_row = state->pos.row + 1;
1060 rect.end_col = state->pos.col + 1;
1061 if(rect.end_row > rect.start_row)
1062 erase(state, rect, selective);
1066 rect.start_row = 0; rect.end_row = state->rows;
1067 rect.start_col = 0; rect.end_col = state->cols;
1068 for(row = rect.start_row; row < rect.end_row; row++)
1070 erase(state, rect, selective);
1078 rect.start_row = state->pos.row;
1079 rect.end_row = state->pos.row + 1;
1084 rect.start_col = state->pos.col; rect.end_col = THISROWWIDTH(state); break;
1086 rect.start_col = 0; rect.end_col = state->pos.col + 1; break;
1088 rect.start_col = 0; rect.end_col = THISROWWIDTH(state); break;
1093 if(rect.end_col > rect.start_col)
1094 erase(state, rect, selective);
1101 rect.start_row = state->pos.row;
1102 rect.end_row = SCROLLREGION_BOTTOM(state);
1103 rect.start_col = SCROLLREGION_LEFT(state);
1104 rect.end_col = SCROLLREGION_RIGHT(state);
1106 scroll(state, rect, -count, 0);
1113 rect.start_row = state->pos.row;
1114 rect.end_row = SCROLLREGION_BOTTOM(state);
1115 rect.start_col = SCROLLREGION_LEFT(state);
1116 rect.end_col = SCROLLREGION_RIGHT(state);
1118 scroll(state, rect, count, 0);
1125 rect.start_row = state->pos.row;
1126 rect.end_row = state->pos.row + 1;
1127 rect.start_col = state->pos.col;
1129 rect.end_col = SCROLLREGION_RIGHT(state);
1131 rect.end_col = THISROWWIDTH(state);
1133 scroll(state, rect, 0, count);
1140 rect.start_row = state->scrollregion_top;
1141 rect.end_row = SCROLLREGION_BOTTOM(state);
1142 rect.start_col = SCROLLREGION_LEFT(state);
1143 rect.end_col = SCROLLREGION_RIGHT(state);
1145 scroll(state, rect, count, 0);
1152 rect.start_row = state->scrollregion_top;
1153 rect.end_row = SCROLLREGION_BOTTOM(state);
1154 rect.start_col = SCROLLREGION_LEFT(state);
1155 rect.end_col = SCROLLREGION_RIGHT(state);
1157 scroll(state, rect, -count, 0);
1164 rect.start_row = state->pos.row;
1165 rect.end_row = state->pos.row + 1;
1166 rect.start_col = state->pos.col;
1167 rect.end_col = state->pos.col + count;
1168 UBOUND(rect.end_col, THISROWWIDTH(state));
1170 erase(state, rect, 0);
1392 rect.start_row = state->scrollregion_top;
1393 rect.end_row = SCROLLREGION_BOTTOM(state);
1394 rect.start_col = state->pos.col;
1395 rect.end_col = SCROLLREGION_RIGHT(state);
1397 scroll(state, rect, 0, -count);
1404 rect.start_row = state->scrollregion_top;
1405 rect.end_row = SCROLLREGION_BOTTOM(state);
1406 rect.start_col = state->pos.col;
1407 rect.end_col = SCROLLREGION_RIGHT(state);
1409 scroll(state, rect, 0, count);
1686 VTermRect rect = { 0, state->rows, 0, state->cols };
1691 erase(state, rect, 0);
1743 VTermRect rect = {
1749 erase(state, rect, 0);