diff options
author | hobbs <hobbs> | 2005-07-28 04:57:37 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-07-28 04:57:37 (GMT) |
commit | a8b4cdc0ae29558241512cba5e42dc3cfb5a9c59 (patch) | |
tree | 4870570f4a045ed0e9b5d90b6f2d1e2071b4ee8d /unix | |
parent | 3caf558162fc4f2bb92f2d65f72f9f6532f34298 (diff) | |
download | tk-a8b4cdc0ae29558241512cba5e42dc3cfb5a9c59.zip tk-a8b4cdc0ae29558241512cba5e42dc3cfb5a9c59.tar.gz tk-a8b4cdc0ae29558241512cba5e42dc3cfb5a9c59.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 'unix')
-rw-r--r-- | unix/tkUnixDraw.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/unix/tkUnixDraw.c b/unix/tkUnixDraw.c index 82576bf..46323af 100644 --- a/unix/tkUnixDraw.c +++ b/unix/tkUnixDraw.c @@ -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: tkUnixDraw.c,v 1.6 2000/07/20 21:38:28 ericm Exp $ + * RCS: @(#) $Id: tkUnixDraw.c,v 1.6.8.1 2005/07/28 04:57:38 hobbs Exp $ */ #include "tkPort.h" @@ -209,3 +209,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); +} |