accesskit_atspi_common

Struct PlatformNode

source
pub struct PlatformNode { /* private fields */ }

Implementations§

source§

impl PlatformNode

source

pub fn name(&self) -> Result<String>

source

pub fn description(&self) -> Result<String>

source

pub fn relative(&self, id: NodeId) -> Self

source

pub fn root(&self) -> Result<PlatformRoot>

source

pub fn toolkit_name(&self) -> Result<String>

source

pub fn toolkit_version(&self) -> Result<String>

source

pub fn parent(&self) -> Result<NodeIdOrRoot>

source

pub fn child_count(&self) -> Result<i32>

source

pub fn adapter_id(&self) -> usize

source

pub fn id(&self) -> NodeId

source

pub fn accessible_id(&self) -> Result<String>

source

pub fn child_at_index(&self, index: usize) -> Result<Option<NodeId>>

source

pub fn map_children<T, I>(&self, f: impl Fn(NodeId) -> I) -> Result<T>
where T: FromIterator<I>,

source

pub fn index_in_parent(&self) -> Result<i32>

source

pub fn role(&self) -> Result<AtspiRole>

source

pub fn localized_role_name(&self) -> Result<String>

source

pub fn state(&self) -> StateSet

source

pub fn attributes(&self) -> Result<HashMap<&'static str, String>>

source

pub fn supports_action(&self) -> Result<bool>

source

pub fn supports_component(&self) -> Result<bool>

source

pub fn supports_text(&self) -> Result<bool>

source

pub fn supports_value(&self) -> Result<bool>

source

pub fn interfaces(&self) -> Result<InterfaceSet>

source

pub fn n_actions(&self) -> Result<i32>

source

pub fn action_name(&self, index: i32) -> Result<String>

source

pub fn actions(&self) -> Result<Vec<AtspiAction>>

source

pub fn do_action(&self, index: i32) -> Result<bool>

source

pub fn contains(&self, x: i32, y: i32, coord_type: CoordType) -> Result<bool>

source

pub fn accessible_at_point( &self, x: i32, y: i32, coord_type: CoordType, ) -> Result<Option<NodeId>>

source

pub fn extents(&self, coord_type: CoordType) -> Result<AtspiRect>

source

pub fn layer(&self) -> Result<Layer>

source

pub fn grab_focus(&self) -> Result<bool>

source

pub fn scroll_to_point( &self, coord_type: CoordType, x: i32, y: i32, ) -> Result<bool>

source

pub fn character_count(&self) -> Result<i32>

source

pub fn caret_offset(&self) -> Result<i32>

source

pub fn string_at_offset( &self, offset: i32, granularity: Granularity, ) -> Result<(String, i32, i32)>

source

pub fn text(&self, start_offset: i32, end_offset: i32) -> Result<String>

source

pub fn set_caret_offset(&self, offset: i32) -> Result<bool>

source

pub fn text_attribute_value( &self, _offset: i32, _attribute_name: &str, ) -> Result<String>

source

pub fn text_attributes( &self, _offset: i32, ) -> Result<(HashMap<String, String>, i32, i32)>

source

pub fn default_text_attributes(&self) -> Result<HashMap<String, String>>

source

pub fn character_extents( &self, offset: i32, coord_type: CoordType, ) -> Result<AtspiRect>

source

pub fn offset_at_point( &self, x: i32, y: i32, coord_type: CoordType, ) -> Result<i32>

source

pub fn n_selections(&self) -> Result<i32>

source

pub fn selection(&self, selection_num: i32) -> Result<(i32, i32)>

source

pub fn add_selection(&self, start_offset: i32, end_offset: i32) -> Result<bool>

source

pub fn remove_selection(&self, selection_num: i32) -> Result<bool>

source

pub fn set_selection( &self, selection_num: i32, start_offset: i32, end_offset: i32, ) -> Result<bool>

source

pub fn range_extents( &self, start_offset: i32, end_offset: i32, coord_type: CoordType, ) -> Result<AtspiRect>

source

pub fn text_attribute_run( &self, _offset: i32, _include_defaults: bool, ) -> Result<(HashMap<String, String>, i32, i32)>

source

pub fn scroll_substring_to( &self, start_offset: i32, end_offset: i32, _: ScrollType, ) -> Result<bool>

source

pub fn scroll_substring_to_point( &self, start_offset: i32, end_offset: i32, coord_type: CoordType, x: i32, y: i32, ) -> Result<bool>

source

pub fn minimum_value(&self) -> Result<f64>

source

pub fn maximum_value(&self) -> Result<f64>

source

pub fn minimum_increment(&self) -> Result<f64>

source

pub fn current_value(&self) -> Result<f64>

source

pub fn set_current_value(&self, value: f64) -> Result<()>

Trait Implementations§

source§

impl Clone for PlatformNode

source§

fn clone(&self) -> PlatformNode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Hash for PlatformNode

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for PlatformNode

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for PlatformNode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more