OSDN Git Service

Initial revision
[pf3gnuchains/sourceware.git] / tk / macosx / tkMacOSXDebug.h
1 /*
2  * tkMacOSXDebug.h --
3  *
4  *      Declarations of Macintosh specific functions for debugging MacOS events,
5  *      regions, etc...
6  *
7  *      Copyright 2001, Apple Computer, Inc.
8  *
9  *      The following terms apply to all files originating from Apple
10  *      Computer, Inc. ("Apple") and associated with the software
11  *      unless explicitly disclaimed in individual files.
12  *
13  *
14  *      Apple hereby grants permission to use, copy, modify,
15  *      distribute, and license this software and its documentation
16  *      for any purpose, provided that existing copyright notices are
17  *      retained in all copies and that this notice is included
18  *      verbatim in any distributions. No written agreement, license,
19  *      or royalty fee is required for any of the authorized
20  *      uses. Modifications to this software may be copyrighted by
21  *      their authors and need not follow the licensing terms
22  *      described here, provided that the new terms are clearly
23  *      indicated on the first page of each file where they apply.
24  *
25  *
26  *      IN NO EVENT SHALL APPLE, THE AUTHORS OR DISTRIBUTORS OF THE
27  *      SOFTWARE BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL,
28  *      INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
29  *      THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
30  *      EVEN IF APPLE OR THE AUTHORS HAVE BEEN ADVISED OF THE
31  *      POSSIBILITY OF SUCH DAMAGE.  APPLE, THE AUTHORS AND
32  *      DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
33  *      BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
34  *      FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS
35  *      SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND APPLE,THE
36  *      AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
37  *      MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
38  *
39  *      GOVERNMENT USE: If you are acquiring this software on behalf
40  *      of the U.S. government, the Government shall have only
41  *      "Restricted Rights" in the software and related documentation
42  *      as defined in the Federal Acquisition Regulations (FARs) in
43  *      Clause 52.227.19 (c) (2).  If you are acquiring the software
44  *      on behalf of the Department of Defense, the software shall be
45  *      classified as "Commercial Computer Software" and the
46  *      Government shall have only "Restricted Rights" as defined in
47  *      Clause 252.227-7013 (c) (1) of DFARs.  Notwithstanding the
48  *      foregoing, the authors grant the U.S. Government and others
49  *      acting in its behalf permission to use and distribute the
50  *      software in accordance with the terms specified in this
51  *      license.
52  */
53
54 #ifndef _TKMACDEBUG
55 #define _TKMACDEBUG
56 #include <Carbon/Carbon.h>
57
58 char * CarbonEventToAscii(EventRef eventRef, char * buf );
59 char * ClassicEventToAscii(EventRecord * eventPtr, char * buf );
60
61 void printRect(char * tag, Rect * r );
62 void printPoint(char * tag, Point * p );
63
64 void printRegion(char * tag, RgnHandle rgn );
65 void printWindowTitle(char * tag, WindowRef window );
66 char * TkMacOSXMenuMessageToAscii(int msg, char * s);
67
68 char * MouseTrackingResultToAscii(MouseTrackingResult r, char * buf );
69 #endif