Skip to main content

CaretSelectionMovement

Type Alias CaretSelectionMovement 

Source
pub type CaretSelectionMovement = CaretMovement<CaretSelection>;
Expand description

The result of moving a selection: the new anchor and caret, and the column to keep.

Aliased Type§

pub struct CaretSelectionMovement {
    pub result: CaretSelection,
    pub vertical_navigation_x: Option<Pixels>,
}

Fields§

§result: CaretSelection

The value at the requested destination.

§vertical_navigation_x: Option<Pixels>

The horizontal position, from the layout’s left edge, to keep across consecutive vertical movements. Pass it back in on the next move so the caret keeps its column.