Mercurial > projects > dwt-mac
annotate dwt/internal/c/bindings.d @ 123:63a09873578e
Fixed compile errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 15 Jan 2009 23:08:54 +0100 |
parents | 2e671fa40eec |
children |
rev | line source |
---|---|
45 | 1 /** |
2 * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Nov 18, 2008 | |
5 * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style) | |
6 * | |
7 */ | |
8 module dwt.internal.c.bindings; | |
9 | |
10 import dwt.internal.c.Carbon; | |
11 public import dwt.internal.cocoa.CGPoint; | |
12 | |
13 extern (C): | |
14 | |
15 // Appearance.h | |
16 int SetThemeCursor (ThemeCursor inCursor); | |
17 | |
18 | |
19 | |
20 // CarbonEventsCore.h | |
21 uint GetCurrentButtonState (); | |
22 | |
23 | |
24 | |
25 // CFBase.h | |
26 void CFRelease (CFTypeRef cf); | |
27 | |
28 | |
29 | |
30 // CFURL.h | |
123 | 31 CFStringRef CFURLCreateStringByAddingPercentEscapes (CFAllocatorRef allocator, CFStringRef originalString, CFStringRef charactersToLeaveUnescaped, CFStringRef legalURLCharactersToBeEscaped, CFStringEncoding encoding); |
45 | 32 |
33 | |
34 | |
35 // CGRemoteOperation.h | |
36 CGError CGWarpMouseCursorPosition (CGPoint newCursorPosition); | |
37 | |
38 | |
39 | |
40 // Gestalt.h | |
41 short Gestalt (uint selector, int* response); | |
42 | |
43 | |
44 | |
45 // Processes.h | |
60
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
45
diff
changeset
|
46 short CPSSetProcessName (ProcessSerialNumber* PSN, char* processname); |
45 | 47 short GetCurrentProcess (ProcessSerialNumber* PSN); |
48 short SetFrontProcess (/*const*/ ProcessSerialNumber* PSN); | |
49 int TransformProcessType (/*const*/ ProcessSerialNumber* psn, ProcessApplicationTransformState transformState); | |
50 | |
51 | |
52 | |
53 // Quickdraw.h | |
54 RgnHandle NewRgn (); | |
55 void RectRgn (RgnHandle rgn, /*const*/Rect* r); | |
56 void OpenRgn (); | |
57 void OffsetRgn (RgnHandle rgn, short dh, short dv); | |
58 void MoveTo (short h, short v); | |
59 void LineTo (short h, short v); | |
60 void UnionRgn (RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn); | |
61 void CloseRgn (RgnHandle dstRgn); | |
62 void DisposeRgn (RgnHandle rgn); | |
63 Boolean PtInRgn (Point pt, RgnHandle rgn); | |
64 Rect* GetRegionBounds (RgnHandle region, Rect* bounds); | |
65 void SectRgn (RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn); | |
66 Boolean EmptyRgn (RgnHandle rgn); | |
67 void DiffRgn (RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn); | |
68 Boolean RectInRgn (/*const*/Rect* r, RgnHandle rgn); | |
69 OSStatus QDRegionToRects (RgnHandle rgn, QDRegionParseDirection dir, RegionToRectsUPP proc, void* userData); | |
70 void CopyRgn (RgnHandle srcRgn, RgnHandle dstRgn); | |
71 void SetRect (Rect* r, short left, short top, short right, short bottom); |