---
name: "QWinEvent"
section: "3tk"
platform: "linux"
package: "tk8.3-doc"
version: "8.3.5-14"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/QWinEvent/3tk"
---

# QWinEvent(3tk)

Add a window event to the Tcl event queue

```

```

## NAME

Tk\_QueueWindowEvent - Add a window event to the Tcl event queue

## SYNOPSIS

```
#include <tk.h>

Tk_QueueWindowEvent(eventPtr, position)
```

## ARGUMENTS

- XEvent *\*eventPtr* (in)

  An event to add to the event queue.

- Tcl\_QueuePosition *position* (in)

  Where to add the new event in the queue:  **TCL\_QUEUE\_TAIL**, **TCL\_QUEUE\_HEAD**, or **TCL\_QUEUE\_MARK**.

  ```

  ```

## DESCRIPTION

This procedure 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.

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
