(3)

NAME
CheckBox

DESCRIPTION
The CheckBox widget contains a text label and a rectangular box that is either unchecked (empty) or checked (contains an x). The current state of the checkbox can be obtained by querying the state resource.

  Public variables
CheckBox
Name | Class | Type | Default
XtNlabel | XtCLabel | String | NULL
XtNfont | XtCFont | FontStruct | XtDefaultFont
XtNcolor | XtCColor | Pixel | XtDefaultForeground
XtNinternalOffset | XtCInternalOffset | Dimension | 2
XtNboxSize | XtCBoxSize | Dimension | 11
XtNboxGap | XtCBoxGap | Dimension | 9
XtNstate | XtCState | Boolean | False

XtNlabel
    The text to be displayed

XtNfont
    The text is drawn using the font given in the font resources.

XtNcolor
    The color resource specifies the color used for drawing the text.

XtNinternalOffset
    The offset from the text to the outside edge of the widgets window.

XtNboxSize
    The size of the checkbox.

XtNboxGap
    The number of pixels between the checkbox and the text.

XtNstate
    The state of the checkbox. True means on, False means off.

XtNborder_width
    The border_width by default is 0.

    Core
    Name | Class | Type | Default
    XtNx | XtCX | Position | 0
    XtNy | XtCY | Position | 0
    XtNwidth | XtCWidth | Dimension | 0
    XtNheight | XtCHeight | Dimension | 0
    borderWidth | XtCBorderWidth | Dimension | 0
    XtNcolormap | XtCColormap | Colormap | NULL
    XtNdepth | XtCDepth | Int | 0
    destroyCallback | XtCDestroyCallback | XTCallbackList | NULL
    XtNsensitive | XtCSensitive | Boolean | True
    XtNtm | XtCTm | XTTMRec | NULL
    ancestorSensitive | XtCAncestorSensitive | Boolean | False
    accelerators | XtCAccelerators | XTTranslations | NULL
    borderColor | XtCBorderColor | Pixel | 0
    borderPixmap | XtCBorderPixmap | Pixmap | NULL
    background | XtCBackground | Pixel | 0
    backgroundPixmap | XtCBackgroundPixmap | Pixmap | NULL
    mappedWhenManaged | XtCMappedWhenManaged | Boolean | True
    XtNscreen | XtCScreen | Screen * | NULL

  Translations
The toggle action toggles the widget between `on' and `off'. By default it is bound to a click of the left mouse button as well as to the Space key.

<Btn1Down>,<Btn1Up>: toggle()
<Key>space: toggle()

  Actions

toggle
    The toggle action switches the state of the checkbox.