VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQGL.h@ 35740

Last change on this file since 35740 was 28800, checked in by vboxsync, 14 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * UIFrameBuffer class and subclasses declarations
5 */
6
7/*
8 * Copyright (C) 2010 Oracle Corporation
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 (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef ___UIFrameBufferQGL_h___
20#define ___UIFrameBufferQGL_h___
21
22/* Global includes */
23#include "UIFrameBuffer.h"
24#if defined (VBOX_GUI_USE_QGLFB)
25#include "VBoxFBOverlay.h"
26
27class UIFrameBufferQGL : public UIFrameBuffer
28{
29public:
30
31 UIFrameBufferQGL(UIMachineView *pMachineView);
32
33 STDMETHOD(NotifyUpdate) (ULONG uX, ULONG uY, ULONG uW, ULONG uH);
34#ifdef VBOXQGL_PROF_BASE
35 STDMETHOD(RequestResize) (ULONG uScreenId, ULONG uPixelFormat,
36 BYTE *pVRAM, ULONG uBitsPerPixel, ULONG uBytesPerLine,
37 ULONG uWidth, ULONG uHeight, BOOL *pbFinished);
38#endif
39
40#ifdef VBOX_WITH_VIDEOHWACCEL
41 STDMETHOD(ProcessVHWACommand)(BYTE *pbCommand);
42#endif
43
44 ulong pixelFormat() { return vboxWidget()->vboxPixelFormat(); }
45 bool usesGuestVRAM() { return vboxWidget()->vboxUsesGuestVRAM(); }
46
47 uchar *address() { return vboxWidget()->vboxAddress(); }
48 ulong bitsPerPixel() { return vboxWidget()->vboxBitsPerPixel(); }
49 ulong bytesPerLine() { return vboxWidget()->vboxBytesPerLine(); }
50
51 void paintEvent (QPaintEvent *pEvent);
52 void resizeEvent (UIResizeEvent *pEvent);
53 void doProcessVHWACommand(QEvent *pEvent);
54
55private:
56
57 class VBoxGLWidget* vboxWidget();
58
59 class VBoxVHWACommandElementProcessor m_cmdPipe;
60};
61#endif
62
63#endif // !___UIFrameBufferQGL_h___
64
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use