[][src]Function druid::text::movement::movement

pub fn movement<T: EditableText + TextStorage>(
    m: Movement,
    s: Selection,
    layout: &TextLayout<T>,
    modify: bool
) -> Selection

Compute the result of movement on a selection.

returns a new selection representing the state after the movement.

If modify is true, only the 'active' edge (the end) of the selection should be changed; this is the case when the user moves with the shift key pressed.