VirtualBox

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

Last change on this file since 498 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1/** @file
2 *
3 * VBox frontends: VBoxSDL (simple frontend based on SDL):
4 * Main header
5 */
6
7/*
8 * Copyright (C) 2006 InnoTek Systemberatung GmbH
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License as published by the Free Software Foundation,
14 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
15 * distribution. VirtualBox OSE is distributed in the hope that it will
16 * be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * If you received this file as part of a commercial VirtualBox
19 * distribution, then only the terms of your commercial VirtualBox
20 * license agreement apply instead of the previous paragraph.
21 */
22
23#ifndef __H_VBOXSDL
24#define __H_VBOXSDL
25
26/* convince SDL to not overload main() */
27#define _SDL_main_h
28/* include this first so Windows.h get's in before our stuff. */
29#include <SDL.h>
30
31/** custom SDL event for display update handling */
32#define SDL_USER_EVENT_UPDATERECT (SDL_USEREVENT + 4)
33/** custom SDL event for resize handling */
34#define SDL_USER_EVENT_RESIZE (SDL_USEREVENT + 5)
35/** custom SDL for XPCOM event queue processing */
36#define SDL_USER_EVENT_XPCOM_EVENTQUEUE (SDL_USEREVENT + 6)
37/** custom SDL event for updating the titlebar */
38#define SDL_USER_EVENT_UPDATE_TITLEBAR (SDL_USEREVENT + 7)
39/** custom SDL user event for terminating the session */
40#define SDL_USER_EVENT_TERMINATE (SDL_USEREVENT + 8)
41/** custom SDL user event for secure label update notification */
42#define SDL_USER_EVENT_SECURELABEL_UPDATE (SDL_USEREVENT + 9)
43/** custom SDL user event for pointer shape change request */
44#define SDL_USER_EVENT_POINTER_CHANGE (SDL_USEREVENT + 10)
45/** custom SDL user event for a regular timer */
46#define SDL_USER_EVENT_TIMER (SDL_USEREVENT + 11)
47/** custom SDL user event for resetting mouse cursor */
48#define SDL_USER_EVENT_GUEST_CAP_CHANGED (SDL_USEREVENT + 12)
49
50
51/** The user.code field of the SDL_USER_EVENT_TERMINATE event.
52 * @{
53 */
54/** Normal termination. */
55#define VBOXSDL_TERM_NORMAL 0
56/** Abnormal termination. */
57#define VBOXSDL_TERM_ABEND 1
58/** @} */
59
60void ResetVM(void);
61void SaveState(void);
62
63#ifdef VBOX_WIN32_UI
64int initUI(bool fResizable);
65int uninitUI(void);
66int resizeUI(uint16_t width, uint16_t height);
67int setUITitle(char *title);
68#endif /* VBOX_WIN32_UI */
69
70#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