[vala/wip/sdl2: 8/10] sdl2: Drop superfluous [Compact] attributes
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/sdl2: 8/10] sdl2: Drop superfluous [Compact] attributes
- Date: Tue, 26 Jan 2021 19:54:32 +0000 (UTC)
commit 6eaf12c46ca2e84946ea98a394a0b8b184418976
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Jan 26 15:05:47 2021 +0100
sdl2: Drop superfluous [Compact] attributes
vapi/sdl2.vapi | 34 ++++++----------------------------
1 file changed, 6 insertions(+), 28 deletions(-)
---
diff --git a/vapi/sdl2.vapi b/vapi/sdl2.vapi
index 2f4389e29..60b2971ad 100644
--- a/vapi/sdl2.vapi
+++ b/vapi/sdl2.vapi
@@ -1660,14 +1660,12 @@ namespace SDL {
}
[CCode (cname = "SDL_CommonEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct CommonEvent {
public SDL.EventType type;
public uint32 timestamp;
}// CommonEvent
[CCode (cname = "SDL_WindowEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct WindowEvent : CommonEvent {
[CCode (cname = "windowID")]
public uint32 window_id;
@@ -1678,14 +1676,12 @@ namespace SDL {
[Version (since = "2.0.4")]
[CCode (cname = "SDL_AudioDeviceEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct AudioDeviceEvent : CommonEvent {
public uint32 which;
public bool iscapture;
}
[CCode (cname = "SDL_KeyboardEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct KeyboardEvent : CommonEvent {
[CCode (cname = "windowID")]
public uint32 window_id;
@@ -1695,7 +1691,6 @@ namespace SDL {
}// KeyboardEvent
[CCode (cname = "SDL_TextEditingEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct TextEditingEvent : CommonEvent {
[CCode (cname = "SDL_TEXTEDITINGEVENT_TEXT_SIZE")]
public const uint8 TEXT_SIZE;
@@ -1708,7 +1703,6 @@ namespace SDL {
}// TextEditingEvent
[CCode (cname = "SDL_TextInputEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct TextInputEvent : CommonEvent {
[CCode (cname = "SDL_TEXTINPUTEVENT_TEXT_SIZE")]
public const uint8 TEXT_SIZE;
@@ -1719,7 +1713,6 @@ namespace SDL {
}// TextInputEvent
[CCode (cname = "SDL_MouseMotionEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct MouseMotionEvent : CommonEvent {
[CCode (cname = "windowID")]
public uint32 window_id;
@@ -1732,7 +1725,6 @@ namespace SDL {
}// MouseMotionEvent
[CCode (cname = "SDL_MouseButtonEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct MouseButtonEvent : CommonEvent {
[CCode (cname = "windowID")]
public uint32 window_id;
@@ -1752,7 +1744,6 @@ namespace SDL {
}
[CCode (cname = "SDL_MouseWheelEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct MouseWheelEvent : CommonEvent {
[CCode (cname = "windowID")]
public uint32 window_id;
@@ -1765,7 +1756,6 @@ namespace SDL {
}// MouseWheelEvent
[CCode (cname = "SDL_JoyAxisEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct JoyAxisEvent : CommonEvent {
public Input.JoystickID which;
public uint8 axis;
@@ -1773,7 +1763,6 @@ namespace SDL {
}// JoyAxisEvent
[CCode (cname = "SDL_JoyBallEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct JoyBallEvent : CommonEvent {
public Input.JoystickID which;
public uint8 ball;
@@ -1789,7 +1778,6 @@ namespace SDL {
}
[CCode (cname = "SDL_JoyHatEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct JoyHatEvent : CommonEvent {
public Input.JoystickID which;
public uint8 hat;
@@ -1797,7 +1785,6 @@ namespace SDL {
}// JoyHatEvent
[CCode (cname = "SDL_JoyButtonEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct JoyButtonEvent : CommonEvent {
public Input.JoystickID which;
public uint8 button;
@@ -1805,13 +1792,11 @@ namespace SDL {
}// JoyButtonEvent
[CCode (cname = "SDL_JoyDeviceEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct JoyDeviceEvent : CommonEvent {
public Input.JoystickID which;
}// JoyDeviceEvent
[CCode (cname = "SDL_ControllerAxisEvent", has_type_id = false, cheader_filename =
"SDL2/SDL_events.h")]
- [Compact]
public struct ControllerAxisEvent : CommonEvent {
public Input.JoystickID which;
public uint8 axis;
@@ -1820,7 +1805,6 @@ namespace SDL {
}// ControllerAxisEvent
[CCode (cname = "SDL_ControllerButtonEvent", has_type_id = false, cheader_filename =
"SDL2/SDL_events.h")]
- [Compact]
public struct ControllerButtonEvent : CommonEvent {
public Input.JoystickID which;
public uint8 button;
@@ -1828,13 +1812,11 @@ namespace SDL {
}// ControllerButtonEvent
[CCode (cname = "SDL_ControllerDeviceEvent", has_type_id = false, cheader_filename =
"SDL2/SDL_events.h")]
- [Compact]
public struct ControllerDeviceEvent : CommonEvent {
public Input.JoystickID which;
}// ControllerDeviceEvent
[CCode (cname = "SDL_TouchFingerEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct TouchFingerEvent : CommonEvent {
[CCode (cname = "touchId")]
public Input.Touch.TouchID touch_id;
@@ -1848,7 +1830,6 @@ namespace SDL {
}// TouchFingerEvent
[CCode (cname = "SDL_MultiGestureEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct MultiGestureEvent : CommonEvent {
[CCode (cname = "touchId")]
public Input.Touch.TouchID touch_id;
@@ -1863,7 +1844,6 @@ namespace SDL {
}// MultiGestureEvent
[CCode (cname = "SDL_DollarGestureEvent", has_type_id = false, cheader_filename =
"SDL2/SDL_events.h")]
- [Compact]
public struct DollarGestureEvent : CommonEvent {
[CCode (cname = "touchId")]
public Input.Touch.TouchID touch_id;
@@ -1877,13 +1857,11 @@ namespace SDL {
}// DollarGestureEvent
[CCode (cname = "SDL_DropEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct DropEvent : CommonEvent {
public string file;
}// DropEvent
[CCode (cname = "SDL_UserEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
public struct UserEvent : CommonEvent {
[CCode (cname = "windowID")]
public uint32 window_id;
@@ -1893,17 +1871,17 @@ namespace SDL {
}// UserEvent
[CCode (cname = "SDL_QuitEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
- public struct QuitEvent : CommonEvent {}// QuitEvent
+ public struct QuitEvent : CommonEvent {
+ }// QuitEvent
[CCode (cname = "SDL_OSEvent", has_type_id = false, cheader_filename = "SDL2/SDL_events.h")]
- [Compact]
- public struct OSEvent : CommonEvent {}// OSEvent
+ public struct OSEvent : CommonEvent {
+ }// OSEvent
[CCode (cname = "SDL_SysWMEvent", cheader_filename = "SDL2/SDL_events.h")]
- public struct SysWMEvent {
- public Video.SysWMmsg msg;
+ public struct SysWMEvent : CommonEvent {
+ public Video.SysWMmsg? msg;
}// SysWMEvent
[CCode (has_target = true, instance_pos = 0)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]