| Name | Type | Default | Access |
|---|---|---|---|
| XmNapplyCallback | XtCallbackList | NULL | C |
| XmNcancelCallback | XtCallbackList | NULL | C |
| XmNcolorFilename | char * | /usr/lib/X11/rgb.txt | CSG |
| XmNcolorModel | int | XintRGB | CSG |
| XmNcolorSelectionMode | int | XintCOLOR_SLIDER | CG |
| XmNeditPixel | Pixel | white | CSG |
| XmNhelpCallback | XtCallbackList | NULL | C |
| XmNokCallback | XtCallbackList | NULL | C |
| XmNshowApplyButton | Boolean | False | CG |
| XmNshowHelpButton | Boolean | False | CG |
| XmNshowHexValue | Boolean | True | CG |
| XmNsynchronizeScale | Boolean | True | CSG |
| XmNtitleFontList | XmFontList | "*helvetica-bold-r-*-180-*" | CSG |
| XmNtitleString | XmString | NULL | CSG |
| Resource Value | Description |
|---|---|
| XintRGB (default) | The RGB slider bars will be displayed initially. |
| XintCMY | The CMY slider bars will be displayed initially. |
| XintHLS | The HLS slider bars will be displayed initially. |
| Resource Value | Description |
|---|---|
| XintCOLOR_LIST | Only the named color list is available. |
| XintCOLOR_LIST_AND_SLIDER | Both the named color list and the color sliders are available. |
| XintCOLOR_SLIDER (default) | Only the color sliders are available. |
| Name | Class | Description |
|---|---|---|
| apply_button | XmPushButtonGadget | The Apply pushbutton. |
| cancel_button | XmPushButtonGadget | The Cancel pushbutton. |
| color_display | XmDrawingArea | Displays the current color. |
| color_list | XmList | List box containing named colors. |
| cmy_toggle | XmToggleButtonGadget | Selects the CMY color model. |
| hls_toggle | XmToggleButtonGadget | Selects the HLS color model. |
| help_button | XmPushButtonGadget | The Help pushbutton. |
| hex_text | XmText | Displays the hexadecimal value of the current color. |
| ok_button | XmPushButtonGadget | The OK pushbutton |
| radio_box | XmRowColumn | Contains the RGB, HLS, and CMY radio buttons. |
| rgb_toggle | XmToggleButtonGadget | Selects the RGB color model. |
| scale1 | XmScale | Top slider bar. |
| scale2 | XmScale | Middle slider bar. |
| scale3 | XmScale | Bottom slider bar. |
| separator1 | XmSeparatorGadget | Separator above the color selection mode radio box. |
| separator2 | XmSeparatorGadget | Separator above the OK, Apply, Cancel, and Help pushbuttons. |
| title_label | XmLabelGadget | Contains the optional title. |
| Name | Structure | Reason |
|---|---|---|
| XmNapplyCallback | XmAnyCallbackStruct | XmCR_APPLY |
| XmNcancelCallback | XmAnyCallbackStruct | XmCR_CANCEL |
| XmNhelpCallback | XmAnyCallbackStruct | XmCR_HELP |
| XmNokCallback | XmAnyCallbackStruct | XmCR_OK |
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Points to the XEvent that triggered the callback. |
| Function Name | Description |
|---|---|
| XintCreateEditColor | Creates an EditColor widget. |
| XintCreateEditColorDialog | Creates a dialog shell containing an EditColor widget. |
| XintEditColorGetColor | Returns the original color and the new color. |
| XintEditColorGetChild | Returns the widget ID of a named child of an EditColor widget. |
| XintEditColorGetScale | Returns the widget IDs of the three scale widgets. |
Widget XintCreateEditColor (...)
| Widget | parent | Parent of new EditColor widget. |
| char * | name | Name of new EditColor widget. |
| ArgList | arglist | List of resource/value items. |
| Cardinal | argcount | Number of items in arglist. |
Widget XintCreateEditColorDialog (...)
| Widget | parent | Parent of new dialog shell. |
| char * | name | Name of new dialog shell. |
| ArgList | arglist | List of resource/value items. |
| Cardinal | argcount | Number of items in arglist. |
| Widget | widget | EditColor widget ID. |
| XColor * | initial_color | Address of an XColor structure where information about the original color will be returned. |
| XColor * | current_color | Address of an XColor structure where information about the edited color will be returned. |
| Widget | widget | EditColor widget ID. |
| int | child | Code specifying the child of interest. |
The following defined constants can be used to specify the value for child:
| Constant Name | Description |
|---|---|
| XintEDIT_COLOR_COLOR_SQUARE | Current color drawing area. |
| XintEDIT_COLOR_HEX_TEXT | Current color hex value text. |
| XintEDIT_COLOR_SEPARATOR | Pushbutton separator. |
| XintEDIT_COLOR_APPLY | Apply pushbutton. |
| XintEDIT_COLOR_CANCEL | Cancel pushbutton. |
| XintEDIT_COLOR_HELP | Help pushbutton. |
| XintEDIT_COLOR_OK | OK pushbutton. |
| XintEDIT_COLOR_LIST | Named color list box. |
| XintEDIT_COLOR_FRAME | Frame containing color square. |
void XintEditColorGetScale (...)
| Widget | widget | EditColor widget ID. |
| Widget * | scale1 | Widget ID returned for top slider. |
| Widget * | scale2 | Widget ID returned for middle slider. |
| Widget * | scale3 | Widget ID returned for bottom slider. |