pub struct TextFieldLineRun {
pub value: String,
pub start_char: usize,
pub bounds: Rect,
pub character_positions: Option<Vec<f32>>,
pub character_widths: Option<Vec<f32>>,
pub rtl: bool,
}Expand description
一条视觉行的无障碍文本数据(AccessKit TextRun)。
硬换行行尾包含 \n(AccessKit 要求换行符计入该行字符数);
character_positions 相对本行 bounds,RTL 从右缘起算。
Fields§
§value: String§start_char: usize本行首字符在完整 value 中的字符索引
bounds: Rect相对 TextField 左上角的逻辑像素边界
character_positions: Option<Vec<f32>>§character_widths: Option<Vec<f32>>§rtl: boolTrait Implementations§
Source§impl Clone for TextFieldLineRun
impl Clone for TextFieldLineRun
Source§impl Debug for TextFieldLineRun
impl Debug for TextFieldLineRun
Source§impl PartialEq for TextFieldLineRun
impl PartialEq for TextFieldLineRun
impl StructuralPartialEq for TextFieldLineRun
Auto Trait Implementations§
impl Freeze for TextFieldLineRun
impl RefUnwindSafe for TextFieldLineRun
impl Send for TextFieldLineRun
impl Sync for TextFieldLineRun
impl Unpin for TextFieldLineRun
impl UnsafeUnpin for TextFieldLineRun
impl UnwindSafe for TextFieldLineRun
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more