SDLConsole.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/** @file
*
* VBox frontends: Basic Frontend (BFE):
* Declaration of SDLConsole class
*/
/*
* Copyright (C) 2006-2007 Oracle Corporation
*
* 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.
*/
#ifndef __H_VBOXSDL
#define __H_VBOXSDL
/* include this first so Windows.h get's in before our stuff. */
#include <SDL.h>
#ifndef RT_OS_DARWIN
# include <SDL_syswm.h>
#endif
#if defined(RT_OS_WINDOWS) /// @todo someone please explain why this is necessary. This breaks darwin solid.
// damn SDL redefines main!
#endif
#include "ConsoleImpl.h"
/** Pointer shape change event data strucure */
struct PointerShapeChangeData
{
{
// make a copy of the shape
if (aShape) {
if (shape)
}
}
{
}
};
/** custom SDL event for display update handling */
/** custom SDL event for resize handling */
/** custom SDL for XPCOM event queue processing */
/** 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 */
#define SDL_USER_
{
SDLConsole();
~SDLConsole();
virtual void updateTitlebar();
virtual void inputGrabStart();
virtual void inputGrabEnd();
virtual void resetCursor();
static void doEventQuit(void);
/** modifier keypress status (scancode as index) */
/** Custom window manager cursor? */
/** the application Icon */
#ifdef VBOXBFE_WITH_X11
#endif
/* Current event */
};
#endif // __H_VBOXSDL