* Declarations of data types and functions used by the
* Copyright (c) 1996 by Sun Microsystems, Inc.
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
* RCS: @(#) $Id: tkColor.h,v 1.4 1998/09/14 18:23:08 stanton Exp $
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLEXPORT
* One of the following data structures is used to keep track of
* each color that the color module has allocated from the X display
#define COLOR_MAGIC ((unsigned int) 0x46140277)
XColor color
; /* Information about this color. */
unsigned int magic
; /* Used for quick integrity check on this
* structure. Must always have the
GC gc
; /* Simple gc with this color as foreground
* color and all other fields defaulted.
Screen
*screen
; /* Screen where this color is valid. Used
* to delete it, and to find its display. */
Colormap colormap
; /* Colormap from which this entry was
Visual
*visual
; /* Visual associated with colormap. */
int refCount
; /* Number of uses of this structure. */
Tcl_HashTable
*tablePtr
; /* Hash table that indexes this structure
* (needed when deleting structure). */
Tcl_HashEntry
*hashPtr
; /* Pointer to hash table entry for this
* structure. (for use in deleting entry). */
* Common APIs exported from all platform-specific implementations.
EXTERN
void TkpFreeColor
_ANSI_ARGS_((TkColor
*tkColPtr
));
EXTERN TkColor
* TkpGetColor
_ANSI_ARGS_((Tk_Window tkwin
,
EXTERN TkColor
* TkpGetColorByValue
_ANSI_ARGS_((Tk_Window tkwin
,
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLIMPORT