VBoxSDL.h revision 1fd771982fd39ac416792f86b75aae1f3ba72a29
/** @file
*
* VBox frontends: VBoxSDL (simple frontend based on SDL):
* Main header
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#ifndef __H_VBOXSDL
#define __H_VBOXSDL
/* convince SDL to not overload main() */
#define _SDL_main_h
/* include this first so Windows.h get's in before our stuff. */
#include <SDL.h>
/** custom SDL event for display update handling */
/** custom SDL event for resize handling */
/** custom SDL for XPCOM event queue processing */
/** custom SDL event for updating the titlebar */
/** custom SDL user event for terminating the session */
/** custom SDL user event for secure label update notification */
/** custom SDL user event for pointer shape change request */
/** custom SDL user event for a regular timer */
/** custom SDL user event for resetting mouse cursor */
/** custom SDL user event for window resize down */
/** The user.code field of the SDL_USER_EVENT_TERMINATE event.
* @{
*/
/** Normal termination. */
#define VBOXSDL_TERM_NORMAL 0
/** Abnormal termination. */
#define VBOXSDL_TERM_ABEND 1
/** @} */
void ResetVM(void);
void SaveState(void);
#ifdef VBOX_WIN32_UI
int initUI(bool fResizable);
int uninitUI(void);
int setUITitle(char *title);
#endif /* VBOX_WIN32_UI */
#endif // __H_VBOXSDL