Download wemm/include/tkMacOSXInt.h from ZTWHHH/envs_2: direct link, hf CLI and curl.
- Browser
- Download file 4.94 kB
-
https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/wemm/include/tkMacOSXInt.h
- Command line
-
hf download hf://datasets/ZTWHHH/envs_2/wemm/include/tkMacOSXInt.h
-
curl -L -o tkMacOSXInt.h https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/wemm/include/tkMacOSXInt.h
4.94 kB
| /* | |
| * tkMacOSXInt.h -- | |
| * | |
| * Declarations of Macintosh specific shared variables and procedures. | |
| * | |
| * Copyright (c) 1995-1997 Sun Microsystems, Inc. | |
| * Copyright 2001-2009, Apple Inc. | |
| * Copyright (c) 2005-2009 Daniel A. Steffen <das@users.sourceforge.net> | |
| * | |
| * See the file "license.terms" for information on usage and redistribution | |
| * of this file, and for a DISCLAIMER OF ALL WARRANTIES. | |
| */ | |
| /* | |
| * Include platform specific public interfaces. | |
| */ | |
| /* | |
| * Define compatibility platform types used in the structures below so that | |
| * this header can be included without pulling in the platform headers. | |
| */ | |
| struct TkWindowPrivate { | |
| TkWindow *winPtr; /* Ptr to tk window or NULL if Pixmap */ | |
| NSView *view; | |
| CGContextRef context; | |
| int xOff; /* X offset from toplevel window */ | |
| int yOff; /* Y offset from toplevel window */ | |
| CGSize size; | |
| HIShapeRef visRgn; /* Visible region of window */ | |
| HIShapeRef aboveVisRgn; /* Visible region of window & its children */ | |
| HIShapeRef drawRgn; /* Clipped drawing region */ | |
| int referenceCount; /* Don't delete toplevel until children are | |
| * gone. */ | |
| struct TkWindowPrivate *toplevel; | |
| /* Pointer to the toplevel datastruct. */ | |
| CGFloat fillRGBA[4]; /* Background used by the ttk FillElement */ | |
| int flags; /* Various state see defines below. */ | |
| }; | |
| typedef struct TkWindowPrivate MacDrawable; | |
| /* | |
| * Defines use for the flags field of the MacDrawable data structure. | |
| */ | |
| /* | |
| * I am reserving TK_EMBEDDED = 0x100 in the MacDrawable flags | |
| * This is defined in tk.h. We need to duplicate the TK_EMBEDDED flag in the | |
| * TkWindow structure for the window, but in the MacWin. This way we can | |
| * still tell what the correct port is after the TKWindow structure has been | |
| * freed. This actually happens when you bind destroy of a toplevel to | |
| * Destroy of a child. | |
| */ | |
| /* | |
| * This structure is for handling Netscape-type in process | |
| * embedding where Tk does not control the top-level. It contains | |
| * various functions that are needed by Mac specific routines, like | |
| * TkMacOSXGetDrawablePort. The definitions of the function types | |
| * are in tkMacOSX.h. | |
| */ | |
| typedef struct { | |
| Tk_MacOSXEmbedRegisterWinProc *registerWinProc; | |
| Tk_MacOSXEmbedGetGrafPortProc *getPortProc; | |
| Tk_MacOSXEmbedMakeContainerExistProc *containerExistProc; | |
| Tk_MacOSXEmbedGetClipProc *getClipProc; | |
| Tk_MacOSXEmbedGetOffsetInParentProc *getOffsetProc; | |
| } TkMacOSXEmbedHandler; | |
| MODULE_SCOPE TkMacOSXEmbedHandler *tkMacOSXEmbedHandler; | |
| /* | |
| * Undef compatibility platform types defined above. | |
| */ | |
| /* | |
| * Defines used for TkMacOSXInvalidateWindow | |
| */ | |
| /* | |
| * Accessor for the privatePtr flags field for the TK_HOST_EXISTS field | |
| */ | |
| /* | |
| * Defines used for the flags argument to TkGenWMConfigureEvent. | |
| */ | |
| /* | |
| * Defines for tkTextDisp.c and tkFont.c | |
| */ | |
| /* | |
| * Prototypes of internal procs not in the stubs table. | |
| */ | |
| MODULE_SCOPE void TkMacOSXDefaultStartupScript(void); | |
| MODULE_SCOPE void TkpClipDrawableToRect(Display *display, Drawable d, int x, | |
| int y, int width, int height); | |
| MODULE_SCOPE Bool TkTestLogDisplay(Drawable drawable); | |
| /* | |
| * Include the stubbed internal platform-specific API. | |
| */ | |
| /* | |
| * Local Variables: | |
| * mode: objc | |
| * c-basic-offset: 4 | |
| * fill-column: 79 | |
| * coding: utf-8 | |
| * End: | |
| */ | |