5
* Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
8
{ Pascal Translation: Peter N Lewis, <peter@stairways.com.au>, 2004 }
12
Modified for use with Free Pascal
14
Please report any bugs to <gpc@microbizz.nl>
25
{$setc UNIVERSAL_INTERFACES_VERSION := $0342}
26
{$setc GAP_INTERFACES_VERSION := $0200}
28
{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
29
{$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
32
{$ifc defined CPUPOWERPC and defined CPUI386}
33
{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
35
{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
36
{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
39
{$ifc not defined __ppc__ and defined CPUPOWERPC}
44
{$ifc not defined __i386__ and defined CPUI386}
50
{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
51
{$error Conflicting definitions for __ppc__ and __i386__}
54
{$ifc defined __ppc__ and __ppc__}
55
{$setc TARGET_CPU_PPC := TRUE}
56
{$setc TARGET_CPU_X86 := FALSE}
57
{$elifc defined __i386__ and __i386__}
58
{$setc TARGET_CPU_PPC := FALSE}
59
{$setc TARGET_CPU_X86 := TRUE}
61
{$error Neither __ppc__ nor __i386__ is defined.}
63
{$setc TARGET_CPU_PPC_64 := FALSE}
65
{$ifc defined FPC_BIG_ENDIAN}
66
{$setc TARGET_RT_BIG_ENDIAN := TRUE}
67
{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
68
{$elifc defined FPC_LITTLE_ENDIAN}
69
{$setc TARGET_RT_BIG_ENDIAN := FALSE}
70
{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
72
{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
74
{$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
75
{$setc CALL_NOT_IN_CARBON := FALSE}
76
{$setc OLDROUTINENAMES := FALSE}
77
{$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
78
{$setc OPAQUE_UPP_TYPES := TRUE}
79
{$setc OTCARBONAPPLICATION := TRUE}
80
{$setc OTKERNEL := FALSE}
81
{$setc PM_USE_SESSION_APIS := TRUE}
82
{$setc TARGET_API_MAC_CARBON := TRUE}
83
{$setc TARGET_API_MAC_OS8 := FALSE}
84
{$setc TARGET_API_MAC_OSX := TRUE}
85
{$setc TARGET_CARBON := TRUE}
86
{$setc TARGET_CPU_68K := FALSE}
87
{$setc TARGET_CPU_MIPS := FALSE}
88
{$setc TARGET_CPU_SPARC := FALSE}
89
{$setc TARGET_OS_MAC := TRUE}
90
{$setc TARGET_OS_UNIX := FALSE}
91
{$setc TARGET_OS_WIN32 := FALSE}
92
{$setc TARGET_RT_MAC_68881 := FALSE}
93
{$setc TARGET_RT_MAC_CFM := FALSE}
94
{$setc TARGET_RT_MAC_MACHO := TRUE}
95
{$setc TYPED_FUNCTION_POINTERS := TRUE}
96
{$setc TYPE_BOOL := FALSE}
97
{$setc TYPE_EXTENDED := FALSE}
98
{$setc TYPE_LONGLONG := TRUE}
101
type AXValueType = UInt32;
103
{ Types from CoreGraphics.h }
104
kAXValueCGPointType = 1;
105
kAXValueCGSizeType = 2;
106
kAXValueCGRectType = 3;
108
{ Types from CFBase.h }
109
kAXValueCFRangeType = 4;
112
kAXValueIllegalType = 0;
114
type AXValueRef = ^UInt32;
116
// AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER
117
function AXValueGetTypeID: CFTypeID; external name '_AXValueGetTypeID';
120
function AXValueCreate( theType: AXValueType; valuePtr: UnivPtr ): AXValueRef; external name '_AXValueCreate';
121
function AXValueGetType( value: AXValueRef ): AXValueType; external name '_AXValueGetType';
123
function AXValueGetValue( value: AXValueRef; theType: AXValueType; valuePtr: UnivPtr ): Boolean; external name '_AXValueGetValue';