Lines Matching refs:end

24  * A cursor is a selection where the start and end are at the same offset.
124 int end = getSelectionEnd(text);
126 if (start != end) {
127 int min = Math.min(start, end);
128 int max = Math.max(start, end);
138 int line = layout.getLineForOffset(end);
145 float h = layout.getPrimaryHorizontal(end);
153 } else if (end != 0) {
164 * offset, to the end of the buffer if it is on the bottom line but
165 * not at the end, or return false if the cursor is already at the
166 * end of the buffer.
170 int end = getSelectionEnd(text);
172 if (start != end) {
173 int min = Math.min(start, end);
174 int max = Math.max(start, end);
184 int line = layout.getLineForOffset(end);
191 float h = layout.getPrimaryHorizontal(end);
199 } else if (end != text.length()) {
215 int end = getSelectionEnd(text);
217 if (start != end) {
218 setSelection(text, chooseHorizontal(layout, -1, start, end));
221 int to = layout.getOffsetToLeftOf(end);
223 if (to != end) {
240 int end = getSelectionEnd(text);
242 if (start != end) {
243 setSelection(text, chooseHorizontal(layout, 1, start, end));
246 int to = layout.getOffsetToRightOf(end);
248 if (to != end) {
258 * Move the selection end to the buffer offset physically above
259 * the current selection end.
262 int end = getSelectionEnd(text);
263 int line = layout.getLineForOffset(end);
270 float h = layout.getPrimaryHorizontal(end);
278 } else if (end != 0) {
287 * Move the selection end to the buffer offset physically below
288 * the current selection end.
291 int end = getSelectionEnd(text);
292 int line = layout.getLineForOffset(end);
299 float h = layout.getPrimaryHorizontal(end);
307 } else if (end != text.length()) {
316 * Move the selection end to the buffer offset physically to the left of
317 * the current selection end.
320 int end = getSelectionEnd(text);
321 int to = layout.getOffsetToLeftOf(end);
323 if (to != end) {
332 * Move the selection end to the buffer offset physically to the right of
333 * the current selection end.
336 int end = getSelectionEnd(text);
337 int to = layout.getOffsetToRightOf(end);
339 if (to != end) {
415 int end = layout.getLineEnd(line);
418 return end;
420 return end - 1;
454 // This only checks at one end, but it's not clear what the