Table 5.3 shows the subclasses of the <device-event> class that are exposed by the DUIM-Sheets library. Device events, broadly speaking, describe any event that can occur on a device connected to the computer.
<device-event> |
| |||
<pointer-event> | ||||
| <pointer-button-event> | |||
<button-press-event> | ||||
<button-release-event> | ||||
<button-click-event> | ||||
<double-click-event> | ||||
<pointer-drag-event> | ||||
<pointer-motion-event> | ||||
<pointer-drag-event> | ||||
<pointer-boundary-event> | ||||
<keyboard-event> | <pointer-exit-event> | |||
<key-press-event> | <pointer-enter-event | |||
<key-release-event> |
Note: The <pointer-drag-event> class is a subclass of both <pointer-button-event> and <pointer-motion-event>.
Device events fall into two distinct categories:
<keyboard-event>
<pointer-event>
There are two classes of keyboard event. The classes <key-press-event> and <key-release-event> describe the events that occur when any key on the keyboard is pressed or released, respectively.
There are three classes of pointer event, some of which provide a number of subclasses. Note that there are another two classes of pointer event that are immediate subclasses of <object>. These are described in Section 5.2.1 on page 200.
<pointer-button-event> <pointer-exit-event> <pointer-motion-event> <pointer-boundary-event>, for the specific case when the motion of the pointer causes the boundary of a sheet to be crossed.
<pointer-drag-event>, no button needs to be pressed on the attached pointing device.
The subclasses provided for <pointer-button-event> are as follows:
<button-press-event> <button-click-event>, described below.
<button-release-event> <button-click-event> <button-press-event> is closely followed by the creation of an instance of <button-release-event>. The necessary time frame is dictated by the configuration of your computer. In Windows, for example, this time can be set using the Control Panel.
<double-click-event> <button-click-event> is closely followed by the creation of another instance of <button-click-event>. The necessary time frame is dictated by the configuration of your computer.