axuielement 0.9.1

Safe Rust bindings for Apple's AXUIElement — drive other apps' UIs (read attributes, perform actions) on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use core::ffi::{c_char, c_void};

use super::{AXStatus, Handle};

extern "C" {
    pub fn ax_notification_add(
        observer_handle: Handle,
        element_handle: Handle,
        notification: *const c_char,
        refcon: *mut c_void,
    ) -> AXStatus;
    pub fn ax_notification_remove(
        observer_handle: Handle,
        element_handle: Handle,
        notification: *const c_char,
    ) -> AXStatus;
}