AXAttribute

Struct AXAttribute 

Source
pub struct AXAttribute<T>(/* private fields */);

Implementations§

Source§

impl<T> AXAttribute<T>

Source

pub fn as_CFString(&self) -> &CFString

Source§

impl AXAttribute<CFType>

Source

pub fn new(name: &CFString) -> Self

Source§

impl AXAttribute<()>

Source

pub fn allowed_values() -> AXAttribute<CFArray<CFType>>

Source

pub fn children() -> AXAttribute<CFArray<AXUIElement>>

Source

pub fn contents() -> AXAttribute<AXUIElement>

Source

pub fn description() -> AXAttribute<CFString>

Source

pub fn document() -> AXAttribute<CFString>

Source

pub fn element_busy() -> AXAttribute<CFBoolean>

Source

pub fn enabled() -> AXAttribute<CFBoolean>

Source

pub fn focused_application() -> AXAttribute<AXUIElement>

Source

pub fn focused_uielement() -> AXAttribute<AXUIElement>

Source

pub fn focused() -> AXAttribute<CFBoolean>

Source

pub fn focused_window() -> AXAttribute<AXUIElement>

Source

pub fn frontmost() -> AXAttribute<CFBoolean>

Source

pub fn frame() -> AXAttribute<AXValue>

Source

pub fn help() -> AXAttribute<CFString>

Source

pub fn identifier() -> AXAttribute<CFString>

Source

pub fn label_value() -> AXAttribute<CFString>

Source

pub fn main() -> AXAttribute<CFBoolean>

Source

pub fn main_window() -> AXAttribute<AXUIElement>

Source

pub fn max_value() -> AXAttribute<CFType>

Source

pub fn menu_item_cmd_modifier() -> AXAttribute<CFNumber>

Source

pub fn menu_item_cmd_char() -> AXAttribute<CFString>

Source

pub fn menu_item_cmd_virtual_key() -> AXAttribute<CFString>

Source

pub fn menu_item_mark_char() -> AXAttribute<CFString>

Source

pub fn menu_item_cmd_glyph() -> AXAttribute<CFString>

Source

pub fn min_value() -> AXAttribute<CFType>

Source

pub fn minimized() -> AXAttribute<CFBoolean>

Source

pub fn number_of_characters() -> AXAttribute<CFNumber>

Source

pub fn parent() -> AXAttribute<AXUIElement>

Source

pub fn placeholder_value() -> AXAttribute<CFString>

Source

pub fn position() -> AXAttribute<AXValue>

Source

pub fn role() -> AXAttribute<CFString>

Source

pub fn role_description() -> AXAttribute<CFString>

Source

pub fn selected_children() -> AXAttribute<CFArray<AXUIElement>>

Source

pub fn subrole() -> AXAttribute<CFString>

Source

pub fn size() -> AXAttribute<AXValue>

Source

pub fn selected_text() -> AXAttribute<CFString>

Source

pub fn selected_text_range() -> AXAttribute<AXValue>

Source

pub fn title() -> AXAttribute<CFString>

Source

pub fn top_level_ui_element() -> AXAttribute<AXUIElement>

Source

pub fn value() -> AXAttribute<CFType>

Source

pub fn value_description() -> AXAttribute<CFString>

Source

pub fn value_increment() -> AXAttribute<CFType>

Source

pub fn visible_children() -> AXAttribute<CFArray<AXUIElement>>

Source

pub fn window() -> AXAttribute<AXUIElement>

Source

pub fn windows() -> AXAttribute<CFArray<AXUIElement>>

Source

pub fn visible_character_range() -> AXAttribute<AXValue>

Source

pub fn bounds_for_range() -> AXAttribute<AXValue>

Source

pub fn line_for_index() -> AXAttribute<CFNumber>

Source

pub fn range_for_line() -> AXAttribute<AXValue>

Source

pub fn range_for_position() -> AXAttribute<AXValue>

Source

pub fn next_line_range_for_index() -> AXAttribute<AXValue>

Source

pub fn previous_line_range_for_index() -> AXAttribute<AXValue>

Source

pub fn attributed_string_for_range() -> AXAttribute<CFAttributedString>

Trait Implementations§

Source§

impl<T: Clone> Clone for AXAttribute<T>

Source§

fn clone(&self) -> AXAttribute<T>

Returns a duplicate 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<T: Debug> Debug for AXAttribute<T>

Source§

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

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

impl<T: TCFType> TAXAttribute for AXAttribute<T>

Source§

type Value = T

Auto Trait Implementations§

§

impl<T> Freeze for AXAttribute<T>

§

impl<T> RefUnwindSafe for AXAttribute<T>
where T: RefUnwindSafe,

§

impl<T> !Send for AXAttribute<T>

§

impl<T> !Sync for AXAttribute<T>

§

impl<T> Unpin for AXAttribute<T>

§

impl<T> UnwindSafe for AXAttribute<T>
where T: RefUnwindSafe,

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 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> 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.