[CCode (cname = "XMoveWindow")]
public void move_window (Window window, int x, int y);
+
+ [CCode (cname = "XQueryExtension")]
+ public bool query_extension(string name, out int major_opcode, out int first_event_return, out int first_error_return);
}
[Compact]
SelectionNotify,
ColormapNotify,
ClientMessage,
- MappingNotify
+ MappingNotify,
+ GenericEvent
}
// union
public PropertyEvent xproperty;
public SelectionEvent xselection;
public ClientMessageEvent xclient;
+ public GenericEvent xgeneric;
+ public GenericEventCookie xcookie;
}
[CCode (cname = "XAnyEvent")]
public ClientMessageEventData data;
}
+ [CCode (cname = "XGenericEvent")]
+ public struct GenericEvent {
+ public int type;
+ public ulong serial;
+ public bool send_event;
+ public unowned Display display;
+ public int extension;
+ public int evtype;
+ }
+
+ [CCode (cname = "XGenericEventCookie")]
+ public struct GenericEventCookie {
+ public int type;
+ public ulong serial;
+ public bool send_event;
+ public unowned Display display;
+ public int extension;
+ public uint cookie;
+ public void *data;
+ }
+
[CCode (cname = "RECTANGLE", has_type_id = false)]
public struct Rectangle {
public short x;