VBoxSDL.h revision 4541eacebe94320ff23086f9adaccd3358b950b7
/** @file
*
* VBox frontends: VBoxSDL (simple frontend based on SDL):
* Main header
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* 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 (GPL) 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef __H_VBOXSDL
#define __H_VBOXSDL
#ifdef RT_OS_WINDOWS /** @todo check why we need to do this on windows. */
/* convince SDL to not overload main() */
#define _SDL_main_h
#endif
/* 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 done */
/** 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 */
#ifdef VBOXSDL_WITH_X11
#endif
#endif // __H_VBOXSDL