~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to include/X11/Xlib.h

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-12-04 11:43:54 UTC
  • mfrom: (1.1.10 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091204114354-0lik4mbb1bv1a8nw
Tags: 2:1.3.2-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add 100_latin_locale_alias.diff (LP 379785)

Show diffs side-by-side

added added

removed removed

Lines of Context:
966
966
    int            evtype;       /* actual event type. */
967
967
    } XGenericEvent;
968
968
 
 
969
typedef struct {
 
970
    int            type;         /* of event. Always GenericEvent */
 
971
    unsigned long  serial;       /* # of last request processed */
 
972
    Bool           send_event;   /* true if from SendEvent request */
 
973
    Display        *display;     /* Display the event was read from */
 
974
    int            extension;    /* major opcode of extension that caused the event */
 
975
    int            evtype;       /* actual event type. */
 
976
    unsigned int   cookie;
 
977
    void           *data;
 
978
} XGenericEventCookie;
 
979
 
969
980
/*
970
981
 * this union is defined so Xlib can always use the same sized
971
982
 * event structure internally, to avoid memory fragmentation.
1003
1014
        XMappingEvent xmapping;
1004
1015
        XErrorEvent xerror;
1005
1016
        XKeymapEvent xkeymap;
 
1017
        XGenericEvent xgeneric;
 
1018
        XGenericEventCookie xcookie;
1006
1019
        long pad[24];
1007
1020
} XEvent;
1008
1021
#endif
3998
4011
    wchar_t                     /* wc */
3999
4012
);
4000
4013
 
 
4014
extern Bool XGetEventData(
 
4015
    Display*                    /* dpy */,
 
4016
    XGenericEventCookie*        /* cookie*/
 
4017
);
 
4018
 
 
4019
extern void XFreeEventData(
 
4020
    Display*                    /* dpy */,
 
4021
    XGenericEventCookie*        /* cookie*/
 
4022
);
 
4023
 
4001
4024
_XFUNCPROTOEND
4002
4025
 
4003
4026
#endif /* _XLIB_H_ */