Minor spacing fixes

This commit is contained in:
Ethan Lee 2015-12-01 11:13:18 -05:00
parent c2d58d61d5
commit 1c03cdfb2c

View file

@ -640,9 +640,9 @@ namespace SDL2
[Flags] [Flags]
public enum SDL_MessageBoxFlags : uint public enum SDL_MessageBoxFlags : uint
{ {
SDL_MESSAGEBOX_ERROR = 0x00000010, SDL_MESSAGEBOX_ERROR = 0x00000010,
SDL_MESSAGEBOX_WARNING = 0x00000020, SDL_MESSAGEBOX_WARNING = 0x00000020,
SDL_MESSAGEBOX_INFORMATION = 0x00000040 SDL_MESSAGEBOX_INFORMATION = 0x00000040
} }
[Flags] [Flags]
@ -707,12 +707,12 @@ namespace SDL2
public struct SDL_MessageBoxData public struct SDL_MessageBoxData
{ {
public SDL_MessageBoxFlags flags; public SDL_MessageBoxFlags flags;
public IntPtr window; /* Parent window, can be NULL */ public IntPtr window; /* Parent window, can be NULL */
public string title; /* UTF-8 title */ public string title; /* UTF-8 title */
public string message; /* UTF-8 message text */ public string message; /* UTF-8 message text */
public int numbuttons; public int numbuttons;
public SDL_MessageBoxButtonData[] buttons; public SDL_MessageBoxButtonData[] buttons;
public SDL_MessageBoxColorScheme? colorScheme; /* Can be NULL to use system settings */ public SDL_MessageBoxColorScheme? colorScheme; /* Can be NULL to use system settings */
} }
/// <summary> /// <summary>
@ -1906,89 +1906,121 @@ namespace SDL2
SDL_RendererFlip flip SDL_RendererFlip flip
); );
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture*.
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] * Internally, this function contains logic to use default values when
public static extern int SDL_RenderCopyEx( * source, destination, and/or center are passed as NULL.
IntPtr renderer, * This overload allows for IntPtr.Zero (null) to be passed for srcrect.
IntPtr texture, */
IntPtr srcrect, [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
ref SDL_Rect dstrect, public static extern int SDL_RenderCopyEx(
double angle, IntPtr renderer,
ref SDL_Point center, IntPtr texture,
SDL_RendererFlip flip IntPtr srcrect,
); ref SDL_Rect dstrect,
double angle,
ref SDL_Point center,
SDL_RendererFlip flip
);
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture*.
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] * Internally, this function contains logic to use default values when
public static extern int SDL_RenderCopyEx( * source, destination, and/or center are passed as NULL.
IntPtr renderer, * This overload allows for IntPtr.Zero (null) to be passed for dstrect.
IntPtr texture, */
ref SDL_Rect srcrect, [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
IntPtr dstrect, public static extern int SDL_RenderCopyEx(
double angle, IntPtr renderer,
ref SDL_Point center, IntPtr texture,
SDL_RendererFlip flip ref SDL_Rect srcrect,
); IntPtr dstrect,
double angle,
ref SDL_Point center,
SDL_RendererFlip flip
);
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture*.
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] * Internally, this function contains logic to use default values when
public static extern int SDL_RenderCopyEx( * source, destination, and/or center are passed as NULL.
IntPtr renderer, * This overload allows for IntPtr.Zero (null) to be passed for center.
IntPtr texture, */
ref SDL_Rect srcrect, [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
ref SDL_Rect dstrect, public static extern int SDL_RenderCopyEx(
double angle, IntPtr renderer,
IntPtr center, IntPtr texture,
SDL_RendererFlip flip ref SDL_Rect srcrect,
); ref SDL_Rect dstrect,
double angle,
IntPtr center,
SDL_RendererFlip flip
);
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture*.
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] * Internally, this function contains logic to use default values when
public static extern int SDL_RenderCopyEx( * source, destination, and/or center are passed as NULL.
IntPtr renderer, * This overload allows for IntPtr.Zero (null) to be passed for both
IntPtr texture, * srcrect and dstrect.
IntPtr srcrect, */
IntPtr dstrect, [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
double angle, public static extern int SDL_RenderCopyEx(
ref SDL_Point center, IntPtr renderer,
SDL_RendererFlip flip IntPtr texture,
); IntPtr srcrect,
IntPtr dstrect,
double angle,
ref SDL_Point center,
SDL_RendererFlip flip
);
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture*.
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] * Internally, this function contains logic to use default values when
public static extern int SDL_RenderCopyEx( * source, destination, and/or center are passed as NULL.
IntPtr renderer, * This overload allows for IntPtr.Zero (null) to be passed for both
IntPtr texture, * srcrect and center.
ref SDL_Rect srcrect, */
IntPtr dstrect, [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
double angle, public static extern int SDL_RenderCopyEx(
IntPtr center, IntPtr renderer,
SDL_RendererFlip flip IntPtr texture,
); IntPtr srcrect,
ref SDL_Rect dstrect,
double angle,
IntPtr center,
SDL_RendererFlip flip
);
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture*.
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] * Internally, this function contains logic to use default values when
public static extern int SDL_RenderCopyEx( * source, destination, and/or center are passed as NULL.
IntPtr renderer, * This overload allows for IntPtr.Zero (null) to be passed for both
IntPtr texture, * dstrect and center.
IntPtr srcrect, */
IntPtr dstrect, [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
double angle, public static extern int SDL_RenderCopyEx(
IntPtr center, IntPtr renderer,
SDL_RendererFlip flip IntPtr texture,
); ref SDL_Rect srcrect,
IntPtr dstrect,
double angle,
IntPtr center,
SDL_RendererFlip flip
);
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture*.
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] * Internally, this function contains logic to use default values when
public static extern int SDL_RenderCopyEx( * source, destination, and/or center are passed as NULL.
IntPtr renderer, * This overload allows for IntPtr.Zero (null) to be passed for all
IntPtr texture, * three parameters.
IntPtr srcrect, */
ref SDL_Rect dstrect, [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
double angle, public static extern int SDL_RenderCopyEx(
IntPtr center, IntPtr renderer,
SDL_RendererFlip flip IntPtr texture,
); IntPtr srcrect,
IntPtr dstrect,
double angle,
IntPtr center,
SDL_RendererFlip flip
);
/* renderer refers to an SDL_Renderer* */ /* renderer refers to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -3548,8 +3580,9 @@ namespace SDL2
{ {
public SDL_EventType type; public SDL_EventType type;
public UInt32 timestamp; public UInt32 timestamp;
public Int32 which; /* joystick id for ADDED, else public Int32 which; /* joystick id for ADDED,
instance id */ * else instance id
*/
} }
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
@ -3948,7 +3981,7 @@ namespace SDL2
SDL_SCANCODE_VOLUMEUP = 128, SDL_SCANCODE_VOLUMEUP = 128,
SDL_SCANCODE_VOLUMEDOWN = 129, SDL_SCANCODE_VOLUMEDOWN = 129,
/* not sure whether there's a reason to enable these */ /* not sure whether there's a reason to enable these */
/* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */ /* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */
/* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */ /* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */
/* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */ /* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */
SDL_SCANCODE_KP_COMMA = 133, SDL_SCANCODE_KP_COMMA = 133,