Enum conrod::widget::text_edit::Cursor [] [src]

pub enum Cursor {
    Idx(Index),
    Selection {
        start: Index,
        end: Index,
    },
}

The position of the Cursor over the text.

Variants

The cursor is at the given character index.

The cursor is a selection between these two indices.

Fields of Selection

The start is always the "anchor" point.

The end may be either greater or less than the start.

The end is always the logical cursor position, if one is required. For example, when selecting text using Shift+Right, end is moved.

Trait Implementations

impl Clone for Cursor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Cursor
[src]

impl Debug for Cursor
[src]

Formats the value using the given formatter.

impl PartialEq for Cursor
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.