Skip to main content

TextInputState

Type Alias TextInputState 

Source
pub type TextInputState = State<f32>;

Aliased Type§

pub struct TextInputState {
    pub cursor: usize,
    pub anchor: usize,
    pub offset: Point<f32>,
    pub preferred_x: Option<f32>,
    pub upstream: bool,
    pub max_undos: usize,
    /* private fields */
}

Fields§

§cursor: usize§anchor: usize§offset: Point<f32>§preferred_x: Option<f32>§upstream: bool

keeps a cursor at a soft wrap on the line it ends until the next edit

§max_undos: usize