VkRepeatButton(3x) VkRepeatButton(3x)
VkRepeatButton - A component for displaying repeating Motif buttons
VkComponent : VkCallbackObject
#include <Vk/VkRepeatButton.h>
PUBLIC PROTOCOL SUMMARY
Constructor/Destructor
VkRepeatButton(char* name,
Widget parent,
VkRepeatButtonType type);
virtual void ~VkRepeatButton(void);
Access Functions [Toc] [Back]
VkRepeatButtonType type(void);
Configuration [Toc] [Back]
void setParameters(long initial, long repeat);
X RESOURCES ASSOCIATED WITH THIS CLASS [Toc] [Back] initialDelay
repeatDelay
VkRepeatButton provides auto-repeating Motif push buttons. Normally, a
Motif push button activates once when the user presses and releases.
VkRepeatButton behaves much like scrollbar buttons. Activation occurs
when the user presses, begins repeating after some delay and at some
interval, and stops activating when the user releases.
Since VkRepeatButton is designed to substitute for an ordinary, nonrepeating
XmPushButton or XmArrowButton, use of subclasses is unexpected.
Instead, build VkComponent subclasses as you would with other Motif
widgets.
FUNCTION DESCRIPTIONS [Toc] [Back] VkRepeatButton()
Page 1
VkRepeatButton(3x) VkRepeatButton(3x)
VkRepeatButton(char* name,
Widget parent,
VkRepeatButtonType type);
virtual void ~VkRepeatButton(void);
VkRepeatButton creates a component using the name and parent
parameters. The file parameter specifies what type of Motif button
to create. This value can be RB_pushButton, RB_pushButtonGadget,
RB_arrowButton, or RB_arrowButtonGadget. These create XmPushButton,
XmPushButtonGadget, XmArrowButton, and XmArrowButtonGadget widgets,
respectively.
type()
VkRepeatButtonType type(void);
This function returns the type of button, RB_pushButton,
RB_pushButtonGadget, RB_arrowButton, or RB_arrowButtonGadget.
setParameters()
void setParameters(long initial, long repeat);
The first argument controls how long, in milliseconds, the user has
to hold the button down before auto-repeat begins. It defaults to
1000, but is controllable via the initialDelay resource. The second
argument controls the interval between auto-repeat activations, in
milliseconds. It defaults to 200, but is controllable via the
repeatDelay resource.
const const char* buttonCallback;
static const const char* buttonCallback;
A callback function for detecting activations of the repeating
button. The callData argument should be cast to a
(XmAnyCallbackStruct *).
Inherited from VkComponent [Toc] [Back]
installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
setDefaultResources(), getResources(), manage(), unmanage(),
baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
Inherited from VkCallbackObject [Toc] [Back]
callCallbacks(), addCallback(), removeCallback(),
removeAllCallbacks()
Page 2
VkRepeatButton(3x) VkRepeatButton(3x)
VkComponent
ViewKit Programmer's Guide
The X Window System, DEC Press, Bob Sheifler and Jim Gettys
The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick
The OSF/Motif Programmers Reference, Prentice Hall, OSF
PPPPaaaaggggeeee 3333 [ Back ]
|