Struct atspi_proxies::text::TextProxy
source · pub struct TextProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> TextProxy<'p>
impl<'p> TextProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<TextProxy<'p>>
pub async fn new(conn: &Connection) -> Result<TextProxy<'p>>
Creates a new proxy with the default service and path.
sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self
, returning the underlying zbus::Proxy
.
sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy
.
sourcepub async fn add_selection(
&self,
start_offset: i32,
end_offset: i32,
) -> Result<bool>
pub async fn add_selection( &self, start_offset: i32, end_offset: i32, ) -> Result<bool>
AddSelection method
sourcepub async fn get_attribute_run(
&self,
offset: i32,
include_defaults: bool,
) -> Result<(HashMap<String, String>, i32, i32)>
pub async fn get_attribute_run( &self, offset: i32, include_defaults: bool, ) -> Result<(HashMap<String, String>, i32, i32)>
GetAttributeRun method
sourcepub async fn get_attribute_value(
&self,
offset: i32,
attribute_name: &str,
) -> Result<String>
pub async fn get_attribute_value( &self, offset: i32, attribute_name: &str, ) -> Result<String>
GetAttributeValue method
sourcepub async fn get_attributes(
&self,
offset: i32,
) -> Result<(HashMap<String, String>, i32, i32)>
pub async fn get_attributes( &self, offset: i32, ) -> Result<(HashMap<String, String>, i32, i32)>
GetAttributes method
sourcepub async fn get_bounded_ranges(
&self,
x: i32,
y: i32,
width: i32,
height: i32,
coord_type: CoordType,
x_clip_type: ClipType,
y_clip_type: ClipType,
) -> Result<Vec<(i32, i32, String, OwnedValue)>>
pub async fn get_bounded_ranges( &self, x: i32, y: i32, width: i32, height: i32, coord_type: CoordType, x_clip_type: ClipType, y_clip_type: ClipType, ) -> Result<Vec<(i32, i32, String, OwnedValue)>>
GetBoundedRanges method
sourcepub async fn get_character_at_offset(&self, offset: i32) -> Result<i32>
pub async fn get_character_at_offset(&self, offset: i32) -> Result<i32>
GetCharacterAtOffset method
sourcepub async fn get_character_extents(
&self,
offset: i32,
coord_type: CoordType,
) -> Result<(i32, i32, i32, i32)>
pub async fn get_character_extents( &self, offset: i32, coord_type: CoordType, ) -> Result<(i32, i32, i32, i32)>
GetCharacterExtents method
sourcepub async fn get_default_attribute_set(&self) -> Result<HashMap<String, String>>
pub async fn get_default_attribute_set(&self) -> Result<HashMap<String, String>>
GetDefaultAttributeSet method
sourcepub async fn get_default_attributes(&self) -> Result<HashMap<String, String>>
pub async fn get_default_attributes(&self) -> Result<HashMap<String, String>>
GetDefaultAttributes method
sourcepub async fn get_nselections(&self) -> Result<i32>
pub async fn get_nselections(&self) -> Result<i32>
GetNSelections method
sourcepub async fn get_offset_at_point(
&self,
x: i32,
y: i32,
coord_type: CoordType,
) -> Result<i32>
pub async fn get_offset_at_point( &self, x: i32, y: i32, coord_type: CoordType, ) -> Result<i32>
GetOffsetAtPoint method
sourcepub async fn get_range_extents(
&self,
start_offset: i32,
end_offset: i32,
coord_type: CoordType,
) -> Result<(i32, i32, i32, i32)>
pub async fn get_range_extents( &self, start_offset: i32, end_offset: i32, coord_type: CoordType, ) -> Result<(i32, i32, i32, i32)>
GetRangeExtents method
sourcepub async fn get_selection(&self, selection_num: i32) -> Result<(i32, i32)>
pub async fn get_selection(&self, selection_num: i32) -> Result<(i32, i32)>
GetSelection method
sourcepub async fn get_string_at_offset(
&self,
offset: i32,
granularity: Granularity,
) -> Result<(String, i32, i32)>
pub async fn get_string_at_offset( &self, offset: i32, granularity: Granularity, ) -> Result<(String, i32, i32)>
GetStringAtOffset method
sourcepub async fn get_text(
&self,
start_offset: i32,
end_offset: i32,
) -> Result<String>
pub async fn get_text( &self, start_offset: i32, end_offset: i32, ) -> Result<String>
GetText method
sourcepub async fn get_text_after_offset(
&self,
offset: i32,
type_: u32,
) -> Result<(String, i32, i32)>
pub async fn get_text_after_offset( &self, offset: i32, type_: u32, ) -> Result<(String, i32, i32)>
GetTextAfterOffset method
sourcepub async fn get_text_at_offset(
&self,
offset: i32,
type_: u32,
) -> Result<(String, i32, i32)>
pub async fn get_text_at_offset( &self, offset: i32, type_: u32, ) -> Result<(String, i32, i32)>
GetTextAtOffset method
sourcepub async fn get_text_before_offset(
&self,
offset: i32,
type_: u32,
) -> Result<(String, i32, i32)>
pub async fn get_text_before_offset( &self, offset: i32, type_: u32, ) -> Result<(String, i32, i32)>
GetTextBeforeOffset method
sourcepub async fn remove_selection(&self, selection_num: i32) -> Result<bool>
pub async fn remove_selection(&self, selection_num: i32) -> Result<bool>
RemoveSelection method
sourcepub async fn scroll_substring_to(
&self,
start_offset: i32,
end_offset: i32,
type_: u32,
) -> Result<bool>
pub async fn scroll_substring_to( &self, start_offset: i32, end_offset: i32, type_: u32, ) -> Result<bool>
ScrollSubstringTo method
sourcepub async fn scroll_substring_to_point(
&self,
start_offset: i32,
end_offset: i32,
type_: u32,
x: i32,
y: i32,
) -> Result<bool>
pub async fn scroll_substring_to_point( &self, start_offset: i32, end_offset: i32, type_: u32, x: i32, y: i32, ) -> Result<bool>
ScrollSubstringToPoint method
sourcepub async fn set_caret_offset(&self, offset: i32) -> Result<bool>
pub async fn set_caret_offset(&self, offset: i32) -> Result<bool>
SetCaretOffset method
sourcepub async fn set_selection(
&self,
selection_num: i32,
start_offset: i32,
end_offset: i32,
) -> Result<bool>
pub async fn set_selection( &self, selection_num: i32, start_offset: i32, end_offset: i32, ) -> Result<bool>
SetSelection method
sourcepub async fn caret_offset(&self) -> Result<i32>
pub async fn caret_offset(&self) -> Result<i32>
CaretOffset property
sourcepub fn cached_caret_offset(
&self,
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_caret_offset( &self, ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
Get the cached value of the CaretOffset
property, or None
if the property is not cached.
sourcepub async fn receive_caret_offset_changed(
&self,
) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
pub async fn receive_caret_offset_changed( &self, ) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the CaretOffset
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn character_count(&self) -> Result<i32>
pub async fn character_count(&self) -> Result<i32>
CharacterCount property
sourcepub fn cached_character_count(
&self,
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_character_count( &self, ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
Get the cached value of the CharacterCount
property, or None
if the property is not cached.
sourcepub async fn receive_character_count_changed(
&self,
) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
pub async fn receive_character_count_changed( &self, ) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the CharacterCount
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Trait Implementations§
source§impl<'a> ProxyDefault for TextProxy<'a>
impl<'a> ProxyDefault for TextProxy<'a>
Auto Trait Implementations§
impl<'p> Freeze for TextProxy<'p>
impl<'p> !RefUnwindSafe for TextProxy<'p>
impl<'p> Send for TextProxy<'p>
impl<'p> Sync for TextProxy<'p>
impl<'p> Unpin for TextProxy<'p>
impl<'p> !UnwindSafe for TextProxy<'p>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)