|
ADC Home > Reference Library > Reference > User Experience > Accessibility > Accessibility (ApplicationServices/HIServices) Reference
|
AXValue.h |
| Includes: | <AvailabilityMacros.h> <CoreServices/CoreServices.h> <CoreFoundation/CoreFoundation.h> |
This header contains functions and data types for working with AXValueType wrappers.
AXValueCreate |
extern AXValueRef AXValueCreate ( AXValueType theType, const void *valuePtr);
theTypevaluePtrEncodes a structure pointed to by valuePtr into a CFTypeRef.
AXValueGetType |
extern AXValueType AXValueGetType( AXValueRef value);
valueReturns the structure type encoded in value. If the type is not recognized, it returns kAXValueIllegalType.
AXValueGetTypeID |
extern CFTypeID AXValueGetTypeID();
AXValueGetValue |
extern Boolean AXValueGetValue( AXValueRef value, AXValueType theType, void *valuePtr);
valueDecodes the structure stored in value and copies it into valuePtr. If the structure stored in value is not the same as requested by theType, the function returns false.
AXValueRef |
typedef const struct __AXValue *AXValueRef;
AXValueType |
typedef enum { kAXValueCGPointType = 1, kAXValueCGSizeType = 2, kAXValueCGRectType = 3, kAXValueCFRangeType = 4, kAXValueAXErrorType = 5, kAXValueIllegalType = 0 } AXValueType;
kAXValueCGPointTypea wrapper for CGPoint; see CoreGraphics.h
kAXValueCGSizeTypea wrapper for CGSize; see CoreGraphics.h
kAXValueCGRectTypea wrapper for CGRect; see CoreGraphics.h
kAXValueCFRangeTypea wrapper for CFRange; see CFBase.h
kAXValueAXErrorTypeSee AXError.h
kAXValueIllegalTypea wrapper for unsupported structures
These are AXValueType wrappers for other structures. You must use the AXValueCreate and AXValueGetValue functions to convert between the wrapped structure and the native structure.
|
Last Updated: 2008-08-07