Lines Matching refs:end

24  * A cursor is a selection where the start and end are at the same offset.
123 int end = getSelectionEnd(text);
125 if (start != end) {
126 int min = Math.min(start, end);
127 int max = Math.max(start, end);
137 int line = layout.getLineForOffset(end);
144 float h = layout.getPrimaryHorizontal(end);
164 int end = getSelectionEnd(text);
166 if (start != end) {
167 int min = Math.min(start, end);
168 int max = Math.max(start, end);
178 int line = layout.getLineForOffset(end);
185 float h = layout.getPrimaryHorizontal(end);
206 int end = getSelectionEnd(text);
208 if (start != end) {
209 setSelection(text, chooseHorizontal(layout, -1, start, end));
212 int to = layout.getOffsetToLeftOf(end);
214 if (to != end) {
231 int end = getSelectionEnd(text);
233 if (start != end) {
234 setSelection(text, chooseHorizontal(layout, 1, start, end));
237 int to = layout.getOffsetToRightOf(end);
239 if (to != end) {
249 * Move the selection end to the buffer offset physically above
250 * the current selection end.
253 int end = getSelectionEnd(text);
254 int line = layout.getLineForOffset(end);
261 float h = layout.getPrimaryHorizontal(end);
269 } else if (end != 0) {
278 * Move the selection end to the buffer offset physically below
279 * the current selection end.
282 int end = getSelectionEnd(text);
283 int line = layout.getLineForOffset(end);
290 float h = layout.getPrimaryHorizontal(end);
298 } else if (end != text.length()) {
307 * Move the selection end to the buffer offset physically to the left of
308 * the current selection end.
311 int end = getSelectionEnd(text);
312 int to = layout.getOffsetToLeftOf(end);
314 if (to != end) {
323 * Move the selection end to the buffer offset physically to the right of
324 * the current selection end.
327 int end = getSelectionEnd(text);
328 int to = layout.getOffsetToRightOf(end);
330 if (to != end) {
406 int end = layout.getLineEnd(line);
409 return end;
411 return end - 1;
445 // This only checks at one end, but it's not clear what the