diff options
author | hobbs <hobbs> | 2005-07-28 04:57:37 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-07-28 04:57:37 (GMT) |
commit | 1d14dac4f0b843fa42f827b005917dce8be637af (patch) | |
tree | 4870570f4a045ed0e9b5d90b6f2d1e2071b4ee8d /win/tkWinDraw.c | |
parent | 5ba1d83ac31e8ec2e19959e859c86a8e8e6aa1f3 (diff) | |
download | tk-1d14dac4f0b843fa42f827b005917dce8be637af.zip tk-1d14dac4f0b843fa42f827b005917dce8be637af.tar.gz tk-1d14dac4f0b843fa42f827b005917dce8be637af.tar.bz2 |
* generic/tkFrame.c (DisplayFrame):
* generic/tkInt.decls: add TkpDrawFrame to allow for
* generic/tkIntDecls.h: platform-specific drawing into the frame/
* generic/tkStubInit.c: toplevel area. Currently only differs on
* generic/tkFrame.c: OS X (Aqua), which will draw a themed bg
* win/tkWinDraw.c: if tk::mac::useThemedToplevel == 1.
* unix/tkUnixDraw.c: Normal frames left alone until we can
* mac/tkMacDraw.c: better factor out frame drawing to be
* macosx/tkMacDraw.c: widget-specific.
Diffstat (limited to 'win/tkWinDraw.c')
-rw-r--r-- | win/tkWinDraw.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c index 21f0636..9366d6d 100644 --- a/win/tkWinDraw.c +++ b/win/tkWinDraw.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinDraw.c,v 1.12.2.1 2003/11/11 00:26:33 hobbs Exp $ + * RCS: @(#) $Id: tkWinDraw.c,v 1.12.2.2 2005/07/28 04:57:38 hobbs Exp $ */ #include "tkWinInt.h" @@ -1356,3 +1356,30 @@ TkpDrawHighlightBorder(tkwin, fgGC, bgGC, highlightWidth, drawable) { TkDrawInsetFocusHighlight(tkwin, fgGC, highlightWidth, drawable, 0); } + +/* + *---------------------------------------------------------------------- + * + * TkpDrawFrame -- + * + * This procedure draws the rectangular frame area. + * + * Results: + * None. + * + * Side effects: + * Draws inside the tkwin area. + * + *---------------------------------------------------------------------- + */ + +void +TkpDrawFrame (Tk_Window tkwin, Tk_3DBorder border, + int highlightWidth, int borderWidth, int relief) +{ + Tk_Fill3DRectangle(tkwin, Tk_WindowId(tkwin), + border, highlightWidth, highlightWidth, + Tk_Width(tkwin) - 2 * highlightWidth, + Tk_Height(tkwin) - 2 * highlightWidth, + borderWidth, relief); +} |