SDLFramebuffer.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/** @file
*
* VBox frontends: Basic Frontend (BFE):
* Declaration of SDLFramebuffer 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_SDLFRAMEBUFFER
#define __H_SDLFRAMEBUFFER
#include "VBoxBFE.h"
#include "SDLConsole.h"
#include <iprt/critsect.h>
#ifdef VBOX_SECURELABEL
#include <SDL_ttf.h>
#endif
#include "Framebuffer.h"
{
virtual bool getFullscreen();
virtual int getYOffset();
virtual int getHostXres();
virtual int getHostYres();
virtual int getHostBitsPerPixel();
#ifdef VBOX_SECURELABEL
#endif
/** the sdl thread */
/** current SDL framebuffer pointer */
/** current guest screen width in pixels */
/** current guest screen height in pixels */
/** Y offset in pixels, i.e. screen_height - guest_screen_height */
/** flag whether we're in fullscreen mode */
bool mfFullscreen;
/** framebuffer update semaphore */
#ifdef VBOX_SECURELABEL
/** current secure label text */
/** secure label font handle */
/** secure label height in pixels */
#endif
#ifdef RT_OS_WINDOWS
long refcnt;
#endif
};
#endif // __H_SDLFRAMEBUFFER