summaryrefslogtreecommitdiffstats
path: root/generic/tkMenubutton.h
diff options
context:
space:
mode:
authortmh <tmh>2001-05-21 14:07:32 (GMT)
committertmh <tmh>2001-05-21 14:07:32 (GMT)
commit29e6415ec425f744f1595e852af0c922a09258bb (patch)
tree20838e3aece8170aafef73f9007c1064480550df /generic/tkMenubutton.h
parent234f863650b0b7804c98c2994e07e9ef354b0e92 (diff)
downloadtk-29e6415ec425f744f1595e852af0c922a09258bb.zip
tk-29e6415ec425f744f1595e852af0c922a09258bb.tar.gz
tk-29e6415ec425f744f1595e852af0c922a09258bb.tar.bz2
implement TIP11, -compound option for menubutton widget
Diffstat (limited to 'generic/tkMenubutton.h')
-rw-r--r--generic/tkMenubutton.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/generic/tkMenubutton.h b/generic/tkMenubutton.h
index 979f23d..a4a8a05 100644
--- a/generic/tkMenubutton.h
+++ b/generic/tkMenubutton.h
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMenubutton.h,v 1.6 2000/11/22 01:49:38 ericm Exp $
+ * RCS: @(#) $Id: tkMenubutton.h,v 1.7 2001/05/21 14:07:33 tmh Exp $
*/
#ifndef _TKMENUBUTTON
@@ -25,6 +25,15 @@
#endif
/*
+ * Legal values for the "compound" field of TkButton records.
+ */
+
+enum compound {
+ COMPOUND_BOTTOM, COMPOUND_CENTER, COMPOUND_LEFT, COMPOUND_NONE,
+ COMPOUND_RIGHT, COMPOUND_TOP
+};
+
+/*
* Legal values for the "orient" field of TkMenubutton records.
*/
@@ -162,6 +171,10 @@ typedef struct {
* Miscellaneous information:
*/
+ int compound; /* Value of -compound option; specifies whether
+ * the button should show both an image and
+ * text, and, if so, how. */
+
enum direction direction; /* Direction for where to pop the menu.
* Valid directions are "above", "below",
* "left", "right", and "flush". "flush"