Skip to main content

text_field_layout

Function text_field_layout 

Source
pub fn text_field_layout(
    value: &str,
    width: f32,
    height: f32,
    font_size: f32,
    soft_wrap: bool,
    scroll_y: f32,
) -> TextFieldLayout
Expand description

构建 TextField 视觉行布局(soft wrap 关闭时每条硬行只有一行)