diff options
author | das <das> | 2008-12-10 00:34:51 (GMT) |
---|---|---|
committer | das <das> | 2008-12-10 00:34:51 (GMT) |
commit | 14d9a1e2feaf5668b184e34e273d1f77a94f158a (patch) | |
tree | cd15d97e3ab9fcbe6b4b9228abf45bdbd3672b98 /generic/tkInt.h | |
parent | 38e787d2a5bf25a1385bd7316b83c18523ae72b0 (diff) | |
download | tk-14d9a1e2feaf5668b184e34e273d1f77a94f158a.zip tk-14d9a1e2feaf5668b184e34e273d1f77a94f158a.tar.gz tk-14d9a1e2feaf5668b184e34e273d1f77a94f158a.tar.bz2 |
* generic/tkInt.h: Turn [tk] into an ensemble (thoyts, steffen)
* generic/tkBusy.c:
* generic/tkCmds.c:
* generic/tkWindow.c:
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r-- | generic/tkInt.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h index 3ab1d77..7131bb7 100644 --- a/generic/tkInt.h +++ b/generic/tkInt.h @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: $Id: tkInt.h,v 1.96 2008/11/27 23:47:09 ferrieux Exp $ + * RCS: $Id: tkInt.h,v 1.97 2008/12/10 00:34:51 das Exp $ */ #ifndef _TKINT @@ -854,6 +854,17 @@ typedef struct TkWindow { } TkWindow; /* + * The following structure is used with TkMakeEnsemble to create + * ensemble commands and optionally to create sub-ensembles. + */ + +typedef struct TkEnsemble { + const char *name; + Tcl_ObjCmdProc *proc; + const struct TkEnsemble *subensemble; +} TkEnsemble; + +/* * The following structure is used as a two way map between integers and * strings, usually to map between an internal C representation and the * strings used in Tcl. @@ -1123,9 +1134,6 @@ MODULE_SCOPE int Tk_SpinboxObjCmd(ClientData clientData, MODULE_SCOPE int Tk_TextObjCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); -MODULE_SCOPE int Tk_TkObjCmd(ClientData clientData, - Tcl_Interp *interp, int objc, - Tcl_Obj *const objv[]); MODULE_SCOPE int Tk_TkwaitObjCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); @@ -1256,6 +1264,11 @@ MODULE_SCOPE void TkUnderlineAngledTextLayout(Display *display, int x, int y, double angle, int underline); MODULE_SCOPE int TkIntersectAngledTextLayout(Tk_TextLayout layout, int x,int y, int width, int height, double angle); +MODULE_SCOPE Tcl_Command TkMakeEnsemble(Tcl_Interp *interp, + const char *namespace, const char *name, + ClientData clientData, const TkEnsemble *map); +MODULE_SCOPE int TkInitTkCmd(Tcl_Interp *interp, + ClientData clientData); /* * Unsupported commands. |