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§fn clone(&self) -> TextFieldLineRun
fn clone(&self) -> TextFieldLineRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Forget for TextFieldLineRun
impl Freeze for TextFieldLineRun
impl Move for TextFieldLineRun
impl RefUnwindSafe for TextFieldLineRun
impl Send for TextFieldLineRunwhere
RawVecInner: Send,
impl Sync for TextFieldLineRunwhere
RawVecInner: Sync,
impl Unpin for TextFieldLineRun
impl UnsafeUnpin for TextFieldLineRun
impl UnwindSafe for TextFieldLineRunwhere
RawVecInner: UnwindSafe,
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