VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.h@ 55531

Last change on this file since 55531 was 55401, checked in by vboxsync, 10 years ago

added a couple of missing Id headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/* $Id: VBoxSDL.h 55401 2015-04-23 10:03:17Z vboxsync $ */
2/** @file
3 *
4 * VBox frontends: VBoxSDL (simple frontend based on SDL):
5 * Main header
6 */
7
8/*
9 * Copyright (C) 2006-2010 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef __H_VBOXSDL
21#define __H_VBOXSDL
22
23#ifdef RT_OS_WINDOWS /** @todo check why we need to do this on windows. */
24/* convince SDL to not overload main() */
25#define _SDL_main_h
26#endif
27/* include this first so Windows.h get's in before our stuff. */
28#include <SDL.h>
29
30/** custom SDL event for display update handling */
31#define SDL_USER_EVENT_UPDATERECT (SDL_USEREVENT + 4)
32/** custom SDL event for changing the guest resolution */
33#define SDL_USER_EVENT_NOTIFYCHANGE (SDL_USEREVENT + 5)
34/** custom SDL for XPCOM event queue processing */
35#define SDL_USER_EVENT_XPCOM_EVENTQUEUE (SDL_USEREVENT + 6)
36/** custom SDL event for updating the titlebar */
37#define SDL_USER_EVENT_UPDATE_TITLEBAR (SDL_USEREVENT + 7)
38/** custom SDL user event for terminating the session */
39#define SDL_USER_EVENT_TERMINATE (SDL_USEREVENT + 8)
40/** custom SDL user event for secure label update notification */
41#define SDL_USER_EVENT_SECURELABEL_UPDATE (SDL_USEREVENT + 9)
42/** custom SDL user event for pointer shape change request */
43#define SDL_USER_EVENT_POINTER_CHANGE (SDL_USEREVENT + 10)
44/** custom SDL user event for a regular timer */
45#define SDL_USER_EVENT_TIMER (SDL_USEREVENT + 11)
46/** custom SDL user event for resetting mouse cursor */
47#define SDL_USER_EVENT_GUEST_CAP_CHANGED (SDL_USEREVENT + 12)
48/** custom SDL user event for window resize done */
49#define SDL_USER_EVENT_WINDOW_RESIZE_DONE (SDL_USEREVENT + 13)
50
51
52/** The user.code field of the SDL_USER_EVENT_TERMINATE event.
53 * @{
54 */
55/** Normal termination. */
56#define VBOXSDL_TERM_NORMAL 0
57/** Abnormal termination. */
58#define VBOXSDL_TERM_ABEND 1
59/** @} */
60
61void ResetVM(void);
62void SaveState(void);
63
64#ifdef VBOX_WIN32_UI
65int initUI(bool fResizable, int64_t &winId);
66int uninitUI(void);
67int resizeUI(uint16_t width, uint16_t height);
68int setUITitle(char *title);
69#endif /* VBOX_WIN32_UI */
70
71#ifdef VBOXSDL_WITH_X11
72void PushNotifyUpdateEvent(SDL_Event *event);
73#endif
74int PushSDLEventForSure(SDL_Event *event);
75
76#endif // __H_VBOXSDL
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette