1 using System; 2 using System.Runtime.InteropServices; 3 4 namespace MyGUI.Sharp 5 { 6 [StructLayout(LayoutKind.Sequential)] 7 public struct IBNotifyItemData 8 { 9 [MarshalAs(UnmanagedType.U4)] 10 public uint index; 11 [MarshalAs(UnmanagedType.I4)] 12 public IBNotifyItemData.NotifyItem notify; 13 [MarshalAs(UnmanagedType.I4)] 14 public int x; 15 [MarshalAs(UnmanagedType.I4)] 16 public int y; 17 [MarshalAs(UnmanagedType.I4)] 18 public MouseButton id; 19 [MarshalAs(UnmanagedType.I4)] 20 public KeyCode code; 21 [MarshalAs(UnmanagedType.U4)] 22 public uint key; 23 24 public enum NotifyItem : int 25 { 26 MousePressed = 0, 27 MouseReleased = 1, 28 KeyPressed = 2, 29 KeyReleased = 3, 30 } 31 } 32 } 33