Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtGrabKeybo(Xt) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought


     XtGrabKeyboard(Xt)                             UNIX System V



     NAME
          XtGrabKeyboard - a function that actively grabs  control  of
          the main keyboard.



     SYNOPSIS
          #include <X11/PassivGrab.h>

          int  XtGrabKeyboard  (widget,  owner_events,   pointer_mode,
          keyboard_mode, time)
               Widget    widget;
 o             Boolean   owner_events;
               int       pointer_mode;
               int       keyboard_mode;
               Time      time;



     DESCRIPTION
          XtGrabKeyboard actively grabs control of the main  keyboard.
          If   the   grab  is  successful,  it  returns  the  constant
          GrabSuccess.  Further key events are reported  to  the  grab
          widget.


          widget      Specifies the root widget to the  XtGrabKeyboard
                      call.  All  key  events  that  would  have  been
                      dispatched  to   other   subwindows   will   get
                      dispatched to it subject to owner_events.

          owner_eventsSpecifies  if  the  pointer  events  are  to  be
                      reported normally (pass True) or with respect to
                      the grab window if selected by  the  event  mask
                      (pass False).

          pointer_modeSpecifies further processing of pointer  events.
                      You can pass GrabModeSync or GrabModeAsync.

          keyboard_mode
                      Specifies further processing of keyboard events.
                      You can pass GrabModeSync or GrabModeAsync.

          time        Specifies the  time.   You  can  pass  either  a
                      timestamp,   expressed   in   milliseconds,   or
                      CurrentTime.



     RETURN VALUE
          Returns the constant GrabSuccess.



     RELATED INFORMATION
          XtUngrabKeyboard(Xt).



     (printed 2/19/90)                         XtGrabKeyboard(Xt)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026