|
Packit |
b099d7 |
'\" t
|
|
Packit |
b099d7 |
...\" Scale.sgm /main/13 1996/09/30 13:14:06 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 "XmScale" "library call"
|
|
Packit |
b099d7 |
.SH "NAME"
|
|
Packit |
b099d7 |
\fBXmScale\fP \(em The Scale widget class
|
|
Packit |
b099d7 |
.iX "XmScale"
|
|
Packit |
b099d7 |
.iX "widget class" "Scale"
|
|
Packit |
b099d7 |
.SH "SYNOPSIS"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.nf
|
|
Packit |
b099d7 |
#include <Xm/Scale\&.h>
|
|
Packit |
b099d7 |
.fi
|
|
Packit |
b099d7 |
.SH "DESCRIPTION"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
Scale is used by an application to indicate a
|
|
Packit |
b099d7 |
value from within a range of values, and it allows the user to input or modify
|
|
Packit |
b099d7 |
a value from the same range\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
A Scale has an elongated rectangular region similar to a
|
|
Packit |
b099d7 |
ScrollBar\&. A slider inside this region
|
|
Packit |
b099d7 |
indicates the current value along the Scale\&. The user can also
|
|
Packit |
b099d7 |
modify the Scale\&'s value by moving the slider within the
|
|
Packit |
b099d7 |
rectangular region of the Scale\&. A Scale can also include a label set
|
|
Packit |
b099d7 |
located outside the Scale region\&.
|
|
Packit |
b099d7 |
These can indicate the relative value at various positions
|
|
Packit |
b099d7 |
along the scale\&.
|
|
Packit |
b099d7 |
The placement of this label depends on the \fBXmNlayoutDirection\fP
|
|
Packit |
b099d7 |
resource of the widget\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
A Scale can be either input/output or output only\&. An input/output
|
|
Packit |
b099d7 |
Scale\&'s value can be set by the application and also
|
|
Packit |
b099d7 |
modified by the user with the slider\&. An output-only Scale
|
|
Packit |
b099d7 |
is used strictly as an indicator of the current value of something
|
|
Packit |
b099d7 |
and cannot be modified interactively by the user\&.
|
|
Packit |
b099d7 |
The \fBXmScale\fP resource \fBXmNeditable\fP specifies whether the user can
|
|
Packit |
b099d7 |
interactively modify the Scale\&'s value\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The user can specify resources in a resource file for the automatically
|
|
Packit |
b099d7 |
created gadget that contains the title of the Scale widget\&. The name of the
|
|
Packit |
b099d7 |
gadget is \fBTitle\fP\&.
|
|
Packit |
b099d7 |
The placement of the title depends on the
|
|
Packit |
b099d7 |
\fBXmNlayoutDirection\fP
|
|
Packit |
b099d7 |
resource of the widget\&. The direction of the title is based on
|
|
Packit |
b099d7 |
the widget\&'s layout direction\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
Scale uses the \fBXmQTspecifyRenderTable\fP trait, and
|
|
Packit |
b099d7 |
holds the \fBXmQTtransfer\fP trait\&.
|
|
Packit |
b099d7 |
.SS "Data Transfer Behavior"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
Scale supports dragging of the representation of the Scale value from
|
|
Packit |
b099d7 |
the Scale when the value is displayed
|
|
Packit |
b099d7 |
and when the value of the \fBXmNenableUnselectableDrag\fP resource
|
|
Packit |
b099d7 |
of \fBXmDisplay\fP is set to True\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
As a source of data, Scale supports the following targets and associated
|
|
Packit |
b099d7 |
conversions of data to these targets:
|
|
Packit |
b099d7 |
.IP "\fBCOMPOUND_TEXT\fP" 10
|
|
Packit |
b099d7 |
The widget transfers a string representation of \fBXmNvalue\fP as type
|
|
Packit |
b099d7 |
\fBCOMPOUND_TEXT\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBUTF8_STRING\fP" 10
|
|
Packit |
b099d7 |
The widget transfers a string representation of \fBXmNvalue\fP as type
|
|
Packit |
b099d7 |
\fBUTF8_STRING\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBSTRING\fP" 10
|
|
Packit |
b099d7 |
The widget transfers a string representation of \fBXmNvalue\fP as type
|
|
Packit |
b099d7 |
\fBSTRING\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB_MOTIF_CLIPBOARD_TARGETS\fP" 10
|
|
Packit |
b099d7 |
The widget transfers, as type \fBATOM\fP, a list of the targets it
|
|
Packit |
b099d7 |
supports for the \fBCLIPBOARD\fP selection\&.
|
|
Packit |
b099d7 |
These include \fBSTRING\fP, \fBCOMPOUND_TEXT\fP and \fBUTF8_STRING\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB_MOTIF_EXPORT_TARGETS\fP" 10
|
|
Packit |
b099d7 |
The widget transfers, as type \fBATOM\fP, a list of the targets to be
|
|
Packit |
b099d7 |
used as the value of the DragContext\&'s \fBXmNexportTargets\fP in a
|
|
Packit |
b099d7 |
drag-and-drop transfer\&.
|
|
Packit |
b099d7 |
These include \fBSTRING\fP, \fBCOMPOUND_TEXT\fP and \fBUTF8_STRING\fP\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
As a source of data, Scale also supports the following standard Motif
|
|
Packit |
b099d7 |
targets:
|
|
Packit |
b099d7 |
.IP "\fBBACKGROUND\fP" 10
|
|
Packit |
b099d7 |
The widget transfers \fBXmNbackground\fP as type \fBPIXEL\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBCLASS\fP" 10
|
|
Packit |
b099d7 |
The widget finds the first shell in the widget hierarchy that has a
|
|
Packit |
b099d7 |
\fBWM_CLASS\fP property and transfers the contents as text in the
|
|
Packit |
b099d7 |
current locale\&.
|
|
Packit |
b099d7 |
.IP "\fBCLIENT_WINDOW\fP" 10
|
|
Packit |
b099d7 |
The widget finds the first shell in the widget hierarchy and transfers
|
|
Packit |
b099d7 |
its window as type \fBWINDOW\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBCOLORMAP\fP" 10
|
|
Packit |
b099d7 |
The widget transfers \fBXmNcolormap\fP as type \fBCOLORMAP\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBFOREGROUND\fP" 10
|
|
Packit |
b099d7 |
The widget transfers \fBXmNforeground\fP as type \fBPIXEL\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBNAME\fP" 10
|
|
Packit |
b099d7 |
The widget finds the first shell in the widget hierarchy that has a
|
|
Packit |
b099d7 |
\fBWM_NAME\fP property and transfers the contents as text in the current
|
|
Packit |
b099d7 |
locale\&.
|
|
Packit |
b099d7 |
.IP "\fBTARGETS\fP" 10
|
|
Packit |
b099d7 |
The widget transfers, as type \fBATOM\fP, a list of the targets it
|
|
Packit |
b099d7 |
supports\&.
|
|
Packit |
b099d7 |
These include the standard targets in this list\&.
|
|
Packit |
b099d7 |
These also include \fBSTRING\fP, \fBCOMPOUND_TEXT\fP and
|
|
Packit |
b099d7 |
\fBUTF8_STRING\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBTIMESTAMP\fP" 10
|
|
Packit |
b099d7 |
The widget transfers the timestamp used to acquire the selection as type
|
|
Packit |
b099d7 |
\fBINTEGER\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB_MOTIF_RENDER_TABLE\fP" 10
|
|
Packit |
b099d7 |
The widget transfers \fBXmNrenderTable\fP if it exists, or else the
|
|
Packit |
b099d7 |
default text render table, as type \fBSTRING\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB_MOTIF_ENCODING_REGISTRY\fP" 10
|
|
Packit |
b099d7 |
The widget transfers its encoding registry as type \fBSTRING\fP\&.
|
|
Packit |
b099d7 |
The value is a list of NULL separated items in the
|
|
Packit |
b099d7 |
form of tag encoding pairs\&.
|
|
Packit |
b099d7 |
This target symbolizes the transfer target for the
|
|
Packit |
b099d7 |
Motif Segment Encoding Registry\&.
|
|
Packit |
b099d7 |
Widgets and applications can use this Registry to register
|
|
Packit |
b099d7 |
text encoding formats for specified render table tags\&.
|
|
Packit |
b099d7 |
Applications access this Registry by calling
|
|
Packit |
b099d7 |
\fBXmRegisterSegmentEncoding\fP and \fBXmMapSegmentEncoding\fP\&.
|
|
Packit |
b099d7 |
.SS "Descendants"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
Scale automatically creates the descendants shown in the
|
|
Packit |
b099d7 |
following table\&.
|
|
Packit |
b099d7 |
An application can use \fBXtNameToWidget\fP to gain access
|
|
Packit |
b099d7 |
to the named descendant\&. In addition, a user or an application
|
|
Packit |
b099d7 |
can use the named descendant when specifying resource values\&.
|
|
Packit |
b099d7 |
.TS
|
|
Packit |
b099d7 |
tab(?) box;
|
|
Packit |
b099d7 |
l| l| l.
|
|
Packit |
b099d7 |
\fBNamed Descendant\fP?\fBClass\fP?\fBIdentity\fP
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
=
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBScrollbar\fP?\fBXmScrollBar\fP?scroll bar
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBTitle\fP?\fBXmLabelGadget\fP?title of scale
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.SS "Classes"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
Scale inherits behavior, resources, and traits from
|
|
Packit |
b099d7 |
\fBCore\fP, \fBComposite\fP, \fBConstraint\fP, and \fBXmManager\fP
|
|
Packit |
b099d7 |
classes\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The class pointer is \fBxmScaleWidgetClass\fP\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The class name is \fBXmScale\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 |
\fBXmScale Resource Set\fP
|
|
Packit |
b099d7 |
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNconvertCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdecimalPoints?XmCDecimalPoints?short?0?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdragCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNeditable?XmCEditable?Boolean?True?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfontList?XmCFontList?XmFontList?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNhighlightOnEnter?XmCHighlightOnEnter?Boolean?False?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNhighlightThickness?XmCHighlightThickness?Dimension?2?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNmaximum?XmCMaximum?int?100?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNminimum?XmCMinimum?int?0?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNorientation?XmCOrientation?unsigned char?XmVERTICAL?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNprocessingDirection?XmCProcessingDirection?unsigned char?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNscaleHeight?XmCScaleHeight?Dimension?0?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNscaleMultiple?XmCScaleMultiple?int?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNscaleWidth?XmCScaleWidth?Dimension?0?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNrenderTable?XmCRenderTable?XmRenderTable?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNshowArrows?XmCShowArrows?XtEnum?XmNONE?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNshowValue?XmCShowValue?XtEnum?XmNONE?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNsliderMark?XmCSliderMark?XtEnum?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNsliderVisual?XmCSliderVisual?XtEnum?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNslidingMode?XmCSlidingMode?XtEnum?XmSLIDER?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtitleString?XmCTitleString?XmString?NULL?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNvalue?XmCValue?int?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNvalueChangedCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.IP "\fBXmNconvertCallback\fP" 10
|
|
Packit |
b099d7 |
Specifies a list of callbacks called when the Scale is asked to convert
|
|
Packit |
b099d7 |
a selection\&.
|
|
Packit |
b099d7 |
The type of the structure whose address is passed to these callbacks is
|
|
Packit |
b099d7 |
\fBXmConvertCallbackStruct\fR\&.
|
|
Packit |
b099d7 |
The reason is \fBXmCR_OK\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdecimalPoints\fP" 10
|
|
Packit |
b099d7 |
Specifies the number of decimal points to shift the slider value when
|
|
Packit |
b099d7 |
displaying it\&. For example, a slider value of 2,350
|
|
Packit |
b099d7 |
and an \fBXmdecimalPoints\fP
|
|
Packit |
b099d7 |
value of 2 results in a display value of 23\&.50\&.
|
|
Packit |
b099d7 |
The value must not be negative\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdragCallback\fP" 10
|
|
Packit |
b099d7 |
Specifies the list of callbacks that is called
|
|
Packit |
b099d7 |
when the slider position changes as the slider is being
|
|
Packit |
b099d7 |
dragged\&. The reason sent by the callback is \fBXmCR_DRAG\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNeditable\fP" 10
|
|
Packit |
b099d7 |
Specifies how the Scale scrollbar will react to user input\&. This
|
|
Packit |
b099d7 |
resource can be True or False values, as follows:
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBTrue\fP" 10
|
|
Packit |
b099d7 |
Allows the scrollbar to be sensitive to user input\&. This is the
|
|
Packit |
b099d7 |
default value\&.
|
|
Packit |
b099d7 |
.IP "\fBFalse\fP" 10
|
|
Packit |
b099d7 |
Makes the Scale scrollbar insensitive to user input\&. The visual is not
|
|
Packit |
b099d7 |
greyed out\&. This value would mostly be used in \fBXmTHERMOMETER\fP
|
|
Packit |
b099d7 |
mode\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
When \fBXmNeditable\fP is used on a widget
|
|
Packit |
b099d7 |
it sets the dropsite to \fBXmDROP_SITE_ACTIVE\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNfontList\fP" 10
|
|
Packit |
b099d7 |
Specifies the font list to use for the title text string specified by
|
|
Packit |
b099d7 |
\fBXmNtitleString\fP, and the label displayed when \fBXmNshowValue\fP
|
|
Packit |
b099d7 |
is True\&. The font list is an obsolete structure, and is retained only
|
|
Packit |
b099d7 |
for compatibility with earlier releases of Motif\&. See the
|
|
Packit |
b099d7 |
\fBXmNrenderTable\fP resource\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNhighlightOnEnter\fP" 10
|
|
Packit |
b099d7 |
Specifies whether the highlighting rectangle is drawn when the cursor moves
|
|
Packit |
b099d7 |
into the widget\&.
|
|
Packit |
b099d7 |
If the shell\&'s focus policy is \fBXmEXPLICIT\fP, this resource is
|
|
Packit |
b099d7 |
ignored, and the widget is highlighted when it has the focus\&.
|
|
Packit |
b099d7 |
If the shell\&'s focus policy
|
|
Packit |
b099d7 |
is \fBXmPOINTER\fP and if this resource is
|
|
Packit |
b099d7 |
True, the highlighting rectangle is drawn when the the cursor moves into
|
|
Packit |
b099d7 |
the widget\&.
|
|
Packit |
b099d7 |
If the shell\&'s focus
|
|
Packit |
b099d7 |
policy is \fBXmPOINTER\fP and if this resource is
|
|
Packit |
b099d7 |
False, the highlighting rectangle is not drawn when the the cursor moves
|
|
Packit |
b099d7 |
into the widget\&.
|
|
Packit |
b099d7 |
The default is False\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNhighlightThickness\fP" 10
|
|
Packit |
b099d7 |
Specifies the size of the
|
|
Packit |
b099d7 |
slider\&'s border drawing rectangle used for enter window and
|
|
Packit |
b099d7 |
traversal highlight drawing\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNmaximum\fP" 10
|
|
Packit |
b099d7 |
Specifies the slider\&'s maximum value\&.
|
|
Packit |
b099d7 |
\fBXmNmaximum\fP must be greater than \fBXmNminimum\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNminimum\fP" 10
|
|
Packit |
b099d7 |
Specifies the slider\&'s minimum value\&.
|
|
Packit |
b099d7 |
\fBXmNmaximum\fP must be greater than \fBXmNminimum\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNorientation\fP" 10
|
|
Packit |
b099d7 |
Displays Scale vertically or horizontally\&.
|
|
Packit |
b099d7 |
This resource can have values of \fBXmVERTICAL\fP and \fBXmHORIZONTAL\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNprocessingDirection\fP" 10
|
|
Packit |
b099d7 |
Specifies whether the value for \fBXmNmaximum\fP is on the right or
|
|
Packit |
b099d7 |
left side of \fBXmNminimum\fP for horizontal Scales
|
|
Packit |
b099d7 |
or above or below \fBXmNminimum\fP for vertical Scales\&.
|
|
Packit |
b099d7 |
This resource can have values of \fBXmMAX_ON_TOP, XmMAX_ON_BOTTOM,
|
|
Packit |
b099d7 |
XmMAX_ON_LEFT\fP, and \fBXmMAX_ON_RIGHT\fP\&.
|
|
Packit |
b099d7 |
If the Scale is oriented vertically, the default value is
|
|
Packit |
b099d7 |
\fBXmMAX_ON_TOP\fP\&.
|
|
Packit |
b099d7 |
If the XmScale is oriented horizontally, the default value
|
|
Packit |
b099d7 |
depends on the \fBXmNlayoutDirection\fP resource of the widget\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNrenderTable\fP" 10
|
|
Packit |
b099d7 |
Specifies the render table to use for the title text string specified
|
|
Packit |
b099d7 |
by \fBXmNtitleString\fP, and the label displayed when
|
|
Packit |
b099d7 |
\fBXmNshowValue\fP is True\&. If this value is NULL at initialization,
|
|
Packit |
b099d7 |
the parent hierarchy is searched for an ancestor that holds the
|
|
Packit |
b099d7 |
\fBXmQTspecifyRenderTable\fP trait\&. If such an ancestor is found, the
|
|
Packit |
b099d7 |
render table is initialized to the \fBXmLABEL_RENDER_TABLE\fP value of
|
|
Packit |
b099d7 |
the ancestor widget\&. If no such ancestor is found, the default is
|
|
Packit |
b099d7 |
implementation dependent\&. If a font list (\fBXmNfontList\fP) and a
|
|
Packit |
b099d7 |
render table are both specified, the render table will take
|
|
Packit |
b099d7 |
precedence\&. Refer to \fBXmRenderTable\fP(3) for more information on
|
|
Packit |
b099d7 |
the creation and structure of a render table\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNscaleHeight\fP" 10
|
|
Packit |
b099d7 |
Specifies the height of the slider area\&.
|
|
Packit |
b099d7 |
The value should be in the specified unit type (the default is pixels)\&.
|
|
Packit |
b099d7 |
If no value is specified a default height is computed\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNscaleMultiple\fP" 10
|
|
Packit |
b099d7 |
Specifies the amount to move the slider when the user takes an action
|
|
Packit |
b099d7 |
that moves the slider by a multiple increment\&.
|
|
Packit |
b099d7 |
The default is (\fBXmNmaximum\fP - \fBXmNminimum\fP) divided by 10,
|
|
Packit |
b099d7 |
with a minimum of 1\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNscaleWidth\fP" 10
|
|
Packit |
b099d7 |
Specifies the width of the slider area\&.
|
|
Packit |
b099d7 |
The value should be in the specified unit type (the default is pixels)\&.
|
|
Packit |
b099d7 |
If no value is specified a default width is computed\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNshowArrows\fP" 10
|
|
Packit |
b099d7 |
Specifies whether the arrows are displayed
|
|
Packit |
b099d7 |
and how they are to be displayed\&. This resource can take the
|
|
Packit |
b099d7 |
following values:
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmEACH_SIDE\fP" 10
|
|
Packit |
b099d7 |
Indicates that one arrow is displayed on each end of the ScrollBar slider\&.
|
|
Packit |
b099d7 |
.IP "\fBXmMAX_SIDE\fP" 10
|
|
Packit |
b099d7 |
Indicates that one arrow is displayed on the \fBXmNmaximum\fP side of
|
|
Packit |
b099d7 |
the ScrollBar slider\&.
|
|
Packit |
b099d7 |
.IP "\fBXmMIN_SIDE\fP" 10
|
|
Packit |
b099d7 |
Indicates that one arrow is displayed on the \fBXmNminimum\fP side of
|
|
Packit |
b099d7 |
the ScrollBar slider\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNONE\fP" 10
|
|
Packit |
b099d7 |
Indicates that no arrows are displayed\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
\fBXmNONE\fP is the default value\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNshowValue\fP" 10
|
|
Packit |
b099d7 |
Specifies whether a label for the current slider
|
|
Packit |
b099d7 |
value should be displayed next to the slider\&. If the value is
|
|
Packit |
b099d7 |
\fBXmNEAR_SLIDER\fP, the current slider value is displayed\&. If the
|
|
Packit |
b099d7 |
value is \fBXmNONE\fP, no slider value is displayed\&.
|
|
Packit |
b099d7 |
If the value is \fBXmNEAR_BORDER\fP, the current slider value is
|
|
Packit |
b099d7 |
displayed near the border\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNsliderMark\fP" 10
|
|
Packit |
b099d7 |
Specifies the shape the slider is to be displayed in\&. This resource
|
|
Packit |
b099d7 |
can take the following values:
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmETCHED_LINE\fP" 10
|
|
Packit |
b099d7 |
Specifies the slider as an etched line\&. This is the default when
|
|
Packit |
b099d7 |
\fBXmNslidingMode\fP is \fBXmSLIDER\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNONE\fP" 10
|
|
Packit |
b099d7 |
Specifies the slider as a foregrounded rectangle\&. This is the default when
|
|
Packit |
b099d7 |
\fBXmNslidingMode\fP is \fBXmTHERMOMETER\fP and the Scale scrollbar is
|
|
Packit |
b099d7 |
insensitive to user input (\fBXmNeditable\fP is \fBFalse\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmROUND_MARK\fP" 10
|
|
Packit |
b099d7 |
Specifies the slider as a shadowed circle\&. This is the default when
|
|
Packit |
b099d7 |
\fBXmNslidingMode\fP is \fBXmTHERMOMETER\fP and the Scale scrollbar is
|
|
Packit |
b099d7 |
sensitive to user input (\fBXmNeditable\fP is \fBTrue\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmTHUMB_MARK\fP" 10
|
|
Packit |
b099d7 |
Specifies the slider as a series of three etched lines centered in the
|
|
Packit |
b099d7 |
middle of the slider\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "\fBXmNslidingMode\fP" 10
|
|
Packit |
b099d7 |
Specifies the mode the slider works in\&. There are two possible modes:
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmSLIDER\fP" 10
|
|
Packit |
b099d7 |
Allows the slider to move freely between the minimum and maximum ends
|
|
Packit |
b099d7 |
of the scale\&. This is the default value\&.
|
|
Packit |
b099d7 |
.IP "\fBXmTHERMOMETER\fP" 10
|
|
Packit |
b099d7 |
Forces the slider to be anchored to one side of the trough area\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "\fBXmNsliderVisual\fP" 10
|
|
Packit |
b099d7 |
Specifies the color of the slider visual\&.
|
|
Packit |
b099d7 |
This resource can take
|
|
Packit |
b099d7 |
the following values:
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmBACKGROUND_COLOR\fP" 10
|
|
Packit |
b099d7 |
Specifies that the slider visual is in the background color\&.
|
|
Packit |
b099d7 |
.IP "\fBXmFOREGROUND_COLOR\fP" 10
|
|
Packit |
b099d7 |
Specifies that the slider visual is in the foreground color\&.
|
|
Packit |
b099d7 |
.IP "\fBXmSHADOWED_BACKGROUND\fP" 10
|
|
Packit |
b099d7 |
Specifies that the slider visual is in the background color, with a shadow\&.
|
|
Packit |
b099d7 |
This is the
|
|
Packit |
b099d7 |
default when the \fBXmNslidingModel\fP resource is \fBXmSLIDER\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmTROUGH_COLOR\fP" 10
|
|
Packit |
b099d7 |
Specifies that the slider visual is in the trough color\&. This is the
|
|
Packit |
b099d7 |
default when the \fBXmNslidingModel\fP resource is \fBXmTHERMOMETER\fP\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "\fBXmNtitleString\fP" 10
|
|
Packit |
b099d7 |
Specifies the title text string to appear in the Scale widget window\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNvalue\fP" 10
|
|
Packit |
b099d7 |
Specifies the slider\&'s current position along the scale,
|
|
Packit |
b099d7 |
between \fBXmNminimum\fP and \fBXmNmaximum\fP\&.
|
|
Packit |
b099d7 |
The value is constrained to be within these inclusive bounds\&.
|
|
Packit |
b099d7 |
The initial value of this resource is the larger of 0 (zero)
|
|
Packit |
b099d7 |
and \fBXmNminimum\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNvalueChangedCallback\fP" 10
|
|
Packit |
b099d7 |
Specifies the list of callbacks that is called
|
|
Packit |
b099d7 |
when the value of the slider has changed\&. The reason
|
|
Packit |
b099d7 |
sent by the callback is \fBXmCR_VALUE_CHANGED\fP\&.
|
|
Packit |
b099d7 |
.SS "Inherited Resources"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
Scale inherits behavior and resources from the
|
|
Packit |
b099d7 |
superclasses described in the following tables\&.
|
|
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 |
\fBXmManager 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 |
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 |
XmNhighlightPixmap?XmCHighlightPixmap?Pixmap?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNinitialFocus?XmCInitialFocus?Widget?NULL?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlayoutDirection?XmCLayoutDirection?XmDirection?dynamic?CG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNnavigationType?XmCNavigationType?XmNavigationType?XmTAB_GROUP?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNpopupHandlerCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNshadowThickness?XmCShadowThickness?Dimension?2?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNstringDirection?XmCStringDirection?XmStringDirection?dynamic?CG
|
|
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 |
\fBComposite Resource Set\fP
|
|
Packit |
b099d7 |
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNchildren?XmCReadOnly?WidgetList?NULL?G
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNinsertPosition?XmCInsertPosition?XtOrderProc?NULL?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNnumChildren?XmCReadOnly?Cardinal?0?G
|
|
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 the
|
|
Packit |
b099d7 |
\fBXmNdragCallback\fP and \fBXmNvalueChangedCallback\fP procedures:
|
|
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 \fIvalue\fP;
|
|
Packit |
b099d7 |
} XmScaleCallbackStruct;
|
|
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 "\fIvalue\fP" 10
|
|
Packit |
b099d7 |
Is the new slider value
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
A pointer to the following structure is passed to the
|
|
Packit |
b099d7 |
\fBXmNconvertCallback\fP procedures:
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.nf
|
|
Packit |
b099d7 |
typedef struct
|
|
Packit |
b099d7 |
{
|
|
Packit |
b099d7 |
int \fIreason\fP;
|
|
Packit |
b099d7 |
XEvent *\fIevent\fP;
|
|
Packit |
b099d7 |
Atom \fIselection\fP;
|
|
Packit |
b099d7 |
Atom \fItarget\fP;
|
|
Packit |
b099d7 |
XtPointer \fIsource_data\fP;
|
|
Packit |
b099d7 |
XtPointer \fIlocation_data\fP;
|
|
Packit |
b099d7 |
int \fIflags\fP;
|
|
Packit |
b099d7 |
XtPointer \fIparm\fP;
|
|
Packit |
b099d7 |
int \fIparm_format\fP;
|
|
Packit |
b099d7 |
unsigned long \fIparm_length\fP;
|
|
Packit |
b099d7 |
int \fIstatus\fP;
|
|
Packit |
b099d7 |
XtPointer \fIvalue\fP;
|
|
Packit |
b099d7 |
Atom \fItype\fP;
|
|
Packit |
b099d7 |
int \fIformat\fP;
|
|
Packit |
b099d7 |
unsigned long \fIlength\fP;
|
|
Packit |
b099d7 |
} XmConvertCallbackStruct;
|
|
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 |
It can be NULL\&.
|
|
Packit |
b099d7 |
.IP "\fIselection\fP" 10
|
|
Packit |
b099d7 |
Indicates the selection for which conversion is being requested\&.
|
|
Packit |
b099d7 |
Possible values are \fBCLIPBOARD\fP, \fBPRIMARY\fP, \fBSECONDARY\fP,
|
|
Packit |
b099d7 |
and \fB_MOTIF_DROP\fP\&.
|
|
Packit |
b099d7 |
.IP "\fItarget\fP" 10
|
|
Packit |
b099d7 |
Indicates the conversion target\&.
|
|
Packit |
b099d7 |
.IP "\fIsource_data\fP" 10
|
|
Packit |
b099d7 |
Contains information about the selection source\&.
|
|
Packit |
b099d7 |
When the selection is \fB_MOTIF_DROP\fP, \fIsource_data\fP is the
|
|
Packit |
b099d7 |
DragContext\&.
|
|
Packit |
b099d7 |
Otherwise, it is NULL\&.
|
|
Packit |
b099d7 |
.IP "\fBlocation_data\fP" 10
|
|
Packit |
b099d7 |
Contains information about the location of data to be converted\&.
|
|
Packit |
b099d7 |
If the value is NULL, the data to be transferred consists of the
|
|
Packit |
b099d7 |
widget\&'s current selection\&.
|
|
Packit |
b099d7 |
.IP "\fIflags\fP" 10
|
|
Packit |
b099d7 |
Indicates the status of the conversion\&. Following are the possible
|
|
Packit |
b099d7 |
values:
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmCONVERTING_NONE\fP" 10
|
|
Packit |
b099d7 |
This flag is currently unused\&.
|
|
Packit |
b099d7 |
.IP "\fBXmCONVERTING_PARTIAL\fP" 10
|
|
Packit |
b099d7 |
The target widget was able to be converted, but some data was lost\&.
|
|
Packit |
b099d7 |
.IP "\fBXmCONVERTING_SAME\fP" 10
|
|
Packit |
b099d7 |
The conversion target is the source of the data to be transferred\&.
|
|
Packit |
b099d7 |
.IP "\fBXmCONVERTING_TRANSACT\fP" 10
|
|
Packit |
b099d7 |
This flag is currently unused\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "\fIparm\fP" 10
|
|
Packit |
b099d7 |
Contains parameter data for this target\&.
|
|
Packit |
b099d7 |
If no parameter data exists, the value is NULL\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
When \fIselection\fP is \fBCLIPBOARD\fP and \fItarget\fP is
|
|
Packit |
b099d7 |
\fB_MOTIF_CLIPBOARD_TARGETS\fP or
|
|
Packit |
b099d7 |
\fB_MOTIF_DEFERRED_CLIPBOARD_TARGETS\fP, the value is the requested
|
|
Packit |
b099d7 |
operation (\fBXmCOPY\fP, \fBXmMOVE\fP, or \fBXmLINK\fP)\&.
|
|
Packit |
b099d7 |
.IP "\fIparm_format\fP" 10
|
|
Packit |
b099d7 |
Specifies whether the data in \fIparm\fP should be viewed
|
|
Packit |
b099d7 |
as a list of \fIchar\fP, \fIshort\fP, or \fIlong\fP quantities\&.
|
|
Packit |
b099d7 |
Possible values are 0 (when \fIparm\fP is NULL),
|
|
Packit |
b099d7 |
8 (when the data in \fIparm\fP should be viewed as a list of \fIchar\fPs),
|
|
Packit |
b099d7 |
16 (when the data in \fIparm\fP should be viewed as a list of \fIshort\fPs),
|
|
Packit |
b099d7 |
or 32 (when the data in \fIparm\fP should be viewed as a list of \fIlong\fPs)\&.
|
|
Packit |
b099d7 |
Note that \fIparm_format\fP symbolizes a data type, not the number of bits
|
|
Packit |
b099d7 |
in each list element\&.
|
|
Packit |
b099d7 |
For example, on some machines, a \fIparm_format\fP of 32 means that
|
|
Packit |
b099d7 |
the data in \fIparm\fP should be viewed as a list of 64-bit quantities,
|
|
Packit |
b099d7 |
not 32-bit quantities\&.
|
|
Packit |
b099d7 |
.IP "\fIparm_length\fP" 10
|
|
Packit |
b099d7 |
Specifies the number of elements of data in \fIparm\fP, where each
|
|
Packit |
b099d7 |
element has the size specified by \fIparm_format\fP\&.
|
|
Packit |
b099d7 |
When \fIparm\fP is NULL, the value is 0\&.
|
|
Packit |
b099d7 |
.IP "\fIstatus\fP" 10
|
|
Packit |
b099d7 |
An IN/OUT member that specifies the status of the conversion\&.
|
|
Packit |
b099d7 |
The initial value is \fBXmCONVERT_DEFAULT\fP\&.
|
|
Packit |
b099d7 |
The callback procedure can set this member to one of the following
|
|
Packit |
b099d7 |
values:
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmCONVERT_DEFAULT\fP" 10
|
|
Packit |
b099d7 |
This value means that the widget class conversion procedure, if any, is
|
|
Packit |
b099d7 |
called after the callback procedures return\&.
|
|
Packit |
b099d7 |
If the widget class conversion procedure produces any data, it
|
|
Packit |
b099d7 |
overwrites the data provided by the callback procedures in the \fIvalue\fP
|
|
Packit |
b099d7 |
member\&.
|
|
Packit |
b099d7 |
.IP "\fBXmCONVERT_MERGE\fP" 10
|
|
Packit |
b099d7 |
This value means that the widget class conversion procedure, if any, is
|
|
Packit |
b099d7 |
called after the callback procedures return\&.
|
|
Packit |
b099d7 |
If the widget class conversion procedure produces any data, it appends
|
|
Packit |
b099d7 |
its data to the data provided by the callback procedures in the
|
|
Packit |
b099d7 |
\fIvalue\fP member\&.
|
|
Packit |
b099d7 |
This value is intended for use with targets that result in lists of
|
|
Packit |
b099d7 |
data, such as \fBTARGETS\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmCONVERT_DONE\fP" 10
|
|
Packit |
b099d7 |
This value means that the callback procedure has successfully finished
|
|
Packit |
b099d7 |
the conversion\&.
|
|
Packit |
b099d7 |
The widget class conversion procedure, if any, is not called after the
|
|
Packit |
b099d7 |
callback procedures return\&.
|
|
Packit |
b099d7 |
.IP "\fBXmCONVERT_REFUSE\fP" 10
|
|
Packit |
b099d7 |
This value means that the callback procedure has terminated the
|
|
Packit |
b099d7 |
conversion process without completing the requested conversion\&.
|
|
Packit |
b099d7 |
The widget class conversion procedure, if any, is not called after the
|
|
Packit |
b099d7 |
callback procedures return\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "\fIvalue\fP" 10
|
|
Packit |
b099d7 |
An IN/OUT parameter that contains any data that the callback procedure
|
|
Packit |
b099d7 |
produces as a result of the conversion\&.
|
|
Packit |
b099d7 |
The initial value is NULL\&.
|
|
Packit |
b099d7 |
If the callback procedure sets this member, it must ensure that the
|
|
Packit |
b099d7 |
\fItype\fP, \fIformat\fP, and \fIlength\fP members correspond
|
|
Packit |
b099d7 |
to the data in \fIvalue\fP\&.
|
|
Packit |
b099d7 |
The callback procedure is responsible for allocating, but not for
|
|
Packit |
b099d7 |
freeing, memory when it sets this member\&.
|
|
Packit |
b099d7 |
.IP "\fItype\fP" 10
|
|
Packit |
b099d7 |
An IN/OUT parameter that indicates the type of the data in the
|
|
Packit |
b099d7 |
\fIvalue\fP member\&.
|
|
Packit |
b099d7 |
The initial value is \fBINTEGER\fP\&.
|
|
Packit |
b099d7 |
.IP "\fIformat\fP" 10
|
|
Packit |
b099d7 |
An IN/OUT parameter that specifies whether the data in \fIvalue\fP should
|
|
Packit |
b099d7 |
be viewed as a list of \fIchar\fP, \fIshort\fP, or \fIlong\fP quantities\&.
|
|
Packit |
b099d7 |
The initial value is 8\&.
|
|
Packit |
b099d7 |
The callback procedure can set this member to 8 (for a list of \fIchar\fP),
|
|
Packit |
b099d7 |
16 (for a list of \fIshort\fP), or 32 (for a list of \fIlong\fP)\&.
|
|
Packit |
b099d7 |
.IP "\fIlength\fP" 10
|
|
Packit |
b099d7 |
An IN/OUT member that specifies the number of elements of data in
|
|
Packit |
b099d7 |
\fIvalue\fP, where each element has the size symbolized by \fIformat\fP\&.
|
|
Packit |
b099d7 |
The initial value is 0\&.
|
|
Packit |
b099d7 |
.SS "Behavior"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
XmScale has the following behavior:
|
|
Packit |
b099d7 |
.IP "\fB<Btn1Down>\fP\ or\ \fB<Btn2Down>\fP:" 10
|
|
Packit |
b099d7 |
\fBIn the region between an end of the Scale and the slider\fP:
|
|
Packit |
b099d7 |
Moves the slider by one multiple increment in
|
|
Packit |
b099d7 |
the direction of the end of the
|
|
Packit |
b099d7 |
Scale and calls the \fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_RIGHT\fP or
|
|
Packit |
b099d7 |
\fBXmMAX_ON_BOTTOM\fP, movement toward
|
|
Packit |
b099d7 |
the right or
|
|
Packit |
b099d7 |
bottom increments the Scale value,
|
|
Packit |
b099d7 |
and movement toward the left or top decrements the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_LEFT\fP or
|
|
Packit |
b099d7 |
\fBXmMAX_ON_TOP\fP, movement toward the right or
|
|
Packit |
b099d7 |
bottom decrements the Scale value,
|
|
Packit |
b099d7 |
and movement toward the left or top increments the Scale value\&.
|
|
Packit |
b099d7 |
If the button is held down longer than a delay period, the slider is
|
|
Packit |
b099d7 |
moved again by the same increment and the same callbacks are called\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
\fBIn slider:\fP
|
|
Packit |
b099d7 |
Activates the interactive dragging of the slider\&.
|
|
Packit |
b099d7 |
.IP "\fB<Btn2Down>\fP\ in\ value\ label:" 10
|
|
Packit |
b099d7 |
Drags the contents of the label showing the current slider value\&.
|
|
Packit |
b099d7 |
This action sets the \fBXmNconvertProc\fP of the DragContext to a
|
|
Packit |
b099d7 |
function that calls the \fBXmNconvertCallback\fP procedures, possibly
|
|
Packit |
b099d7 |
multiple times, for the \fB_MOTIF_DROP\fP selection\&.
|
|
Packit |
b099d7 |
.IP "\fB<Btn1Motion>\fP\ or\ \fB<Btn2Motion>\fP:" 10
|
|
Packit |
b099d7 |
If the button press occurs within the slider, the subsequent motion
|
|
Packit |
b099d7 |
events move the slider to the position of the pointer and call the
|
|
Packit |
b099d7 |
callbacks for \fBXmNdragCallback\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<Btn1Up>\fP\ or\ \fB<Btn2Up>\fP:" 10
|
|
Packit |
b099d7 |
If the button press occurs within the slider and the slider position
|
|
Packit |
b099d7 |
is changed, the callbacks for \fBXmNvalueChangedCallback\fP are called\&.
|
|
Packit |
b099d7 |
.IP "\fB<Ctrl>\fP\fB<Btn1Down>\fP:" 10
|
|
Packit |
b099d7 |
\fBIn the region between an end of the Scale and the slider\fP:
|
|
Packit |
b099d7 |
Moves the slider to that end of the Scale and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_RIGHT\fP or
|
|
Packit |
b099d7 |
\fBXmMAX_ON_BOTTOM\fP,
|
|
Packit |
b099d7 |
movement toward the right or bottom increments the Scale value,
|
|
Packit |
b099d7 |
and movement toward
|
|
Packit |
b099d7 |
the left or top
|
|
Packit |
b099d7 |
decrements
|
|
Packit |
b099d7 |
the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_LEFT\fP or
|
|
Packit |
b099d7 |
\fBXmMAX_ON_TOP\fP, movement toward the right or
|
|
Packit |
b099d7 |
bottom decrements the Scale value,
|
|
Packit |
b099d7 |
and movement toward the left or top increments the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfUp>\fP:" 10
|
|
Packit |
b099d7 |
For vertical Scales,
|
|
Packit |
b099d7 |
moves the slider up one increment and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_TOP\fP, movement toward
|
|
Packit |
b099d7 |
the top increments the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_BOTTOM\fP, movement toward
|
|
Packit |
b099d7 |
the top decrements the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfDown>\fP:" 10
|
|
Packit |
b099d7 |
For vertical Scales,
|
|
Packit |
b099d7 |
moves the slider down one increment and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_BOTTOM\fP, movement toward
|
|
Packit |
b099d7 |
the bottom increments the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_TOP\fP, movement toward
|
|
Packit |
b099d7 |
the bottom decrements the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfLeft>\fP:" 10
|
|
Packit |
b099d7 |
For horizontal Scales,
|
|
Packit |
b099d7 |
moves the slider one increment to the left and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_LEFT\fP, movement toward
|
|
Packit |
b099d7 |
the left increments the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_RIGHT\fP, movement toward
|
|
Packit |
b099d7 |
the left decrements the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfRight>\fP:" 10
|
|
Packit |
b099d7 |
For horizontal Scales,
|
|
Packit |
b099d7 |
moves the slider one increment to the right and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_RIGHT\fP, movement toward
|
|
Packit |
b099d7 |
the right increments the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_LEFT\fP, movement toward
|
|
Packit |
b099d7 |
the right decrements the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Ctrl>\fP\fB<Key>\fP\fB<osfUp>\fP\ or\ \fB<Key>\fP\fB<osfPageUp>\fP:" 10
|
|
Packit |
b099d7 |
For vertical Scales,
|
|
Packit |
b099d7 |
moves the slider up one multiple increment and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_TOP\fP, movement toward
|
|
Packit |
b099d7 |
the top increments the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_BOTTOM\fP, movement toward
|
|
Packit |
b099d7 |
the top decrements the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Ctrl>\fP\fB<Key>\fP\fB<osfDown>\fP\ or\ \fB<Key>\fP\fB<osfPageDown>\fP:" 10
|
|
Packit |
b099d7 |
For vertical Scales,
|
|
Packit |
b099d7 |
moves the slider down one multiple increment and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_BOTTOM\fP, movement toward
|
|
Packit |
b099d7 |
the bottom increments the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_TOP\fP, movement toward
|
|
Packit |
b099d7 |
the bottom decrements the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Ctrl>\fP\fB<Key>\fP\fB<osfLeft>\fP\ or\ \fB<Key>\fP\fB<osfPageLeft>\fP:" 10
|
|
Packit |
b099d7 |
For horizontal Scales,
|
|
Packit |
b099d7 |
moves the slider one multiple increment to the left and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_LEFT\fP, movement toward
|
|
Packit |
b099d7 |
the left increments the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_RIGHT\fP, movement toward
|
|
Packit |
b099d7 |
the left decrements the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Ctrl>\fP\fB<Key>\fP\fB<osfRight>\fP\ or\ \fB<Key>\fP\fB<osfPageRight>\fP:" 10
|
|
Packit |
b099d7 |
For horizontal Scales,
|
|
Packit |
b099d7 |
moves the slider one multiple increment to the right and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_RIGHT\fP, movement toward
|
|
Packit |
b099d7 |
the right increments the Scale value\&.
|
|
Packit |
b099d7 |
If \fBXmNprocessingDirection\fP is \fBXmMAX_ON_LEFT\fP, movement toward
|
|
Packit |
b099d7 |
the right decrements the Scale value\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfBeginLine>\fP\ or\ \fB<Key>\fP\fB<osfBeginData>\fP:" 10
|
|
Packit |
b099d7 |
Moves the slider to the minimum value and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfEndLine>\fP\ or\ \fB<Key>\fP\fB<osfEndData>\fP:" 10
|
|
Packit |
b099d7 |
Moves the slider to the maximum value and calls the
|
|
Packit |
b099d7 |
\fBXmNvalueChangedCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfNextField>\fP:" 10
|
|
Packit |
b099d7 |
Traverses to the first item in the next tab group\&. If
|
|
Packit |
b099d7 |
the current tab group is the last entry in the tab group list, it
|
|
Packit |
b099d7 |
wraps to the beginning of the tab group list\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfPrevField>\fP:" 10
|
|
Packit |
b099d7 |
Traverses to the first item in the previous tab group\&.
|
|
Packit |
b099d7 |
If the beginning of the tab group list is reached, it wraps to the end
|
|
Packit |
b099d7 |
of the tab group list\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfHelp>\fP:" 10
|
|
Packit |
b099d7 |
Calls the callbacks for \fBXmNhelpCallback\fP if any exist\&.
|
|
Packit |
b099d7 |
If there are no help
|
|
Packit |
b099d7 |
callbacks for this widget, this action calls the help callbacks
|
|
Packit |
b099d7 |
for the nearest ancestor that has them\&.
|
|
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 |
\fBComposite\fP(3), \fBConstraint\fP(3), \fBCore\fP(3),
|
|
Packit |
b099d7 |
\fBXmCreateScale\fP(3),
|
|
Packit |
b099d7 |
\fBXmManager\fP(3),
|
|
Packit |
b099d7 |
\fBXmScaleGetValue\fP(3),
|
|
Packit |
b099d7 |
\fBXmScaleSetValue\fP(3),
|
|
Packit |
b099d7 |
\fBXmVaCreateScale\fP(3), and
|
|
Packit |
b099d7 |
\fBXmVaCreateManagedScale\fP(3)\&.
|