QWinEvent.3
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
- '"
- '" Copyright (c) 1995-1996 Sun Microsystems, Inc.
- '"
- '" See the file "license.terms" for information on usage and redistribution
- '" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '"
- '" RCS: @(#) $Id: QWinEvent.3,v 1.3 2002/06/15 00:21:42 hobbs Exp $
- '"
- .so man.macros
- .TH Tk_QueueWindowEvent 3 7.5 Tk "Tk Library Procedures"
- .BS
- .SH NAME
- Tk_CollapseMotionEvents, Tk_QueueWindowEvent - Add a window event to the Tcl event queue
- .SH SYNOPSIS
- .nf
- fB#include <tk.h>fR
- .sp
- int
- fBTk_CollapseMotionEventsfR(fIdisplay, collapsefR)
- .sp
- fBTk_QueueWindowEventfR(fIeventPtr, positionfR)
- .SH ARGUMENTS
- .AS Tcl_QueuePosition position
- .AP Display *display in
- Display for which to control motion event collapsing.
- .AP int collapse in
- Indicates whether motion events should be collapsed or not.
- .AP XEvent *eventPtr in
- An event to add to the event queue.
- .AP Tcl_QueuePosition position in
- Where to add the new event in the queue: fBTCL_QUEUE_TAILfR,
- fBTCL_QUEUE_HEADfR, or fBTCL_QUEUE_MARKfR.
- .BE
- .SH DESCRIPTION
- .PP
- fBTk_QueueWindowEventfR places a window event on Tcl's internal event
- queue for eventual servicing. It creates a Tcl_Event structure, copies the
- event into that structure, and calls fBTcl_QueueEventfR to add the event
- to the queue. When the event is eventually removed from the queue it is
- processed just like all window events.
- .PP
- When multiple motion events are received for the same window in rapid
- succession, they are collapsed by default. This behavior can be controlled
- with fBTk_CollapseMotionEventsfR. fBTk_CollapseMotionEventsfR always
- returns the previous value for collapse behavior on the fIdisplayfR.
- .PP
- The fIpositionfR argument to fBTk_QueueWindowEventfR has
- the same significance as for fBTcl_QueueEventfR; see the
- documentation for fBTcl_QueueEventfR for details.
- .SH KEYWORDS
- callback, clock, handler, modal timeout, events