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

  1.  
  2.  
  3.  
  4. XExposeEvent(3X11)      XLIB FUNCTIONS       XExposeEvent(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XExposeEvent - Expose event structure
  9.  
  10. SSTTRRUUCCTTUURREESS
  11.        The structure for _E_x_p_o_s_e events contains:
  12.  
  13.        typedef struct {
  14.         int type;             /* Expose */
  15.         unsigned long serial;    /* # of last request processed by server */
  16.         Bool send_event;         /* true if this came from a SendEvent request */
  17.         Display *display;         /* Display the event was read from */
  18.         Window window;
  19.         int x, y;
  20.         int width, height;
  21.         int count;             /* if nonzero, at least this many more */
  22.        } XExposeEvent;
  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 window member is set to the exposed (damaged) window.
  41.        The x and y members are set to the coordinates relative to
  42.        the window's origin and indicate the upper-left corner of
  43.        the rectangle.  The width and height members are set to
  44.        the size (extent) of the rectangle.  The count member is
  45.        set to the number of _E_x_p_o_s_e events that are to follow.  If
  46.        count is zero, no more _E_x_p_o_s_e events follow for this win-
  47.        dow.  However, if count is nonzero, at least that number
  48.        of _E_x_p_o_s_e events (and possibly more) follow for this win-
  49.        dow.  Simple applications that do not want to optimize
  50.        redisplay by distinguishing between subareas of its window
  51.        can just ignore all _E_x_p_o_s_e events with nonzero counts and
  52.        perform full redisplays on events with zero counts.
  53.  
  54. SSEEEE AALLSSOO
  55.        XAnyEvent(3X11), XButtonEvent(3X11), XCreateWindow-
  56.        Event(3X11), XCirculateEvent(3X11), XCircu-
  57.        lateRequestEvent(3X11), XColormapEvent(3X11), XConfig-
  58.        ureEvent(3X11), XConfigureRequestEvent(3X11),
  59.        XCrossingEvent(3X11), XDestroyWindowEvent(3X11), XEr-
  60.        rorEvent(3X11), XFocusChangeEvent(3X11),
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XExposeEvent(3X11)      XLIB FUNCTIONS       XExposeEvent(3X11)
  71.  
  72.  
  73.        XGraphicsExposeEvent(3X11), XGravityEvent(3X11),
  74.        XKeymapEvent(3X11), XMapEvent(3X11), XMapRe-
  75.        questEvent(3X11), XPropertyEvent(3X11), XRepar-
  76.        entEvent(3X11), XResizeRequestEvent(3X11), XSelection-
  77.        ClearEvent(3X11), XSelectionEvent(3X11), XSelectionRe-
  78.        questEvent(3X11), XUnmapEvent(3X11), XVisibili-
  79.        tyEvent(3X11)
  80.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.