gtk4::subclass::accessible_text

Trait AccessibleTextImpl

Source
pub trait AccessibleTextImpl: WidgetImpl {
    // Provided methods
    fn attributes(
        &self,
        offset: u32,
    ) -> Vec<(AccessibleTextRange, GString, GString)> { ... }
    fn caret_position(&self) -> u32 { ... }
    fn contents(&self, start: u32, end: u32) -> Option<Bytes> { ... }
    fn contents_at(
        &self,
        offset: u32,
        granularity: AccessibleTextGranularity,
    ) -> Option<(u32, u32, Bytes)> { ... }
    fn default_attributes(&self) -> Vec<(GString, GString)> { ... }
    fn extents(&self, start: u32, end: u32) -> Option<Rect> { ... }
    fn offset(&self, point: &Point) -> Option<u32> { ... }
    fn selection(&self) -> Vec<AccessibleTextRange> { ... }
}
Available on crate feature v4_14 only.

Provided Methods§

Source

fn attributes( &self, offset: u32, ) -> Vec<(AccessibleTextRange, GString, GString)>

Source

fn caret_position(&self) -> u32

Source

fn contents(&self, start: u32, end: u32) -> Option<Bytes>

Source

fn contents_at( &self, offset: u32, granularity: AccessibleTextGranularity, ) -> Option<(u32, u32, Bytes)>

Source

fn default_attributes(&self) -> Vec<(GString, GString)>

Source

fn extents(&self, start: u32, end: u32) -> Option<Rect>

Available on crate feature v4_16 only.
Source

fn offset(&self, point: &Point) -> Option<u32>

Available on crate feature v4_16 only.
Source

fn selection(&self) -> Vec<AccessibleTextRange>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§