accessibility_sys_ng/
value.rs1#![allow(non_upper_case_globals)]
2use std::ffi::c_void;
3
4use core_foundation_sys::base::CFTypeID;
5
6pub type AXValueType = u32;
7pub const kAXValueTypeCGPoint: u32 = 1;
8pub const kAXValueTypeCGSize: u32 = 2;
9pub const kAXValueTypeCGRect: u32 = 3;
10pub const kAXValueTypeCFRange: u32 = 4;
11pub const kAXValueTypeAXError: u32 = 5;
12pub const kAXValueTypeIllegal: u32 = 0;
13
14pub enum __AXValue {}
15pub type AXValueRef = *mut __AXValue;
16
17#[link(name = "ApplicationServices", kind = "framework")]
18extern "C" {
19 pub fn AXValueGetTypeID() -> CFTypeID;
20 pub fn AXValueCreate(theType: AXValueType, valuePtr: *const c_void) -> AXValueRef;
21 pub fn AXValueGetType(value: AXValueRef) -> AXValueType;
22 pub fn AXValueGetValue(value: AXValueRef, theType: AXValueType, valuePtr: *mut c_void) -> bool;
23}