summaryrefslogtreecommitdiffstats
path: root/mac/tkMacDraw.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2005-07-28 04:57:36 (GMT)
committerhobbs <hobbs@noemail.net>2005-07-28 04:57:36 (GMT)
commite0fa376b19c7e4981ff7a110f760214c10b62013 (patch)
tree4870570f4a045ed0e9b5d90b6f2d1e2071b4ee8d /mac/tkMacDraw.c
parentc4763fa4a0e76f66331a1ede6cc2c7ef4f4e5ea6 (diff)
downloadtk-e0fa376b19c7e4981ff7a110f760214c10b62013.zip
tk-e0fa376b19c7e4981ff7a110f760214c10b62013.tar.gz
tk-e0fa376b19c7e4981ff7a110f760214c10b62013.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. FossilOrigin-Name: 2c85dcf7575276929d3dd497acb16bda1abaf23d
Diffstat (limited to 'mac/tkMacDraw.c')
-rw-r--r--mac/tkMacDraw.c31
1 files changed, 29 insertions, 2 deletions
diff --git a/mac/tkMacDraw.c b/mac/tkMacDraw.c
index f3af2fc..d534140 100644
--- a/mac/tkMacDraw.c
+++ b/mac/tkMacDraw.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: tkMacDraw.c,v 1.9 2002/04/08 09:04:43 das Exp $
+ * RCS: @(#) $Id: tkMacDraw.c,v 1.9.2.1 2005/07/28 04:57:38 hobbs Exp $
*/
#include "tkInt.h"
@@ -1156,7 +1156,7 @@ InvertByte(
/*
*----------------------------------------------------------------------
*
- * TkpDrawpHighlightBorder --
+ * TkpDrawHighlightBorder --
*
* This procedure draws a rectangular ring around the outside of
* a widget to indicate that it has received the input focus.
@@ -1194,3 +1194,30 @@ TkpDrawHighlightBorder (
}
}
}
+
+/*
+ *----------------------------------------------------------------------
+ *
+ * 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);
+}