diff options
author | Ian Roxborough <irox@redhat.com> | 2001-09-10 00:22:29 +0000 |
---|---|---|
committer | Ian Roxborough <irox@redhat.com> | 2001-09-10 00:22:29 +0000 |
commit | ee7709783c85577eba6af30cd711e17e403befed (patch) | |
tree | 74233a880ee1f7e13c7ded61d093318e8c6e7d5c /tk/unix/tkUnixDraw.c | |
parent | a850c17c374d03259483e799b09326d255e17487 (diff) | |
download | gdb-TK_8_3.tar.gz |
Tk 8.3 upgradeTK_8_3
Diffstat (limited to 'tk/unix/tkUnixDraw.c')
-rw-r--r-- | tk/unix/tkUnixDraw.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tk/unix/tkUnixDraw.c b/tk/unix/tkUnixDraw.c index 42aa3560b88..2a135aa4036 100644 --- a/tk/unix/tkUnixDraw.c +++ b/tk/unix/tkUnixDraw.c @@ -14,6 +14,10 @@ #include "tkPort.h" #include "tkInt.h" +#if !defined(__WIN32__) && !defined(MAC_TCL) +#include "tkUnixInt.h" +#endif + /* * The following structure is used to pass information to * ScrollRestrictProc from TkScrollWindow. @@ -168,4 +172,37 @@ ScrollRestrictProc(arg, eventPtr) } return TK_DISCARD_EVENT; } + +/* + *---------------------------------------------------------------------- + * + * TkpDrawHighlightBorder -- + * + * This procedure draws a rectangular ring around the outside of + * a widget to indicate that it has received the input focus. + * + * On Unix, we just draw the simple inset ring. On other sytems, + * e.g. the Mac, the focus ring is a little more complicated, so we + * need this abstraction. + * + * Results: + * None. + * + * Side effects: + * A rectangle "width" pixels wide is drawn in "drawable", + * corresponding to the outer area of "tkwin". + * + *---------------------------------------------------------------------- + */ + +void +TkpDrawHighlightBorder(tkwin, fgGC, bgGC, highlightWidth, drawable) + Tk_Window tkwin; + GC fgGC; + GC bgGC; + int highlightWidth; + Drawable drawable; +{ + TkDrawInsetFocusHighlight(tkwin, fgGC, highlightWidth, drawable, 0); +} |