home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xmappingevent.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  5.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XMapEvent(3X11)          XLIB FUNCTIONS      XMapEvent(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XMapEvent, XMappingEvent - MapNotify and MappingNotify
  9.        event structures
  10.  
  11. SSTTRRUUCCTTUURREESS
  12.        The structure for _M_a_p_N_o_t_i_f_y events contains:
  13.  
  14.        typedef struct {
  15.         int type;             /* MapNotify */
  16.         unsigned long serial;    /* # of last request processed by server */
  17.         Bool send_event;         /* true if this came from a SendEvent request */
  18.         Display *display;         /* Display the event was read from */
  19.         Window event;
  20.         Window window;
  21.         Bool override_redirect;  /* boolean, is override set... */
  22.        } XMapEvent;
  23.  
  24.        When you receive this event, the structure members are set
  25.        as follows.
  26.  
  27.        The type member is set to the event type constant name
  28.        that uniquely identifies it.  For example, when the X
  29.        server reports a _G_r_a_p_h_i_c_s_E_x_p_o_s_e event to a client applica-
  30.        tion, it sends an _X_G_r_a_p_h_i_c_s_E_x_p_o_s_e_E_v_e_n_t structure with the
  31.        type member set to _G_r_a_p_h_i_c_s_E_x_p_o_s_e.  The display member is
  32.        set to a pointer to the display the event was read on.
  33.        The send_event member is set to _T_r_u_e if the event came
  34.        from a _S_e_n_d_E_v_e_n_t protocol request.  The serial member is
  35.        set from the serial number reported in the protocol but
  36.        expanded from the 16-bit least-significant bits to a full
  37.        32-bit value.  The window member is set to the window that
  38.        is most useful to toolkit dispatchers.
  39.  
  40.        The event member is set either to the window that was
  41.        mapped or to its parent, depending on whether _S_t_r_u_c_t_u_r_e_N_o_-
  42.        _t_i_f_y or _S_u_b_s_t_r_u_c_t_u_r_e_N_o_t_i_f_y was selected.     The window mem-
  43.        ber is set to the window that was mapped.  The over-
  44.        ride_redirect member is set to the override-redirect
  45.        attribute of the window.     Window manager clients normally
  46.        should ignore this window if the override-redirect
  47.        attribute is _T_r_u_e, because these events usually are gener-
  48.        ated from pop-ups, which override structure control.
  49.  
  50.        The structure for _M_a_p_p_i_n_g_N_o_t_i_f_y events is:
  51.  
  52.        typedef struct {
  53.         int type;             /* MappingNotify */
  54.         unsigned long serial;    /* # of last request processed by server */
  55.         Bool send_event;         /* true if this came from a SendEvent request */
  56.         Display *display;         /* Display the event was read from */
  57.         Window window;         /* unused */
  58.         int request;         /* one of MappingModifier, MappingKeyboard,
  59.                     MappingPointer */
  60.         int first_keycode;         /* first keycode */
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XMapEvent(3X11)          XLIB FUNCTIONS      XMapEvent(3X11)
  71.  
  72.  
  73.         int count;             /* defines range of change w. first_keycode*/
  74.        } XMappingEvent;
  75.  
  76.        When you receive this event, the structure members are set
  77.        as follows.
  78.  
  79.        The type member is set to the event type constant name
  80.        that uniquely identifies it.  For example, when the X
  81.        server reports a _G_r_a_p_h_i_c_s_E_x_p_o_s_e event to a client applica-
  82.        tion, it sends an _X_G_r_a_p_h_i_c_s_E_x_p_o_s_e_E_v_e_n_t structure with the
  83.        type member set to _G_r_a_p_h_i_c_s_E_x_p_o_s_e.  The display member is
  84.        set to a pointer to the display the event was read on.
  85.        The send_event member is set to _T_r_u_e if the event came
  86.        from a _S_e_n_d_E_v_e_n_t protocol request.  The serial member is
  87.        set from the serial number reported in the protocol but
  88.        expanded from the 16-bit least-significant bits to a full
  89.        32-bit value.  The window member is set to the window that
  90.        is most useful to toolkit dispatchers.
  91.  
  92.        The request member is set to indicate the kind of mapping
  93.        change that occurred and can be _M_a_p_p_i_n_g_M_o_d_i_f_i_e_r,
  94.        _M_a_p_p_i_n_g_K_e_y_b_o_a_r_d, _M_a_p_p_i_n_g_P_o_i_n_t_e_r.     If it is
  95.        _M_a_p_p_i_n_g_M_o_d_i_f_i_e_r, the modifier mapping was changed.  If it
  96.        is _M_a_p_p_i_n_g_K_e_y_b_o_a_r_d, the keyboard mapping was changed.  If
  97.        it is _M_a_p_p_i_n_g_P_o_i_n_t_e_r, the pointer button mapping was
  98.        changed.     The first_keycode and count members are set only
  99.        if the request member was set to _M_a_p_p_i_n_g_K_e_y_b_o_a_r_d.  The
  100.        number in first_keycode represents the first number in the
  101.        range of the altered mapping, and count represents the
  102.        number of keycodes altered.
  103.  
  104. SSEEEE AALLSSOO
  105.        XAnyEvent(3X11), XButtonEvent(3X11), XCreateWindow-
  106.        Event(3X11), XCirculateEvent(3X11), XCircu-
  107.        lateRequestEvent(3X11), XColormapEvent(3X11), XConfig-
  108.        ureEvent(3X11), XConfigureRequestEvent(3X11),
  109.        XCrossingEvent(3X11), XDestroyWindowEvent(3X11), XEr-
  110.        rorEvent(3X11), XExposeEvent(3X11), XFo-
  111.        cusChangeEvent(3X11), XGraphicsExposeEvent(3X11), XGravi-
  112.        tyEvent(3X11), XKeymapEvent(3X11), XMapRequestEvent(3X11),
  113.        XPropertyEvent(3X11), XReparentEvent(3X11), XResiz-
  114.        eRequestEvent(3X11), XSelectionClearEvent(3X11), XSelec-
  115.        tionEvent(3X11), XSelectionRequestEvent(3X11), XUn-
  116.        mapEvent(3X11), XVisibilityEvent(3X11)
  117.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.