1
typedef struct {
        int type;
        unsigned long serial;   /* # of last request processed by server */
        Bool send_event;        /* true if this came from a SendEvent request */
        Display *display;       /* Display the event was read from */
        Drawable drawable;
        int x, y;
        int width, height;
        int count;              /* if non-zero, at least this many more */
        int major_code;         /* core is CopyArea or CopyPlane */
        int minor_code;         /* not defined in the core */
} XGraphicsExposeEvent;

[drawable] フィールドを使用して、次のように GTK で何かを描画できます。

GdkNativeWindow nativeWinId = (XID)((void*)(expose->drawable));
...
...
// draw something by GdkNativeWindow with gtk APIs.

しかし、Qtはどうですか?

4

0 に答える 0