Skip to main content

caret_byte

Function caret_byte 

Source
fn caret_byte(ctx: &Context, id: Id, text: &str) -> usize
Expand description

Byte offset of the caret in text edit id over text (its end when the edit has none yet).