diff options
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); +} |