Query: xmdrawnbutton
OS: hpux
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XmDrawnButton(library call) XmDrawnButton(library call)NAMEXmDrawnButton -- The DrawnButton widget classSYNOPSIS#include <Xm/DrawnB.h>DESCRIPTIONThe 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. DrawnButton uses the XmQTmenuSystem and XmQTspecifyRenderTable traits, and holds the XmQTactivatable trait. Classes BulletinBoard inherits behavior, resources, and traits from the Core, Composite, Constraint, and XmManager 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 val- ues 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 | | | |Name | Class | Type | Default | Access | +---------------------+----------------------+----------------+--------------------+--------+ |XmNactivateCallback | XmCCallback | XtCallbackList | NULL | C | +---------------------+----------------------+----------------+--------------------+--------+ |XmNarmCallback | XmCCallback | XtCallbackList | NULL | C | +---------------------+----------------------+----------------+--------------------+--------+ |XmNdisarmCallback | XmCCallback | XtCallbackList | NULL | C | +---------------------+----------------------+----------------+--------------------+--------+ |XmNexposeCallback | XmCCallback | XtCallbackList | NULL | C | +---------------------+----------------------+----------------+--------------------+--------+ |XmNmultiClick | XmCMultiClick | unsigned char | dynamic | CSG | +---------------------+----------------------+----------------+--------------------+--------+ |XmNpushButtonEnabled | XmCPushButtonEnabled | Boolean | False | CSG | +---------------------+----------------------+----------------+--------------------+--------+ |XmNresizeCallback | XmCCallback | XtCallbackList | NULL | C | +---------------------+----------------------+----------------+--------------------+--------+ |XmNshadowType | XmCShadowType | unsigned char | XmSHADOW_ETCHED_IN | CSG | +---------------------+----------------------+----------------+--------------------+--------+ +---------------------+----------------------+----------------+--------------------+--------+ XmNactivateCallback Specifies the list of callbacks that is called when the widget becomes selected. The reason sent by the callback is XmCR_ACTI- VATE. This callback uses the XmQTactivatable trait. XmNarmCallback Specifies the list of callbacks that is called when the widget becomes armed. The reason sent by the callback is XmCR_ARM. XmNdisarmCallback Specifies the list of callbacks that is called when the widget becomes disarmed. The reason sent by the callback is XmCR_DISARM. XmNexposeCallback Specifies the list of callbacks that is called when the widget receives an exposure event. The reason sent by the callback is XmCR_EXPOSE. XmNmultiClick If a button click is followed by another button click within the time span specified by the display's multiclick time, and this resource is set to XmMULTICLICK_DISCARD, the second click is not processed. If this resource is set to XmMULTICLICK_KEEP, the event is processed and click_count is incremented in the callback structure. When the button is not in a menu, the default value is XmMULTICLICK_KEEP. XmNpushButtonEnabled Enables or disables the 3-dimensional shadow drawing as in PushButton. XmNresizeCallback Specifies the list of callbacks 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. XmNshadowType 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 coming 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 superclasses described in the following tables. For a complete description of each resource, refer to the reference page for that superclass. +------------------------------------------------------------------------------------------------------------+ | | XmLabel Resource Set | | | |Name | Class | Type | Default | Access | +--------------------------+---------------------------+-------------------+------------------------+--------+ |XmNaccelerator | XmCAccelerator | String | NULL | N/A | +--------------------------+---------------------------+-------------------+------------------------+--------+ |XmNacceleratorText | XmCAcceleratorText | XmString | NULL | N/A | +--------------------------+---------------------------+-------------------+------------------------+--------+ |XmNalignment | XmCAlignment | unsigned char | dynamic | CSG | +--------------------------+---------------------------+-------------------+------------------------+--------+ |XmNfontList | XmCFontList | XmFontList | dynamic | CSG | +--------------------------+---------------------------+-------------------+------------------------+--------+ |XmNlabelInsensitivePixmap | XmCLabelInsensitivePixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG | +--------------------------+---------------------------+-------------------+------------------------+--------+ |XmNlabelPixmap | XmCLabelPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG | +--------------------------+---------------------------+-------------------+------------------------+--------+ |XmNlabelString | XmCXmString | XmString | "