OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [tk/] [mac/] [tkMac.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
2
 * tkMacInt.h --
3
 *
4
 *      Declarations of Macintosh specific exported variables and procedures.
5
 *
6
 * Copyright (c) 1995-1997 Sun Microsystems, Inc.
7
 *
8
 * See the file "license.terms" for information on usage and redistribution
9
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
10
 *
11
 * RCS: @(#) $Id: tkMac.h,v 1.1.1.1 2002-01-16 10:25:55 markom Exp $
12
 */
13
 
14
#ifndef _TKMAC
15
#define _TKMAC
16
 
17
#include <Windows.h>
18
#include <QDOffscreen.h>
19
#include "tkInt.h"
20
 
21
/*
22
 * "export" is a MetroWerks specific pragma.  It flags the linker that
23
 * any symbols that are defined when this pragma is on will be exported
24
 * to shared libraries that link with this library.
25
 */
26
 
27
#pragma export on
28
 
29
/*
30
 * This variable is exported and can be used by extensions.  It is the
31
 * way Tk extensions should access the QD Globals.  This is so Tk
32
 * can support embedding itself in another window.
33
 */
34
 
35
EXTERN QDGlobalsPtr tcl_macQdPtr;
36
 
37
/*
38
 * Structures and function types for handling Netscape-type in process
39
 * embedding where Tk does not control the top-level
40
 */
41
typedef  int (Tk_MacEmbedRegisterWinProc) (int winID, Tk_Window window);
42
typedef GWorldPtr (Tk_MacEmbedGetGrafPortProc) (Tk_Window window);
43
typedef int (Tk_MacEmbedMakeContainerExistProc) (Tk_Window window);
44
typedef void (Tk_MacEmbedGetClipProc) (Tk_Window window, RgnHandle rgn);
45
typedef void (Tk_MacEmbedGetOffsetInParentProc) (Tk_Window window, Point *ulCorner);
46
 
47
/*
48
 * Mac Specific functions that are available to extension writers.
49
 */
50
 
51
EXTERN void     Tk_MacSetEmbedHandler _ANSI_ARGS_((
52
                        Tk_MacEmbedRegisterWinProc *registerWinProcPtr,
53
                        Tk_MacEmbedGetGrafPortProc *getPortProcPtr,
54
                        Tk_MacEmbedMakeContainerExistProc *containerExistProcPtr,
55
                        Tk_MacEmbedGetClipProc *getClipProc,
56
                        Tk_MacEmbedGetOffsetInParentProc *getOffsetProc));
57
 
58
 
59
EXTERN void Tk_MacTurnOffMenus _ANSI_ARGS_ (());
60
EXTERN void Tk_MacTkOwnsCursor _ANSI_ARGS_ ((int tkOwnsIt));
61
 
62
/*
63
 * These functions are currently in tkMacInt.h.  They are just copied over here
64
 * so they can be exported.
65
 */
66
 
67
EXTERN void     TkMacInitMenus _ANSI_ARGS_((Tcl_Interp  *interp));
68
EXTERN void     TkMacInitAppleEvents _ANSI_ARGS_((Tcl_Interp *interp));
69
 
70
EXTERN int      TkMacConvertEvent _ANSI_ARGS_((EventRecord *eventPtr));
71
EXTERN int      TkMacConvertTkEvent _ANSI_ARGS_((EventRecord *eventPtr,
72
                            Window window));
73
EXTERN void     TkGenWMConfigureEvent _ANSI_ARGS_((Tk_Window tkwin,
74
                            int x, int y, int width, int height, int flags));
75
EXTERN void     TkMacInvalClipRgns _ANSI_ARGS_((TkWindow *winPtr));
76
EXTERN int      TkMacHaveAppearance _ANSI_ARGS_((void));
77
EXTERN GWorldPtr        TkMacGetDrawablePort _ANSI_ARGS_((Drawable drawable));
78
 
79
#pragma export reset
80
 
81
#endif /* _TKMAC */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.