Blame doc/man/man3/XmArrowButton.3

Packit b099d7
'\" t
Packit b099d7
...\" ArrowBuA.sgm /main/11 1996/09/08 20:24:54 rws $
Packit b099d7
.de P!
Packit b099d7
.fl
Packit b099d7
\!!1 setgray
Packit b099d7
.fl
Packit b099d7
\\&.\"
Packit b099d7
.fl
Packit b099d7
\!!0 setgray
Packit b099d7
.fl			\" force out current output buffer
Packit b099d7
\!!save /psv exch def currentpoint translate 0 0 moveto
Packit b099d7
\!!/showpage{}def
Packit b099d7
.fl			\" prolog
Packit b099d7
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
Packit b099d7
\!!psv restore
Packit b099d7
.
Packit b099d7
.de pF
Packit b099d7
.ie     ?\\*(f1?? .ds f1 \\n(.f
Packit b099d7
.el .ie ?\\*(f2?? .ds f2 \\n(.f
Packit b099d7
.el .ie ?\\*(f3?? .ds f3 \\n(.f
Packit b099d7
.el .ie ?\\*(f4?? .ds f4 \\n(.f
Packit b099d7
.el .tm ? font overflow
Packit b099d7
.ft \\$1
Packit b099d7
..
Packit b099d7
.de fP
Packit b099d7
.ie     !?\\*(f4?? \{\
Packit b099d7
.	ft \\*(f4
Packit b099d7
.	ds f4\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f3?? \{\
Packit b099d7
.	ft \\*(f3
Packit b099d7
.	ds f3\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f2?? \{\
Packit b099d7
.	ft \\*(f2
Packit b099d7
.	ds f2\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f1?? \{\
Packit b099d7
.	ft \\*(f1
Packit b099d7
.	ds f1\"
Packit b099d7
'	br \}
Packit b099d7
.el .tm ? font underflow
Packit b099d7
..
Packit b099d7
.ds f1\"
Packit b099d7
.ds f2\"
Packit b099d7
.ds f3\"
Packit b099d7
.ds f4\"
Packit b099d7
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
Packit b099d7
.TH "XmArrowButton" "library call"
Packit b099d7
.SH "NAME"
Packit b099d7
\fBXmArrowButton\fP \(em The ArrowButton widget class
Packit b099d7
.iX "XmArrowButton"
Packit b099d7
.iX "widget class" "ArrowButton"
Packit b099d7
.SH "SYNOPSIS"
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
#include <Xm/ArrowB\&.h>
Packit b099d7
.fi
Packit b099d7
.SH "DESCRIPTION"
Packit b099d7
.PP
Packit b099d7
ArrowButton consists of a directional arrow surrounded by a
Packit b099d7
border shadow\&. When it is selected, the shadow changes
Packit b099d7
to give the appearance that the
Packit b099d7
ArrowButton has been pressed in\&. When the
Packit b099d7
ArrowButton is unselected, the shadow reverts to give the appearance that the
Packit b099d7
ArrowButton is released, or out\&.
Packit b099d7
.PP
Packit b099d7
ArrowButton holds the \fBXmQTactivatable\fP trait\&.
Packit b099d7
.SS "Classes"
Packit b099d7
.PP
Packit b099d7
ArrowButton inherits behavior, resources, and traits
Packit b099d7
from the \fBCore\fP and \fBXmPrimitive\fP classes\&.
Packit b099d7
.PP
Packit b099d7
The class pointer is \fBxmArrowButtonWidgetClass\fP\&.
Packit b099d7
.PP
Packit b099d7
The class name is \fBXmArrowButton\fP\&.
Packit b099d7
.SS "New Resources"
Packit b099d7
.PP
Packit b099d7
The following table defines a set of widget resources used by the programmer
Packit b099d7
to specify data\&. The programmer can also set the resource values for the
Packit b099d7
inherited classes to set attributes for this widget\&. To reference a
Packit b099d7
resource by name or by class in a \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or
Packit b099d7
\fBXmC\fP prefix and use the remaining letters\&. To specify one of the defined
Packit b099d7
values for a resource in a \fB\&.Xdefaults\fP file, remove the \fBXm\fP prefix and use
Packit b099d7
the remaining letters (in either lowercase or uppercase, but include any
Packit b099d7
underscores between words)\&.
Packit b099d7
The codes in the access column indicate if the given resource can be
Packit b099d7
set at creation time (C),
Packit b099d7
set by using \fBXtSetValues\fP (S),
Packit b099d7
retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&.
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBXmArrowButton Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNactivateCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNarmCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNarrowDirection?XmCArrowDirection?unsigned char?XmARROW_UP?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdetailShadowThickness?XmCDetailShadowThickness?Dimension?2?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdisarmCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNmultiClick?XmCMultiClick?unsigned char?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.IP "\fBXmNactivateCallback\fP" 10
Packit b099d7
Specifies a list of callbacks that is called
Packit b099d7
when the ArrowButton is activated\&.
Packit b099d7
To activate the button, press and release \fBBSelect\fP
Packit b099d7
while the pointer is inside
Packit b099d7
the ArrowButton widget\&. Activating the ArrowButton
Packit b099d7
also disarms it\&.
Packit b099d7
The reason sent by this callback is \fBXmCR_ACTIVATE\fP\&.
Packit b099d7
This callback uses the \fBXmQTactivatable\fP trait\&.
Packit b099d7
.IP "\fBXmNarmCallback\fP" 10
Packit b099d7
Specifies a list of callbacks that is called
Packit b099d7
when the ArrowButton is armed\&.
Packit b099d7
To arm this widget, press \fBBSelect\fP
Packit b099d7
while the pointer is inside the ArrowButton\&.
Packit b099d7
The reason sent by this callback is \fBXmCR_ARM\fP\&.
Packit b099d7
.IP "\fBXmNarrowDirection\fP" 10
Packit b099d7
Sets the arrow direction\&.
Packit b099d7
The values for this resource are
Packit b099d7
.RS
Packit b099d7
.IP "   \(bu" 6
Packit b099d7
\fBXmARROW_UP\fP
Packit b099d7
.IP "   \(bu" 6
Packit b099d7
\fBXmARROW_DOWN\fP
Packit b099d7
.IP "   \(bu" 6
Packit b099d7
\fBXmARROW_LEFT\fP
Packit b099d7
.IP "   \(bu" 6
Packit b099d7
\fBXmARROW_RIGHT\fP
Packit b099d7
.RE
Packit b099d7
.IP "\fBXmNdetailShadowThickness\fP" 10
Packit b099d7
Specifies the thickness of the inside arrow shadows\&. The default thickness
Packit b099d7
is 2 pixels\&.
Packit b099d7
.IP "\fBXmNdisarmCallback\fP" 10
Packit b099d7
Specifies a list of callbacks that is called
Packit b099d7
when the ArrowButton is disarmed\&.
Packit b099d7
To disarm this widget, press and release
Packit b099d7
\fBBSelect\fP while the pointer is inside the ArrowButton\&.
Packit b099d7
The reason for this callback is \fBXmCR_DISARM\fP\&.
Packit b099d7
.IP "\fBXmNmultiClick\fP" 10
Packit b099d7
If a button click is followed by another button click within the time
Packit b099d7
span specified by the display\&'s multiclick time, and this resource is
Packit b099d7
set to \fBXmMULTICLICK_DISCARD\fP, the second click\&.
Packit b099d7
is not processed\&.
Packit b099d7
If this resource is set to \fBXmMULTICLICK_KEEP\fP, the event
Packit b099d7
is processed and \fIclick_count\fP is incremented in the callback structure\&.
Packit b099d7
When the button is not in a menu, the default value is
Packit b099d7
\fBXmMULTICLICK_KEEP\fP\&.
Packit b099d7
.SS "Inherited Resources"
Packit b099d7
.PP
Packit b099d7
ArrowButton inherits behavior and resources from the
Packit b099d7
superclasses described in the following table\&.
Packit b099d7
For a complete description of each resource, refer to the
Packit b099d7
reference page for that superclass\&.
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBXmPrimitive Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbottomShadowColor?XmCBottomShadowColor?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbottomShadowPixmap?XmCBottomShadowPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNconvertCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNforeground?XmCForeground?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhelpCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhighlightColor?XmCHighlightColor?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhighlightOnEnter?XmCHighlightOnEnter?Boolean?False?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhighlightPixmap?XmCHighlightPixmap?Pixmap?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhighlightThickness?XmCHighlightThickness?Dimension?2?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNlayoutDirection?XmCLayoutDirection?XmDirection?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNnavigationType?XmCNavigationType?XmNavigationType?XmNONE?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNpopupHandlerCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNshadowThickness?XmCShadowThickness?Dimension?2?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtopShadowColor?XmCTopShadowColor?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtopShadowPixmap?XmCTopShadowPixmap?Pixmap?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtraversalOn?XmCTraversalOn?Boolean?True?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNunitType?XmCUnitType?unsigned char?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNuserData?XmCUserData?XtPointer?NULL?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBCore Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNaccelerators?XmCAccelerators?XtAccelerators?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNancestorSensitive?XmCSensitive?Boolean?dynamic?G
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbackground?XmCBackground?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbackgroundPixmap?XmCPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNborderColor?XmCBorderColor?Pixel?XtDefaultForeground?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNborderPixmap?XmCPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNborderWidth?XmCBorderWidth?Dimension?0?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNcolormap?XmCColormap?Colormap?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdepth?XmCDepth?int?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdestroyCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNheight?XmCHeight?Dimension?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNinitialResourcesPersistent?XmCInitialResourcesPersistent?Boolean?True?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNmappedWhenManaged?XmCMappedWhenManaged?Boolean?True?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNscreen?XmCScreen?Screen *?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNsensitive?XmCSensitive?Boolean?True?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtranslations?XmCTranslations?XtTranslations?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNwidth?XmCWidth?Dimension?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNx?XmCPosition?Position?0?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNy?XmCPosition?Position?0?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.SS "Callback Information"
Packit b099d7
.PP
Packit b099d7
A pointer to the following structure is passed to each callback:
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
typedef struct
Packit b099d7
{
Packit b099d7
        int \fIreason\fP;
Packit b099d7
        XEvent \fI* event\fP;
Packit b099d7
        int \fIclick_count\fP;
Packit b099d7
} XmArrowButtonCallbackStruct;
Packit b099d7
.fi
Packit b099d7
.IP "\fIreason\fP" 10
Packit b099d7
Indicates why the callback was invoked\&.
Packit b099d7
.IP "\fIevent\fP" 10
Packit b099d7
Points to the \fBXEvent\fP that triggered the callback\&.
Packit b099d7
.IP "\fIclick_count\fP" 10
Packit b099d7
This value is valid only when the reason is \fBXmCR_ACTIVATE\fP\&.
Packit b099d7
It contains the number of clicks in the last multiclick sequence
Packit b099d7
if the \fBXmNmultiClick\fP resource is set to \fBXmMULTICLICK_KEEP\fP;
Packit b099d7
otherwise it contains 1\&.
Packit b099d7
The activate callback is invoked for each click if \fBXmNmultiClick\fP
Packit b099d7
is set to \fBXmMULTICLICK_KEEP\fP\&.
Packit b099d7
.SS "Translations"
Packit b099d7
.PP
Packit b099d7
XmArrowButton includes translations for XmPrimitive\&.
Packit b099d7
The following key names are listed in the
Packit b099d7
X standard key event translation table syntax\&.
Packit b099d7
This format is the one used by Motif to
Packit b099d7
specify the widget actions corresponding to a given key\&.
Packit b099d7
A brief overview of the format is provided under
Packit b099d7
\fBVirtualBindings\fP(3)\&.
Packit b099d7
For a complete description of the format, please refer to the
Packit b099d7
X Toolkit Instrinsics Documentation\&.
Packit b099d7
.IP "\fB<EnterWindow>\fP:" 10
Packit b099d7
Enter()
Packit b099d7
.IP "\fB<LeaveWindow>\fP:" 10
Packit b099d7
Leave()
Packit b099d7
.IP "\fBc<Btn1Down>\fP:" 10
Packit b099d7
ButtonTakeFocus()
Packit b099d7
.IP "\fB\(apc\fP\fB<Btn1Down>\fP:" 10
Packit b099d7
Arm()
Packit b099d7
.IP "\fB\(apc\fP\fB<Btn1Down>\fP\fB,\(apc\fP\fB<Btn1Up>\fP:" 10
Packit b099d7
Activate() Disarm()
Packit b099d7
.IP "\fB\(apc\fP\fB<Btn1Down>\fP\fB(2+)\fP:" 10
Packit b099d7
MultiArm()
Packit b099d7
.IP "\fB\(apc\fP\fB<Btn1Up>\fP\fB(2+)\fP:" 10
Packit b099d7
MultiActivate()
Packit b099d7
.IP "\fB\(apc\fP\fB<Btn1Up>\fP:" 10
Packit b099d7
Activate() Disarm()
Packit b099d7
.IP "\fB:\fP\fB<Key>\fP\fB<osfActivate>\fP:" 10
Packit b099d7
PrimitiveParentActivate()
Packit b099d7
.IP "\fB:\fP\fB<Key>\fP\fB<osfCancel>\fP:" 10
Packit b099d7
PrimitiveParentCancel()
Packit b099d7
.IP "\fB:\fP\fB<Key>\fP\fB<osfSelect>\fP:" 10
Packit b099d7
ArmAndActivate()
Packit b099d7
.IP "\fB:\fP\fB<Key>\fP\fB<osfHelp>\fP:" 10
Packit b099d7
Help()
Packit b099d7
.IP "\fB\(aps \(apm \(apa\fP \fB<Key>\fP\fBReturn\fP:" 10
Packit b099d7
PrimitiveParentActivate()
Packit b099d7
.IP "\fB\(aps \(apm \(apa\fP \fB<Key>\fP\fBspace\fP:" 10
Packit b099d7
ArmAndActivate()
Packit b099d7
.SS "Action Routines"
Packit b099d7
.PP
Packit b099d7
The \fBXmArrowButton\fP action routines are
Packit b099d7
.IP "Activate():" 10
Packit b099d7
Draws the shadow in the unselected state\&.
Packit b099d7
If the pointer is within the ArrowButton,
Packit b099d7
calls the callbacks for \fBXmNactivateCallback\fP\&.
Packit b099d7
.IP "Arm():" 10
Packit b099d7
Draws the shadow in the selected state and
Packit b099d7
calls the callbacks for \fBXmNarmCallback\fP\&.
Packit b099d7
.IP "ArmAndActivate():" 10
Packit b099d7
Draws the shadow in the selected state and
Packit b099d7
calls the callbacks for \fBXmNarmCallback\fP\&.
Packit b099d7
Arranges for the shadow to be drawn in the unselected state and
Packit b099d7
the callbacks for \fBXmNactivateCallback\fP and \fBXmNdisarmCallback\fP
Packit b099d7
to be called, either immediately or at a later time\&.
Packit b099d7
.IP "ButtonTakeFocus():" 10
Packit b099d7
Causes the ArrowButton to take keyboard focus
Packit b099d7
when \fBCtrl<Btn1Down>\fP is pressed, without activating the widget\&.
Packit b099d7
.IP "Disarm():" 10
Packit b099d7
Draws the shadow in the unselected state and
Packit b099d7
calls the callbacks for \fBXmNdisarmCallback\fP\&.
Packit b099d7
.IP "Help():" 10
Packit b099d7
Calls the callbacks for \fBXmNhelpCallback\fP if any exist\&.
Packit b099d7
If there are no help callbacks for this widget, this action calls the
Packit b099d7
help callbacks for the nearest ancestor that has them\&.
Packit b099d7
.IP "MultiActivate():" 10
Packit b099d7
If \fBXmNmultiClick\fP is \fBXmMULTICLICK_DISCARD\fP, this action does
Packit b099d7
nothing\&.
Packit b099d7
.IP "" 10
Packit b099d7
If \fBXmNmultiClick\fP is \fBXmMULTICLICK_KEEP\fP, this action
Packit b099d7
increments \fIclick_count\fP in the callback structure and
Packit b099d7
draws the shadow in the unselected state\&.
Packit b099d7
If the pointer is within the ArrowButton, this action calls the
Packit b099d7
callbacks for \fBXmNactivateCallback\fP and \fBXmNdisarmCallback\fP\&.
Packit b099d7
.IP "MultiArm():" 10
Packit b099d7
If \fBXmNmultiClick\fP is \fBXmMULTICLICK_DISCARD\fP, this action does
Packit b099d7
nothing\&.
Packit b099d7
If \fBXmNmultiClick\fP is \fBXmMULTICLICK_KEEP\fP, this action
Packit b099d7
draws the shadow in the selected state and calls the callbacks for
Packit b099d7
\fBXmNarmCallback\fP\&.
Packit b099d7
.SS "Additional Behavior"
Packit b099d7
.PP
Packit b099d7
This widget has the following additional behavior:
Packit b099d7
.IP "\fB<EnterWindow>\fP:" 10
Packit b099d7
Draws the ArrowButton shadow in its selected state if the
Packit b099d7
pointer leaves and re-enters the window while \fB<Btn1>\fP is pressed\&.
Packit b099d7
.IP "\fB<LeaveWindow>\fP:" 10
Packit b099d7
Draws the ArrowButton shadow in its unselected state
Packit b099d7
if the pointer leaves the window while \fB<Btn1>\fP is pressed\&.
Packit b099d7
.SS "Virtual Bindings"
Packit b099d7
.PP
Packit b099d7
The bindings for virtual keys are vendor specific\&.
Packit b099d7
For information about bindings for virtual buttons and keys, see \fBVirtualBindings\fP(3)\&.
Packit b099d7
.SH "RELATED"
Packit b099d7
.PP
Packit b099d7
\fBCore\fP(3), \fBXmCreateArrowButton\fP(3), \fBXmPrimitive\fP(3),
Packit b099d7
\fBXmVaCreateArrowButton\fP(3), and \fBXmVaCreateManagedArrowButton\fP(3)\&.