| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |
Arguments: object buttons mouse-in-object
This generic function is called when the user moves the mouse
cursor out of a
window,
dialog-item
,
or hotspot
.
An application may add methods to this generic function to respond to
mouse events in these objects. The built-in methods should not be
overridden, though, because they perform some standard internal tasks.
object is the window, dialog-item, or hotspot being exited.
buttons is an integer indicating which mouse buttons and shift keys were down when the event occurred. The value is the result of applying logior to the values of the following bit-flag variables:
left-mouse-button
middle-mouse-button
right-mouse-button
first-x-button
(see *ignore-mouse-x-buttons*
)
second-x-button
(see *ignore-mouse-x-buttons*
),
shift-key
control-key
alt-key
Other bits might be turned on as well, so functions such as logtest should be used to determine whether a particular mouse button or shift key was down; for example,
(logtest left-mouse-button buttons)
will return true if and only if the left mouse button was down. For "down" events, the value includes the button or key being pressed now; for "up" events, the value does not include the button or key being released.
mouse-in-object is the window, dialog-item, or hotspot of the same general type as the object being moved out of, if any, that the mouse cursor immediately moves into after leaving the object.
See cg-events.htm for information about event handling in Common Graphics.
Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.
| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |