1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
|
'\" t
...\" ArrowBuB.sgm /main/11 1996/09/08 20:25:10 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl \" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl \" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie !\\*(f4 \{\
. ft \\*(f4
. ds f4\"
' br \}
.el .ie !\\*(f3 \{\
. ft \\*(f3
. ds f3\"
' br \}
.el .ie !\\*(f2 \{\
. ft \\*(f2
. ds f2\"
' br \}
.el .ie !\\*(f1 \{\
. ft \\*(f1
. ds f1\"
' br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
.TH "XmArrowButtonGadget" "library call"
.SH "NAME"
\fBXmArrowButtonGadget\fP \(em The ArrowButtonGadget widget class
.iX "XmArrowButtonGadget"
.iX "widget class" "ArrowButtonGadget"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/ArrowBG\&.h>
.fi
.SH "DESCRIPTION"
.PP
ArrowButtonGadget consists of a directional arrow surrounded by a border shadow\&.
When it is selected, the shadow changes to give the appearance that the
ArrowButtonGadget has been pressed in\&. When it is unselected, the
shadow reverts to give the appearance that the button is released, or out\&.
.PP
ArrowButtonGadget holds the \fBXmQTactivatable\fP trait\&.
.SS "Classes"
.PP
ArrowButtonGadget inherits behavior, resources, and traits
from the \fBObject\fP, \fBRectObj\fP, and \fBXmGadget\fP classes\&.
.PP
The class pointer is \fBxmArrowButtonGadgetClass\fP\&.
.PP
The class name is \fBXmArrowButtonGadget\fP\&.
.SS "New Resources"
.PP
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 \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or
\fBXmC\fP prefix and use the remaining letters\&. To specify one of the defined
values for a resource in a \fB\&.Xdefaults\fP file, remove the \fBXm\fP 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 \fBXtSetValues\fP (S),
retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmArrowButtonGadget Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNactivateCallbackXmCCallbackXtCallbackListNULLC
_____
XmNarmCallbackXmCCallbackXtCallbackListNULLC
_____
XmNarrowDirectionXmCArrowDirectionunsigned charXmARROW_UPCSG
_____
XmNdetailShadowThicknessXmCDetailShadowThicknessDimension2CSG
_____
XmNdisarmCallbackXmCCallbackXtCallbackListNULLC
_____
XmNmultiClickXmCMultiClickunsigned chardynamicCSG
_____
.TE
.IP "\fBXmNactivateCallback\fP" 10
Specifies a list of callbacks that is called
when the ArrowButtonGadget is activated\&.
To activate the button, press and release
\fBBSelect\fP while the pointer is inside
the ArrowButtonGadget\&. Activating the ArrowButtonGadget
also disarms it\&.
The reason sent by this callback is \fBXmCR_ACTIVATE\fP\&.
This callback uses the \fBXmQTactivatable\fP trait\&.
.IP "\fBXmNarmCallback\fP" 10
Specifies a list of callbacks that is called
when the ArrowButtonGadget is armed\&.
To arm this widget, press \fBBSelect\fP
while the pointer is inside the ArrowButtonGadget\&.
The reason sent by this callback is \fBXmCR_ARM\fP\&.
.IP "\fBXmNarrowDirection\fP" 10
Sets the arrow direction\&.
The values for this resource are
.RS
.IP " \(bu" 6
\fBXmARROW_UP\fP
.IP " \(bu" 6
\fBXmARROW_DOWN\fP
.IP " \(bu" 6
\fBXmARROW_LEFT\fP
.IP " \(bu" 6
\fBXmARROW_RIGHT\fP
.RE
.IP "\fBXmNdetailShadowThickness\fP" 10
Specifies the thickness of the inside arrow shadows\&. The default thickness
is 2 pixels\&.
.IP "\fBXmNdisarmCallback\fP" 10
Specifies a list of callbacks that is called
when the ArrowButtonGadget is disarmed\&.
To disarm this widget, press and release \fBBSelect\fP
while the pointer is inside the ArrowButtonGadget\&.
The reason sent by this callback is \fBXmCR_DISARM\fP\&.
.IP "\fBXmNmultiClick\fP" 10
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 \fBXmMULTICLICK_DISCARD\fP, the second click is not processed\&.
If this resource is set to \fBXmMULTICLICK_KEEP\fP, the event
is processed and \fIclick_count\fP is incremented in the callback structure\&.
When the ArrowButtonGadget is not in a menu, the default value is
\fBXmMULTICLICK_KEEP\fP\&.
.SS "Inherited Resources"
.PP
\fBXmArrowButtonGadget\fP 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\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmGadget Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNbackgroundXmCBackgroundPixeldynamicCSG
_____
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
_____
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapdynamicCSG
_____
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
_____
XmNforegroundXmCForegroundPixeldynamicCSG
_____
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
_____
XmNhighlightOnEnterXmCHighlightOnEnterBooleanFalseCSG
_____
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
_____
XmNhighlightThicknessXmCHighlightThicknessDimension2CSG
_____
XmNlayoutDirectionXmNCLayoutDirectionXmDirectiondynamicCG
_____
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmNONECSG
_____
XmNshadowThicknessXmCShadowThicknessDimension2CSG
_____
XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG
_____
XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG
_____
XmNtraversalOnXmCTraversalOnBooleanTrueCSG
_____
XmNunitTypeXmCUnitTypeunsigned chardynamicCSG
_____
XmNuserDataXmCUserDataXtPointerNULLCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBRectObj Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNancestorSensitiveXmCSensitiveBooleandynamicG
_____
XmNborderWidthXmCBorderWidthDimension0N/A
_____
XmNheightXmCHeightDimensiondynamicCSG
_____
XmNsensitiveXmCSensitiveBooleanTrueCSG
_____
XmNwidthXmCWidthDimensiondynamicCSG
_____
XmNxXmCPositionPosition0CSG
_____
XmNyXmCPositionPosition0CSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBObject Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
_____
.TE
.SS "Callback Information"
.PP
A pointer to the following structure is passed to each callback:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent \fI* event\fP;
int \fIclick_count\fP;
} XmArrowButtonCallbackStruct;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked\&.
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback\&.
.IP "\fIclick_count\fP" 10
This value is valid only when the reason is \fBXmCR_ACTIVATE\fP\&.
It contains the number of clicks in the last multiclick sequence
if the \fBXmNmultiClick\fP resource is set to \fBXmMULTICLICK_KEEP\fP,
otherwise it contains 1\&.
The activate callback is invoked for each click if \fBXmNmultiClick\fP
is set to \fBXmMULTICLICK_KEEP\fP\&.
.SS "Behavior"
.PP
\fBXmArrowButtonGadget\fP includes behavior from \fBXmGadget\fP\&.
The following list describes additional
XmArrowButtonGadget behavior:
.IP "\fB<Btn1Down>\fP:" 10
Draws the shadow in the selected state and
calls the callbacks for \fBXmNarmCallback\fP\&.
.IP "\fB<Btn1Down>\fP\fB\ or\ \fP\fB<Btn1Up>\fP:" 10
Draws the shadow in the unselected state\&.
If the pointer is within the ArrowButtonGadget,
calls the callbacks for \fBXmNactivateCallback\fP\&.
Calls the callbacks for \fBXmNdisarmCallback\fP\&.
.IP "\fB<Btn1Down>\fP\fB(2+)\fP:" 10
If \fBXmNmultiClick\fP is \fBXmMULTICLICK_DISCARD\fP, this action does
nothing\&.
If \fBXmNmultiClick\fP is \fBXmMULTICLICK_KEEP\fP, this action
draws the shadow in the selected state and calls the callbacks for
\fBXmNarmCallback\fP\&.
.IP "\fB<Btn1Up>\fP\fB(2+)\fP:" 10
If \fBXmNmultiClick\fP is \fBXmMULTICLICK_DISCARD\fP, this action does
nothing\&.
.IP "" 10
If \fBXmNmultiClick\fP is \fBXmMULTICLICK_KEEP\fP, this action
increments \fIclick_count\fP in the callback structure and
draws the shadow in the unselected state\&.
If the pointer is within the ArrowButtonGadget, this action calls the
callbacks for \fBXmNactivateCallback\fP and \fBXmNdisarmCallback\fP\&.
.IP "\fB<Key>\fP\fB<osfSelect>\fP:" 10
Draws the shadow in the selected state and
calls the callbacks for \fBXmNarmCallback\fP\&.
Arranges for the shadow to be drawn in the unselected state and
the callbacks for \fBXmNactivateCallback\fP and \fBXmNdisarmCallback\fP
to be called, either immediately or at a later time\&.
.IP "\fB<Key>\fP\fB<osfHelp>\fP:" 10
Calls the callbacks for \fBXmNhelpCallback\fP if any exist\&.
If there are no help callbacks for this widget, this action calls the help
callbacks for the nearest ancestor that has them\&.
.IP "\fB<Enter>\fP:" 10
Draws the ArrowButtonGadget shadow in its selected state if the
pointer leaves and re-enters the gadget while <Btn1> is pressed\&.
.IP "\fB<Leave>\fP:" 10
Draws the ArrowButtonGadget shadow in its unselected state
if the pointer leaves the gadget while <Btn1> is pressed\&.
.SS "Virtual Bindings"
.PP
The bindings for virtual keys are vendor specific\&.
For information about bindings for virtual buttons and keys, see \fBVirtualBindings\fP(3)\&.
.SH "RELATED"
.PP
\fBObject\fP(3), \fBRectObj\fP(3),
\fBXmCreateArrowButtonGadget\fP(3),
\fBXmGadget\fP(3),
\fBXmVaCreateArrowButtonGadget\fP(3), and
\fBXmVaCreateManagedArrowButtonGadget\fP(3)\&.
|