#[repr(C)]pub struct KuiAccessRun {Show 16 fields
pub key: u64,
pub line: u32,
pub start: u32,
pub end: u32,
pub text: KuiStr,
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
pub char_count: u32,
pub char_lengths: *const u8,
pub char_positions: *const f32,
pub char_widths: *const f32,
pub word_start_count: u32,
pub word_starts: *const u8,
pub rtl: u32,
}Expand description
One laid-out run of an editor’s text (kui_access_runs): what a
screen reader reads by character and word. text ends with "\n"
(counted as a zero-width character) when the line continues into
another. Character positions are relative to x. Arrays and strings
are borrowed until the next kui_access_tree / kui_access_runs on
the context.
Fields§
§key: u64The run’s own id (a KuiAccessNode.anchor_run / focus_run, and
what kui_input_access_text takes).
line: u32The line it belongs to (a buffer line, or a KUI_ROLE_LINE ordinal for a custom editor) and its byte range in that line’s text.
start: u32§end: u32§text: KuiStr§x: f32§y: f32§w: f32§h: f32§char_count: u32§char_lengths: *const u8§char_positions: *const f32§char_widths: *const f32§word_start_count: u32§word_starts: *const u8§rtl: u32Trait Implementations§
Source§impl Clone for KuiAccessRun
impl Clone for KuiAccessRun
impl Copy for KuiAccessRun
Auto Trait Implementations§
impl !Send for KuiAccessRun
impl !Sync for KuiAccessRun
impl Freeze for KuiAccessRun
impl RefUnwindSafe for KuiAccessRun
impl Unpin for KuiAccessRun
impl UnsafeUnpin for KuiAccessRun
impl UnwindSafe for KuiAccessRun
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.