From: Robert Ancell Date: Wed, 14 May 2014 01:33:24 +0000 (+1200) Subject: xcb: Missing EnterNotifyEvent, LeaveNotifyEvent, KeymapNotifyEvent, VisibilityNotifyE... X-Git-Tag: 0.25.1~102 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=fc6266929e11304c35225e13f7a2d56d911c60d8;p=thirdparty%2Fvala.git xcb: Missing EnterNotifyEvent, LeaveNotifyEvent, KeymapNotifyEvent, VisibilityNotifyEvent, ReparentNotifyEvent, GravityNotifyEvent, CirculateNotifyEvent, PropertyNotifyEvent, SelectionNotifyEvent, ColormapNotifyEvent, MappingNotifyEvent classes https://bugzilla.gnome.org/show_bug.cgi?id=730097 --- diff --git a/vapi/xcb.vapi b/vapi/xcb.vapi index 55858ddf0..a1c5a558a 100644 --- a/vapi/xcb.vapi +++ b/vapi/xcb.vapi @@ -502,6 +502,56 @@ namespace Xcb { public uint16 count; } + [Compact] + [CCode (cname = "xcb_enter_notify_event_t", ref_function = "", unref_function = "")] + public class EnterNotifyEvent : GenericEvent { + uint8 detail; + uint16 sequence; + Timestamp time; + public Window root; + public Window event; + public Window child; + public uint16 root_x; + public uint16 root_y; + public uint16 event_x; + public uint16 event_y; + public uint16 state; + public uint8 mode; + public uint8 same_screen_focus; + } + + [Compact] + [CCode (cname = "xcb_leave_notify_event_t", ref_function = "", unref_function = "")] + public class LeaveNotifyEvent : GenericEvent { + uint8 detail; + uint16 sequence; + Timestamp time; + public Window root; + public Window event; + public Window child; + public uint16 root_x; + public uint16 root_y; + public uint16 event_x; + public uint16 event_y; + public uint16 state; + public uint8 mode; + public uint8 same_screen_focus; + } + + [Compact] + [CCode (cname = "xcb_keymap_notify_event_t", ref_function = "", unref_function = "")] + public class KeymapNotifyEvent : GenericEvent { + uint8[] keys; + } + + [Compact] + [CCode (cname = "xcb_visibility_notify_event_t", ref_function = "", unref_function = "")] + public class VisibilityNotifyEvent : GenericEvent { + uint16 sequence; + public Window window; + public uint8 state; + } + [Compact] [CCode (cname = "xcb_create_notify_event_t", ref_function = "", unref_function = "")] public class CreateNotifyEvent { @@ -555,6 +605,18 @@ namespace Xcb { public Window window; } + [Compact] + [CCode (cname = "xcb_reparent_notify_event_t", ref_function = "", unref_function = "")] + public class ReparentNotifyEvent : GenericEvent { + uint16 sequence; + public Window event; + public Window window; + public Window parent; + public int16 x; + public int16 y; + public uint8 override_redirect; + } + [Compact] [CCode (cname = "xcb_configure_request_event_t", ref_function = "", unref_function = "")] public class ConfigureRequestEvent { @@ -588,6 +650,65 @@ namespace Xcb { public uint8 override_redirect; } + [Compact] + [CCode (cname = "xcb_gravity_notify_event_t", ref_function = "", unref_function = "")] + public class GravityNotifyEvent : GenericEvent { + uint16 sequence; + public Window event; + public Window window; + public int16 x; + public int16 y; + } + + [Compact] + [CCode (cname = "xcb_circulate_notify_event_t", ref_function = "", unref_function = "")] + public class CirculateNotifyEvent : GenericEvent { + uint16 sequence; + public Window event; + public Window window; + public uint8 place; + } + + [Compact] + [CCode (cname = "xcb_property_notify_event_t", ref_function = "", unref_function = "")] + public class PropertyNotifyEvent : GenericEvent { + uint16 sequence; + public Window window; + public Atom atom; + public Timestamp time; + public uint8 state; + } + + [Compact] + [CCode (cname = "xcb_selection_notify_event_t", ref_function = "", unref_function = "")] + public class SelectionNotifyEvent : GenericEvent { + uint16 sequence; + public Timestamp time; + public Window requestor; + public Atom selection; + public Atom target; + public Atom property; + } + + [Compact] + [CCode (cname = "xcb_colormap_notify_event_t", ref_function = "", unref_function = "")] + public class ColormapNotifyEvent : GenericEvent { + uint16 sequence; + public Window window; + public Colormap colormap; + public uint8 _new; + public uint8 state; + } + + [Compact] + [CCode (cname = "xcb_mapping_notify_event_t", ref_function = "", unref_function = "")] + public class MappingNotifyEvent : GenericEvent { + uint16 sequence; + public uint8 request; + public Keycode first_keycode; + public uint8 count; + } + [CCode (cname = "xcb_cw_t", has_type_id = false)] public enum CW { BACK_PIXMAP,