Specifications
Athena Widget Set libXaw 1.0.7
XEvent *event;
String *params;
Cardinal num_params;
}XawGripCallDataRec, *XawGripCallData,
GripCallDataRec, *GripCallData; /* supported for R4 compatibility */
In this structure, the event is a pointer to the input event that triggered the action. params and
num_params give the string parameters specified in the translation table for the particular event
binding.
The following is an example of a translation table that uses the GripAction:
<Btn1Down>: GripAction(press)
<Btn1Motion>: GripAction(move)
<Btn1Up>: GripAction(release)
Foracomplete description of the format of translation tables, see the XToolkit Intrinsics — C
Language Interface.
3.3. Label Widget
Application header file <X11/Xaw/Label.h>
Class header file <X11/Xaw/LabelP.h>
Class labelWidgetClass
Class Name Label
Superclass Simple
ALabel widget holds a graphic displayed within a rectangular region of the screen. The graphic
may be a text string containing multiple lines of characters in an 8 bit or 16 bit character set (to be
displayed with a font), or in a multi-byte encoding (for use with a fontset). The graphic may also
be a bitmap or pixmap. The Label widget will allowits graphic to be left, right, or center justi-
fied. Normally,this widget can be neither selected nor directly edited by the user.Itisintended
for use as an output device only.
3.3.1. Resources
When creating a Label widget instance, the following resources are retrievedfrom the argument
list or from the resource database:
Name Class Type Notes Default Value
accelerators Accelerators AcceleratorTable NULL
ancestorSensitive AncestorSensitive Boolean D True
background Background Pixel XtDefaultBackground
backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap
bitmap Bitmap Pixmap None
borderColor BorderColor Pixel XtDefaultForeground
borderPixmap Pixmap Pixmap XtUnspecifiedPixmap
borderWidth BorderWidth Dimension 1
colormap Colormap Colormap Parent’sColormap
cursor Cursor Cursor None
cursorName Cursor String NULL
depth Depth int C Parent’sDepth
25