Struct atk_sys::AtkTextIface

source ·
#[repr(C)]
pub struct AtkTextIface {
Show 27 fields pub parent: GTypeInterface, pub get_text: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int) -> *mut c_char>, pub get_text_after_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: AtkTextBoundary, _: *mut c_int, _: *mut c_int) -> *mut c_char>, pub get_text_at_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: AtkTextBoundary, _: *mut c_int, _: *mut c_int) -> *mut c_char>, pub get_character_at_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int) -> u32>, pub get_text_before_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: AtkTextBoundary, _: *mut c_int, _: *mut c_int) -> *mut c_char>, pub get_caret_offset: Option<unsafe extern "C" fn(_: *mut AtkText) -> c_int>, pub get_run_attributes: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: *mut c_int, _: *mut c_int) -> *mut AtkAttributeSet>, pub get_default_attributes: Option<unsafe extern "C" fn(_: *mut AtkText) -> *mut AtkAttributeSet>, pub get_character_extents: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: AtkCoordType)>, pub get_character_count: Option<unsafe extern "C" fn(_: *mut AtkText) -> c_int>, pub get_offset_at_point: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: AtkCoordType) -> c_int>, pub get_n_selections: Option<unsafe extern "C" fn(_: *mut AtkText) -> c_int>, pub get_selection: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: *mut c_int, _: *mut c_int) -> *mut c_char>, pub add_selection: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int) -> gboolean>, pub remove_selection: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int) -> gboolean>, pub set_selection: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: c_int) -> gboolean>, pub set_caret_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int) -> gboolean>, pub text_changed: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int)>, pub text_caret_moved: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int)>, pub text_selection_changed: Option<unsafe extern "C" fn(_: *mut AtkText)>, pub text_attributes_changed: Option<unsafe extern "C" fn(_: *mut AtkText)>, pub get_range_extents: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: AtkCoordType, _: *mut AtkTextRectangle)>, pub get_bounded_ranges: Option<unsafe extern "C" fn(_: *mut AtkText, _: *mut AtkTextRectangle, _: AtkCoordType, _: AtkTextClipType, _: AtkTextClipType) -> *mut *mut AtkTextRange>, pub get_string_at_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: AtkTextGranularity, _: *mut c_int, _: *mut c_int) -> *mut c_char>, pub scroll_substring_to: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: AtkScrollType) -> gboolean>, pub scroll_substring_to_point: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: AtkCoordType, _: c_int, _: c_int) -> gboolean>,
}

Fields§

§parent: GTypeInterface§get_text: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int) -> *mut c_char>§get_text_after_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: AtkTextBoundary, _: *mut c_int, _: *mut c_int) -> *mut c_char>§get_text_at_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: AtkTextBoundary, _: *mut c_int, _: *mut c_int) -> *mut c_char>§get_character_at_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int) -> u32>§get_text_before_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: AtkTextBoundary, _: *mut c_int, _: *mut c_int) -> *mut c_char>§get_caret_offset: Option<unsafe extern "C" fn(_: *mut AtkText) -> c_int>§get_run_attributes: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: *mut c_int, _: *mut c_int) -> *mut AtkAttributeSet>§get_default_attributes: Option<unsafe extern "C" fn(_: *mut AtkText) -> *mut AtkAttributeSet>§get_character_extents: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: AtkCoordType)>§get_character_count: Option<unsafe extern "C" fn(_: *mut AtkText) -> c_int>§get_offset_at_point: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: AtkCoordType) -> c_int>§get_n_selections: Option<unsafe extern "C" fn(_: *mut AtkText) -> c_int>§get_selection: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: *mut c_int, _: *mut c_int) -> *mut c_char>§add_selection: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int) -> gboolean>§remove_selection: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int) -> gboolean>§set_selection: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: c_int) -> gboolean>§set_caret_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int) -> gboolean>§text_changed: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int)>§text_caret_moved: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int)>§text_selection_changed: Option<unsafe extern "C" fn(_: *mut AtkText)>§text_attributes_changed: Option<unsafe extern "C" fn(_: *mut AtkText)>§get_range_extents: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: AtkCoordType, _: *mut AtkTextRectangle)>§get_bounded_ranges: Option<unsafe extern "C" fn(_: *mut AtkText, _: *mut AtkTextRectangle, _: AtkCoordType, _: AtkTextClipType, _: AtkTextClipType) -> *mut *mut AtkTextRange>§get_string_at_offset: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: AtkTextGranularity, _: *mut c_int, _: *mut c_int) -> *mut c_char>§scroll_substring_to: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: AtkScrollType) -> gboolean>§scroll_substring_to_point: Option<unsafe extern "C" fn(_: *mut AtkText, _: c_int, _: c_int, _: AtkCoordType, _: c_int, _: c_int) -> gboolean>

Trait Implementations§

source§

impl Clone for AtkTextIface

source§

fn clone(&self) -> AtkTextIface

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 Debug for AtkTextIface

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for AtkTextIface

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.