diff options
author | hobbs <hobbs> | 2002-04-05 08:38:22 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-04-05 08:38:22 (GMT) |
commit | 4cd71cfef063a1e55c77c7b59282c85d16bc5753 (patch) | |
tree | 3c393efb1641c43d9d79f9c0447f5d3157322d8a /generic/tkDecls.h | |
parent | 1cf81b9381fe205f73b2ee251926d11c881fd036 (diff) | |
download | tk-4cd71cfef063a1e55c77c7b59282c85d16bc5753.zip tk-4cd71cfef063a1e55c77c7b59282c85d16bc5753.tar.gz tk-4cd71cfef063a1e55c77c7b59282c85d16bc5753.tar.bz2 |
* generic/tkStubInit.c:
* generic/tkDecls.h:
* generic/tk.decls: added Tk_SetCaretPos declaration. This command
allows users to indicate the cursor position and is used by XIM
(Unix) or IME (Windows) to place the caret box correctly. It is
also part of correct Accessibility style on Windows to make the
magnifier jump to the focus point.
Diffstat (limited to 'generic/tkDecls.h')
-rw-r--r-- | generic/tkDecls.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tkDecls.h b/generic/tkDecls.h index d787cf6..057295e 100644 --- a/generic/tkDecls.h +++ b/generic/tkDecls.h @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkDecls.h,v 1.17 2002/01/31 04:42:00 dgp Exp $ + * RCS: @(#) $Id: tkDecls.h,v 1.18 2002/04/05 08:38:22 hobbs Exp $ */ #ifndef _TKDECLS @@ -843,6 +843,9 @@ EXTERN void Tk_SetInternalBorderEx _ANSI_ARGS_((Tk_Window tkwin, /* 244 */ EXTERN void Tk_SetMinimumRequestSize _ANSI_ARGS_(( Tk_Window tkwin, int minWidth, int minHeight)); +/* 245 */ +EXTERN void Tk_SetCaretPos _ANSI_ARGS_((Tk_Window tkwin, int x, + int y, int height)); typedef struct TkStubHooks { struct TkPlatStubs *tkPlatStubs; @@ -1100,6 +1103,7 @@ typedef struct TkStubs { void (*tk_SetClassProcs) _ANSI_ARGS_((Tk_Window tkwin, Tk_ClassProcs * procs, ClientData instanceData)); /* 242 */ void (*tk_SetInternalBorderEx) _ANSI_ARGS_((Tk_Window tkwin, int left, int right, int top, int bottom)); /* 243 */ void (*tk_SetMinimumRequestSize) _ANSI_ARGS_((Tk_Window tkwin, int minWidth, int minHeight)); /* 244 */ + void (*tk_SetCaretPos) _ANSI_ARGS_((Tk_Window tkwin, int x, int y, int height)); /* 245 */ } TkStubs; #ifdef __cplusplus @@ -2090,6 +2094,10 @@ extern TkStubs *tkStubsPtr; #define Tk_SetMinimumRequestSize \ (tkStubsPtr->tk_SetMinimumRequestSize) /* 244 */ #endif +#ifndef Tk_SetCaretPos +#define Tk_SetCaretPos \ + (tkStubsPtr->tk_SetCaretPos) /* 245 */ +#endif #endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */ |