VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxBFE/Framebuffer.h@ 19817

最後變更 在這個檔案從19817是 19817,由 vboxsync 提交於 16 年 前

IFramebuffer cleanup next part:

  • removed obsolete internal framebuffer
  • removed IFramebuffer::setupInternalFramebuffer(), IFramebuffer::lockFramebuffer(), IFramebuffer::unlockFramebuffer(), IFramebuffer::registerExternalFramebuffer()
  • removed unused finished parameter of IFramebuffer::NotifyUpdate()
  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.4 KB
 
1/** @file
2 *
3 * VBox frontends: Basic Frontend (BFE):
4 * Declaration of Framebuffer class
5 */
6
7/*
8 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.alldomusa.eu.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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19 * Clara, CA 95054 USA or visit http://www.sun.com if you need
20 * additional information or have any questions.
21 */
22
23#ifndef __H_FRAMEBUFFER
24#define __H_FRAMEBUFFER
25
26#ifdef VBOXBFE_WITHOUT_COM
27# include "COMDefs.h"
28#else
29# include <VBox/com/defs.h>
30#endif
31
32#include "VBoxBFE.h"
33
34class Framebuffer
35{
36public:
37 virtual ~Framebuffer() {}
38
39 virtual HRESULT getWidth(ULONG *width) = 0;
40 virtual HRESULT getHeight(ULONG *height) = 0;
41 virtual HRESULT Lock() = 0;
42 virtual HRESULT Unlock() = 0;
43 virtual HRESULT getAddress(uintptr_t *address) = 0;
44 virtual HRESULT getBitsPerPixel(ULONG *bitsPerPixel) = 0;
45 virtual HRESULT getLineSize(ULONG *lineSize) = 0;
46 virtual HRESULT NotifyUpdate(ULONG x, ULONG y, ULONG w, ULONG h) = 0;
47 virtual HRESULT RequestResize(ULONG w, ULONG h, BOOL *finished) = 0;
48
49 virtual HRESULT GetVisibleRegion(BYTE *aRectangles, ULONG aCount, ULONG *aCountCopied) = 0;
50 virtual HRESULT SetVisibleRegion(BYTE *aRectangles, ULONG aCount) = 0;
51
52 virtual void repaint() = 0;
53 virtual void resize() = 0;
54
55 virtual void update(int x, int y, int w, int h) = 0;
56 virtual bool getFullscreen() = 0;
57 virtual void setFullscreen(bool fFullscreen) = 0;
58 virtual int getYOffset() = 0;
59 virtual int getHostXres() = 0;
60 virtual int getHostYres() = 0;
61 virtual int getHostBitsPerPixel() = 0;
62
63#ifdef VBOX_SECURELABEL
64 virtual int initSecureLabel(uint32_t height, char *font, uint32_t pointsize) = 0;
65 virtual void setSecureLabelText(const char *text) = 0;
66 virtual void paintSecureLabel(int x, int y, int w, int h, bool fForce) = 0;
67#endif
68
69
70private:
71};
72
73extern Framebuffer *gFramebuffer;
74
75#endif // __H_FRAMEBUFFER
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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