## Tcl8.6.17/Tk8.6.17 Documentation > Tk C API > QWinEvent

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

  NAME
    Tk_CollapseMotionEvents, Tk_QueueWindowEvent — Tcl 行事待ち行列に窓行事を追加する　 Add a window event to the Tcl event queue
  SYNOPSIS
    #include <tk.h>
    int
    Tk_CollapseMotionEvents(display, collapse)
    Tk_QueueWindowEvent(eventPtr, position)
  引数 ARGUMENTS
    Display *display (入力in)
    int collapse (入力in)
    XEvent *eventPtr (入力in)
    Tcl_QueuePosition position (入力in)
  説明 DESCRIPTION
  KEYWORDS

### NAME

Tk_CollapseMotionEvents, Tk_QueueWindowEvent — Tcl 行事待ち行列に窓行事を追加する　 Add a window event to the Tcl event queue

### SYNOPSIS

#include <tk.h>
int
Tk_CollapseMotionEvents(display, collapse)
Tk_QueueWindowEvent(eventPtr, position)

### 引数 ARGUMENTS

Display *display (入力in)
  移動行事萎縮を制御する為の展示器｡ Display for which to control motion event collapsing.

int collapse (入力in)
  移動行事が萎縮したかを指し示す｡ Indicates whether motion events should be collapsed or not.

XEvent *eventPtr (入力in)
  行事待ち行列に加えるべき行事｡使用しない欄は全て零に設定すべき｡ An event to add to the event queue. It is important that all unused fields of the structure be set to zero.

Tcl_QueuePosition position (入力in)
  待ち行列内に新しい行事を追加する場所:TCL_QUEUE_TAIL か TCL_QUEUE_HEAD か TCL_QUEUE_MARK ｡ Where to add the new event in the queue: TCL_QUEUE_TAIL, TCL_QUEUE_HEAD, or TCL_QUEUE_MARK.

### 説明 DESCRIPTION

Tk_QueueWindowEvent は､窓の行事を Tcl の行事処理の為の内部行事待ち行列に置く｡それは Tcl_Event 構造を生成し､行事をその構造に複製し､行事を待ち行列に加える為に Tcl_QueueEvent を呼ぶ｡行事が待ち行列から最終的に取り去れらる時､それは全ての窓行事の如く処理される｡ Tk_QueueWindowEvent 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 Tcl_QueueEvent to add the event to the queue. When the event is eventually removed from the queue it is processed just like all window events.

多数の運動行事が同じ窓の為に急速に継続的に受取られると､それらは省略時設定により崩壊される｡この挙動は Tk_CollapseMotionEvents によって制御され得る｡Tk_CollapseMotionEvents は常に display 上の崩壊した挙動に就いての以前の値を返す｡ When multiple motion events are received for the same window in rapid succession, they are collapsed by default. This behavior can be controlled with Tk_CollapseMotionEvents. Tk_CollapseMotionEvents always returns the previous value for collapse behavior on the display.

Tk_QueueWindowEvent に対する position 引数は Tcl_QueueEvent に関するものと同じ重要性を有する; 詳細は Tcl_QueueEvent の説明を参照されたい｡ The position argument to Tk_QueueWindowEvent has the same significance as for Tcl_QueueEvent; see the documentation for Tcl_QueueEvent for details.

### KEYWORDS

callback, clock, handler, modal timeout, events
Copyright © 1995-1996 Sun Microsystems, Inc.