diff options
author | hobbs <hobbs> | 2002-04-05 08:38:22 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-04-05 08:38:22 (GMT) |
commit | 40ae4f319528ce6b0e6d6b7a1180b5bbe6176c07 (patch) | |
tree | 3c393efb1641c43d9d79f9c0447f5d3157322d8a /generic/tkDecls.h | |
parent | 3691ab0624af5eaa6e84b73e28c912de5fd4bf0d (diff) | |
download | tk-40ae4f319528ce6b0e6d6b7a1180b5bbe6176c07.zip tk-40ae4f319528ce6b0e6d6b7a1180b5bbe6176c07.tar.gz tk-40ae4f319528ce6b0e6d6b7a1180b5bbe6176c07.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) */ |