XmDrawnButton(3X) XmDrawnButton(3X)
NAME
XmDrawnButton - The DrawnButton widget class
SYNOPSIS
#include <Xm/DrawnB.h>
DESCRIPTION
The DrawnButton widget consists of an empty widget window surrounded by a shadow border. It provides the application developer with a
graphics area that can have PushButton input semantics.
Callback types are defined for widget exposure and widget resize to allow the application to redraw or reposition its graphics. If the
DrawnButton widget has a highlight and shadow thickness, the application should not draw in that area. To avoid drawing in the highlight
and shadow area, create the graphics context with a clipping rectangle for drawing in the widget. The clipping rectangle should take into
account the size of the widget's highlight thickness and shadow.
Classes
DrawnButton inherits behavior and resources from Core, XmPrimitive, and XmLabel Classes.
The class pointer is xmDrawnButtonWidgetClass.
The class name is XmDrawnButton.
New Resources
The following table defines a set of widget resources used by the programmer to specify data. The programmer can also set the resource
values for the inherited classes to set attributes for this widget. To reference a resource by name or by class in a .Xdefaults file,
remove the XmN or XmC prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file,
remove the Xm prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words). The codes
in the access column indicate if the given resource can be set at creation time (C), set by using XtSetValues (S), retrieved by using
XtGetValues (G), or is not applicable (N/A).
XmDrawnButton Resource Set
Class: XmCCallback Default: NULL Type: XtCallbackList Access: C Class: XmCCallback Default: NULL Type: XtCallbackList Access: C Class:
XmCCallback Default: NULL Type: XtCallbackList Access: C Class: XmCCallback Default: NULL Type: XtCallbackList Access: C Class: XmCMul-
tiClick Default: dynamic Type: unsigned char Access: CSG Class: XmCPushButtonEnabled Default: False Type: Boolean Access: CSG Class: XmC-
Callback Default: NULL Type: XtCallbackList Access: C Class: XmCShadowType Default: XmSHADOW_ETCHED_IN Type: unsigned char Access: CSG
Specifies the list of callbacks that is called when the widget becomes selected. The reason sent by the callback is XmCR_ACTIVATE.
Specifies the list of callbacks that is called when the widget becomes armed. The reason sent by the callback is XmCR_ARM. Speci-
fies the list of callbacks that is called when the widget becomes disarmed. The reason sent by the callback is XmCR_DISARM. Speci-
fies the list of callbacks that is called when the widget receives an exposure event. The reason sent by the callback is
XmCR_EXPOSE. If a button click is followed by another button click within the time span specified by the display's multi-click
time, and this resource is set to XmMULTICLICK_DISCARD, do not process the second click. If this resource is set to XmMUL-
TICLICK_KEEP, process the event and increment click_count in the callback structure. When the button is not in a menu, the default
value is XmMULTICLICK_KEEP. Enables or disables the three-dimensional shadow drawing as in PushButton. Specifies the list of call-
backs that is called when the widget receives a resize event. The reason sent by the callback is XmCR_RESIZE. The event returned
for this callback is NULL. Describes the drawing style for the DrawnButton. This resource can have the following values:
XmSHADOW_IN--draws the DrawnButton so that the shadow appears inset. This means that the bottom shadow visuals and top shadow visu-
als are reversed. XmSHADOW_OUT--draws the DrawnButton so that the shadow appears outset. XmSHADOW_ETCHED_IN--draws the DrawnButton
using a double line. This gives the effect of a line etched into the window. The thickness of the double line is equal to the
value of XmNshadowThickness. XmSHADOW_ETCHED_OUT--draws the DrawnButton using a double line. This gives the effect of a line com-
ing out of the window. The thickness of the double line is equal to the value of XmNshadowThickness.
Inherited Resources
DrawnButton inherits behavior and resources from the following superclasses. For a complete description of each resource, refer to the man
page for that superclass.
XmLabel Resource Set
Class: XmCAccelerator Default: NULL Type: String Access: N/A Class: XmCAcceleratorText Default: NULL Type: XmString Access: N/A Class:
XmCAlignment Default: dynamic Type: unsigned char Access: CSG Class: XmCFontList Default: dynamic Type: XmFontList Access: CSG Class:
XmCLabelInsensitivePixmap Default: XmUNSPECIFIED_PIXMAP Type: Pixmap Access: CSG Class: XmCLabelPixmap Default: XmUNSPECIFIED_PIXMAP Type:
Pixmap Access: CSG Class: XmCXmString Default: "