Repeater WidgetRepeater widget
Application header file <X11/Xaw/Repeater.h>
Repeater.h
Class header file <X11/Xaw/RepeaterP.h>
RepeaterP.h
Class repeaterWidgetClass
repeaterWidgetClass
Class Name Repeater
Repeater widgetclass name
Superclass Command
The Repeater widget is a subclass of the Command widget; see the
Command documentation
for details. The difference is that the Repeater can call its
registered callbacks repeatedly, at an increasing rate. The default translation
does so for the duration the user holds down pointer button 1 while the pointer
is on the Repeater.
Resources
When creating a Repeater widget instance, the following resources are
retrieved from the argument list or from the resource database:
Repeater widgetresourcesNameClassTypeNotesDefault ValueacceleratorsAcceleratorsAcceleratorTableNULLancestorSensitiveAncestorSensitiveBooleanDTruebackgroundBackgroundPixelXtDefaultBackgroundbackgroundPixmapPixmapPixmapXtUnspecifiedPixmapbitmapBitmapPixmapNoneborderColorBorderColorPixelXtDefaultForegroundborderPixmapPixmapPixmapXtUnspecifiedPixmapborderWidthBorderWidthDimension1callbackCallbackXtCallbackListNULLcolormapColormapColormapParent's ColormapcornerRoundPercentCornerRoundPercentDimension25cursorCursorCursorNonecursorNameCursorStringNULLdecayDecayInt5depthDepthintCParent's DepthdestroyCallbackCallbackXtCallbackListNULLencodingEncodingUnsignedCharXawTextEncoding8bitflashBooleanBooleanFalsefontFontXFontStructXtDefaultFontfontSetFontSetXFontSetXtDefaultFontSetforegroundForegroundPixelXtDefaultForegroundheightHeightDimensionAgraphic height + 2 * internalHeighthighlightThicknessThicknessDimensionA2 (0 if Shaped)initialDelayDelayInt200insensitiveBorderInsensitivePixmapGreyPixmapinternalHeightHeightDimension2internalWidthWidthDimension4internationalInternationalBooleanCFalsejustifyJustifyJustifyXtJustifyCenter (center)labelLabelStringname of widgetleftBitmapLeftBitmapBitmapNonemappedWhenManagedMappedWhenManagedBooleanTrueminimumDelayMinimumDelayInt10pointerColorForegroundPixelXtDefaultForegroundpointerColorBackgroundBackgroundPixelXtDefaultBackgroundrepeatDelayDelayInt50resizeResizeBooleanTruescreenScreenPointerRParent's ScreensensitiveSensitiveBooleanTrueshapeStyleShapeStyleShapeStyleRectanglestartCallbackStartCallbackCallbackNULLstopCallbackStopCallbackCallbackNULLtranslationsTranslationsTranslationTableSee belowwidthWidthDimensionAgraphic width + 2 * internalWidthxPositionPosition0yPositionPosition0
\" Resource Descriptions
decay
The number of milliseconds that should be subtracted from each succeeding
interval while the Repeater button is being held down until the interval
has reached minimumDelay milliseconds.
flash
Whether or not to flash the Repeater button whenever the timer goes off.
initialDelay
The number of milliseconds between the beginning of the Repeater button
being held down and the first invocation of the callback function.
minimumDelay
The minimum time between callbacks in milliseconds.
repeatDelay
The number of milliseconds between each callback after the first (minus an
increasing number of decays).
startCallback
The list of functions to invoke by the start action (typically
when the Repeater button is first pressed). The callback data parameter
is set to NULL.
stopCallback
The list of functions to invoke by the stop action (typically
when the Repeater button is released). The callback data parameter
is set to NULL.
Repeater ActionsRepeater widgetactions
The Repeater widget supports the following actions beyond those of the Command
button:
start()
This invokes the functions on the startCallback and callback lists
and sets a timer to go off in initialDelay milliseconds. The timer
will cause the callback functions to be invoked with increasing
frequency until the stop action occurs.
stop()
This invokes the functions on the stopCallback list and prevents any
further timers from occurring until the next start action.
Repeater widgettranslation bindings
The following are the default translation bindings used by the
Repeater widget:
<EnterWindow>: highlight( )
<LeaveWindow>: unhighlight( )
<Btn1Down>: set( ) start( )
<Btn1Up>: stop( ) unset( )