Import Tk 8.6.10
This commit is contained in:
@@ -84,6 +84,16 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef TCL_Z_MODIFIER
|
||||
# if defined(_WIN64)
|
||||
# define TCL_Z_MODIFIER "I"
|
||||
# elif defined(__GNUC__) && !defined(_WIN32)
|
||||
# define TCL_Z_MODIFIER "z"
|
||||
# else
|
||||
# define TCL_Z_MODIFIER ""
|
||||
# endif
|
||||
#endif /* !TCL_Z_MODIFIER */
|
||||
|
||||
/*
|
||||
* Opaque type declarations:
|
||||
*/
|
||||
@@ -323,6 +333,9 @@ typedef struct TkDisplay {
|
||||
* by that master. */
|
||||
int geomInit;
|
||||
|
||||
#define TkGetGeomMaster(tkwin) (((TkWindow *)tkwin)->maintainerPtr != NULL ? \
|
||||
((TkWindow *)tkwin)->maintainerPtr : ((TkWindow *)tkwin)->parentPtr)
|
||||
|
||||
/*
|
||||
* Information used by tkGet.c only:
|
||||
*/
|
||||
@@ -489,7 +502,7 @@ typedef struct TkDisplay {
|
||||
*/
|
||||
|
||||
int mouseButtonState; /* Current mouse button state for this
|
||||
* display. */
|
||||
* display. NOT USED as of 8.6.10 */
|
||||
Window mouseButtonWindow; /* Window the button state was set in, added
|
||||
* in Tk 8.4. */
|
||||
Tk_Window warpWindow;
|
||||
@@ -812,10 +825,14 @@ typedef struct TkWindow {
|
||||
|
||||
int minReqWidth; /* Minimum requested width. */
|
||||
int minReqHeight; /* Minimum requested height. */
|
||||
char *geometryMaster;
|
||||
#ifdef TK_USE_INPUT_METHODS
|
||||
int ximGeneration; /* Used to invalidate XIC */
|
||||
#endif /* TK_USE_INPUT_METHODS */
|
||||
char *geomMgrName; /* Records the name of the geometry manager. */
|
||||
struct TkWindow *maintainerPtr;
|
||||
/* The geometry master for this window. The
|
||||
* value is NULL if the window has no master or
|
||||
* if its master is its parent. */
|
||||
} TkWindow;
|
||||
|
||||
/*
|
||||
@@ -924,6 +941,17 @@ typedef struct TkpClipMask {
|
||||
#define ALT_MASK (AnyModifier<<2)
|
||||
#define EXTENDED_MASK (AnyModifier<<3)
|
||||
|
||||
/*
|
||||
* Mask that selects any of the state bits corresponding to buttons, plus
|
||||
* masks that select individual buttons' bits:
|
||||
*/
|
||||
|
||||
#define ALL_BUTTONS \
|
||||
(Button1Mask|Button2Mask|Button3Mask|Button4Mask|Button5Mask)
|
||||
|
||||
|
||||
MODULE_SCOPE unsigned long TkGetButtonMask(unsigned int);
|
||||
|
||||
/*
|
||||
* Object types not declared in tkObj.c need to be mentioned here so they can
|
||||
* be properly registered with Tcl:
|
||||
@@ -977,7 +1005,6 @@ MODULE_SCOPE const char *const tkWebColors[20];
|
||||
void Tcl_Panic(const char *, ...) __attribute__((analyzer_noreturn));
|
||||
#endif
|
||||
#if !defined(CLANG_ASSERT)
|
||||
#include <assert.h>
|
||||
#define CLANG_ASSERT(x) assert(x)
|
||||
#endif
|
||||
#elif !defined(CLANG_ASSERT)
|
||||
@@ -1240,6 +1267,10 @@ MODULE_SCOPE Status TkParseColor (Display * display,
|
||||
MODULE_SCOPE void TkUnixSetXftClipRegion(TkRegion clipRegion);
|
||||
#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(c_plusplus)
|
||||
# define c_class class
|
||||
#endif
|
||||
|
||||
#if TCL_UTF_MAX > 4
|
||||
# define TkUtfToUniChar Tcl_UtfToUniChar
|
||||
# define TkUniCharToUtf Tcl_UniCharToUtf
|
||||
|
||||
Reference in New Issue
Block a user