home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / X11 / XMapEvent.z / XMapEvent
Encoding:
Text File  |  1998-10-30  |  6.7 KB  |  133 lines

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