diff options
author | tmh <tmh> | 2001-10-12 13:30:31 (GMT) |
---|---|---|
committer | tmh <tmh> | 2001-10-12 13:30:31 (GMT) |
commit | ba36251fdc6516f75fa02474f0a31c29564eb5e8 (patch) | |
tree | f0a41bc451b44d520db4074ba5b826c8c8d8b723 /generic/tkMenu.h | |
parent | a1cfa0e20447bf430b9de5fd5addea3462789474 (diff) | |
download | tk-ba36251fdc6516f75fa02474f0a31c29564eb5e8.zip tk-ba36251fdc6516f75fa02474f0a31c29564eb5e8.tar.gz tk-ba36251fdc6516f75fa02474f0a31c29564eb5e8.tar.bz2 |
implementation of TIP 63 (accepted) -compound option to menu items.
Diffstat (limited to 'generic/tkMenu.h')
-rw-r--r-- | generic/tkMenu.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/generic/tkMenu.h b/generic/tkMenu.h index 9ec63f4..9553bc0 100644 --- a/generic/tkMenu.h +++ b/generic/tkMenu.h @@ -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: tkMenu.h,v 1.5 1999/04/16 01:51:19 stanton Exp $ + * RCS: @(#) $Id: tkMenu.h,v 1.6 2001/10/12 13:30:31 tmh Exp $ */ #ifndef _TKMENU @@ -39,6 +39,15 @@ typedef struct TkMenuPlatformData_ *TkMenuPlatformData; typedef struct TkMenuPlatformEntryData_ *TkMenuPlatformEntryData; /* + * Legal values for the "compound" field of TkMenuEntry and TkMenuButton records. + */ + +enum compound { + COMPOUND_BOTTOM, COMPOUND_CENTER, COMPOUND_LEFT, COMPOUND_NONE, + COMPOUND_RIGHT, COMPOUND_TOP +}; + +/* * One of the following data structures is kept for each entry of each * menu managed by this file: */ @@ -115,6 +124,9 @@ typedef struct TkMenuEntry { * entry. */ int labelWidth; /* Number of pixels to allow for displaying * labels in menu entries. */ + int compound; /* Value of -compound option; specifies whether + * the entry should show both an image and + * text, and, if so, how. */ /* * Information used to implement this entry's action: |