diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-02-24 08:57:14 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-02-24 08:57:14 (GMT) |
commit | d100137ea90e888dac02a31e3bb934d81b69c224 (patch) | |
tree | 53bf91c00f1143e94cf2f737f338df4453908b2d /generic/tkInt.h | |
parent | 6caccdc166b91ff4f36ca8b5c0d02654ad98a413 (diff) | |
download | tk-d100137ea90e888dac02a31e3bb934d81b69c224.zip tk-d100137ea90e888dac02a31e3bb934d81b69c224.tar.gz tk-d100137ea90e888dac02a31e3bb934d81b69c224.tar.bz2 |
Add internal function TkGetIntForIndex(), which handles integer indexes and "end" using Tcl_GetIntForIndex() (TIP #544). For now, only used in menu's.
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r-- | generic/tkInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h index 7ef7862..e797d29 100644 --- a/generic/tkInt.h +++ b/generic/tkInt.h @@ -1331,6 +1331,8 @@ MODULE_SCOPE int TkListCreateFrame(ClientData clientData, MODULE_SCOPE void TkRotatePoint(double originX, double originY, double sine, double cosine, double *xPtr, double *yPtr); +MODULE_SCOPE int TkGetIntForIndex(Tcl_Obj *, TkSizeT, TkSizeT*); + #ifdef _WIN32 #define TkParseColor XParseColor |