mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-03-04 18:39:39 +00:00
Change messagebox enum base types to uint
Change access level on messagebox internals to private
This commit is contained in:
parent
51e907c959
commit
941209348a
10
src/SDL2.cs
10
src/SDL2.cs
|
@ -368,7 +368,7 @@ namespace SDL2
|
|||
#region SDL_messagebox.h
|
||||
|
||||
[Flags]
|
||||
public enum SDL_MessageBoxFlags
|
||||
public enum SDL_MessageBoxFlags : uint
|
||||
{
|
||||
SDL_MESSAGEBOX_ERROR = 0x00000010,
|
||||
SDL_MESSAGEBOX_WARNING = 0x00000020,
|
||||
|
@ -376,14 +376,14 @@ namespace SDL2
|
|||
}
|
||||
|
||||
[Flags]
|
||||
public enum SDL_MessageBoxButtonFlags
|
||||
public enum SDL_MessageBoxButtonFlags : uint
|
||||
{
|
||||
SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = 0x00000001,
|
||||
SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct INTERNAL_SDL_MessageBoxButtonData
|
||||
private struct INTERNAL_SDL_MessageBoxButtonData
|
||||
{
|
||||
public SDL_MessageBoxButtonFlags flags;
|
||||
public int buttonid;
|
||||
|
@ -422,7 +422,7 @@ namespace SDL2
|
|||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct INTERNAL_SDL_MessageBoxData
|
||||
private struct INTERNAL_SDL_MessageBoxData
|
||||
{
|
||||
public SDL_MessageBoxFlags flags;
|
||||
public IntPtr window; /* Parent window, can be NULL */
|
||||
|
@ -446,7 +446,7 @@ namespace SDL2
|
|||
}
|
||||
|
||||
[DllImport(nativeLibName, EntryPoint = "SDL_ShowMessageBox", CallingConvention = CallingConvention.Cdecl)]
|
||||
internal static extern int INTERNAL_SDL_ShowMessageBox([In()] ref INTERNAL_SDL_MessageBoxData messageboxdata, out int buttonid);
|
||||
private static extern int INTERNAL_SDL_ShowMessageBox([In()] ref INTERNAL_SDL_MessageBoxData messageboxdata, out int buttonid);
|
||||
|
||||
public static unsafe int SDL_ShowMessageBox([In()] ref SDL_MessageBoxData messageboxdata, out int buttonid)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue