sdl2 :: SDLWindow :: defaultinit
SDLWindowFlags describing the status of the window
			sdl2 :: SDLWindow :: show_simple_message_box
Show a simple message boxSDLSysVMInfo for the system running this window
			core :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class to create the specific class.
			sdl2 :: SDLWindow :: defaultinit
core :: Object :: defaultinit
core :: Pointer :: defaultinit
SDLWindowFlags describing the status of the window
			core :: Object :: is_same_instance
Return true ifself and other are the same instance (i.e. same identity).
			core :: Object :: is_same_serialized
Isself the same as other in a serialization context?
			core :: Object :: is_same_type
Return true ifself and other have the same dynamic type.
			core :: Object :: output_class_name
Display class name on stdout (debug only).sdl2 :: SDLWindow :: show_simple_message_box
Show a simple message boxSDLSysVMInfo for the system running this window
			
# A window created by SDL
extern class SDLWindow `{ SDL_Window * `}
	# Create a window with the given `title`, `width` and `height`, also apply the `flags`
	new (title: CString, width, height: Int, flags: SDLWindowFlags) `{
		return SDL_CreateWindow(title,
			SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
			width, height, flags);
	`}
	# Has this window been correctly initialized?
	fun initialized: Bool do return not address_is_null
	# Destroy this window
	fun destroy `{ SDL_DestroyWindow(self); `}
	# Get the `SDLWindowFlags` describing the status of the window
	fun flags: SDLWindowFlags `{ return SDL_GetWindowFlags(self); `}
	# Show a simple message box
	#
	# Similar to `sys.sdl.show_simple_message_box` but attached to this window
	fun show_simple_message_box(level: SDLMessageBoxFlags, title, content: CString) `{
		SDL_ShowSimpleMessageBox(level, title, content, self);
	`}
	# Set the icon of this window
	fun icon=(icon: SDLSurface) `{ SDL_SetWindowIcon(self, icon); `}
end
					lib/sdl2/sdl2_base.nit:139,1--166,3
				
redef extern class SDLWindow
	# Get the `SDLSysVMInfo` for the system running this window
	#
	# The returned value must be freed.
	fun wm_info: SDLSysWMInfo `{
		SDL_SysWMinfo *val = malloc(sizeof(SDL_SysWMinfo));
		SDL_VERSION(&val->version);
		if(SDL_GetWindowWMInfo(self, val) <= 0) {
			free(val);
			return NULL;
		}
		return val;
	`}
end
					lib/sdl2/syswm.nit:26,1--42,3