|
NAMEXmtRegisterColor(), XmtVaRegisterColors(), XmtRegisterColors(), XmtRegisterPixel(), XmtRegisterStandardColors() - define symbolic color names in a color table.SYNOPSIS#include <Xmt/Color.h>
void XmtRegisterColor(XmtColorTable table, String symbolic_name, String color_name) void XmtVaRegisterColors(XmtColorTable table, { String symbolic_name, String color_name, } NULL) void XmtRegisterColors(XmtColorTable table, XmtColorPair *colors, Cardinal num) void XmtRegisterPixel(XmtColorTable table, String symbolic_name, Display *display, Colormap colormap, Pixel pixel) void XmtRegisterStandardColors(XmtColorTable table, Widget w, Pixel foreground, Pixel background) typedef struct { String
symbolic_name;
ARGUMENTSINPUTS
DESCRIPTIONThese functions all provide ways of defining symbolic names for actual color names in an XmtColorTable. XmtRegisterColor() is the simplest-it associates symbolic_name with color_name in table.XmtVaRegisterColors() is like XmtRegisterColor(), except that it uses a NULL-terminated variable-length argument list to associate any number of symbolic_name and color_name pairs in table. XmtRegisterColors() is a variation on XmtVaRegisterColors() that uses a counted array of XmtColorPair structures instead of a variable-length argument list of symbolic_name/color_name pairs. XmtRegisterPixel() defines a symbolic name for an already allocated pixel value. Note that it requires Display * and Colormap arguments to specify where the pixel is valid. The pixel value is registered by querying the RGB components of the color and converting these to a hexidecimal RGB color specification. XmtRegisterStandardColors() registers a number of ``standard'' symbolic colors based on the specified foreground and background colors. These ``standard'' colors are the same ones that appear by default in the colorTable application resource. They are listed in the table.
SEE ALSOChapter 4, Using Color,XmtColorTableGetParent(), XmtColorTableSetParent(), XmtCreateColorTable(), XmtDestroyColorTable(), XmtLookupColorName().
Visit the GSP FreeBSD Man Page Interface. |