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