diff options
author | hobbs <hobbs> | 2004-02-18 00:40:23 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2004-02-18 00:40:23 (GMT) |
commit | a6018fdd82b3e760c9c8dbf63381e836e879c695 (patch) | |
tree | 7f16efd14fa17fc03ce82796e8314678aa3d6e1e /generic/tkButton.h | |
parent | c944ec2de182fadb4065d9d8e9c23b7fe9a777de (diff) | |
download | tk-a6018fdd82b3e760c9c8dbf63381e836e879c695.zip tk-a6018fdd82b3e760c9c8dbf63381e836e879c695.tar.gz tk-a6018fdd82b3e760c9c8dbf63381e836e879c695.tar.bz2 |
* doc/checkbutton.n: TIP#110 implementation
* doc/radiobutton.n: Tristate Checkbutton and Radiobuttons
* generic/tkButton.c:
* generic/tkButton.h:
* library/demos/check.tcl:
* library/demos/radio.tcl:
* macosx/tkMacOSXButton.c:
* macosx/tkMacOSXDefault.h:
* tests/button.test:
* unix/tkUnixButton.c:
* unix/tkUnixDefault.h:
* win/tkWinButton.c:
* win/tkWinDefault.h:
Diffstat (limited to 'generic/tkButton.h')
-rw-r--r-- | generic/tkButton.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/generic/tkButton.h b/generic/tkButton.h index d3f7cfa..78e0765 100644 --- a/generic/tkButton.h +++ b/generic/tkButton.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: tkButton.h,v 1.10 2003/04/26 02:59:20 hobbs Exp $ + * RCS: @(#) $Id: tkButton.h,v 1.11 2004/02/18 00:40:24 hobbs Exp $ */ #ifndef _TKBUTTON @@ -96,6 +96,13 @@ typedef struct { Tk_Image selectImage; /* Derived from selectImagePtr by calling * Tk_GetImage, or NULL if selectImagePtr * is NULL. */ + Tcl_Obj *tristateImagePtr; /* Value of -tristateimage option: specifies + * image to display in window when selected, + * or NULL if none. Ignored if imagePtr is + * NULL. */ + Tk_Image tristateImage; /* Derived from tristateImagePtr by calling + * Tk_GetImage, or NULL if tristateImagePtr + * is NULL. */ /* * Information used when displaying widget: @@ -228,6 +235,10 @@ typedef struct { * to store in variable when this button * isn't selected. Used only by * checkbuttons. */ + Tcl_Obj *tristateValuePtr; /* Value of -tristatevalue option: specifies value + * to display Tristate or Multivalue mode when + * variable matches this value. Used by check- + * buttons. */ /* * Miscellaneous information: @@ -286,6 +297,7 @@ typedef struct { #define SELECTED (1 << 1) #define GOT_FOCUS (1 << 2) #define BUTTON_DELETED (1 << 3) +#define TRISTATED (1 << 4) /* * Declaration of variables shared between the files in the button module. */ |