VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxFB/Framebuffer.h@ 2981

Last change on this file since 2981 was 2981, checked in by vboxsync, 17 years ago

InnoTek -> innotek: all the headers and comments.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/** @file
2 *
3 * VBox frontends: Framebuffer (FB, DirectFB):
4 * Declaration of VBoxDirectFB class
5 */
6
7/*
8 * Copyright (C) 2006-2007 innotek 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_FRAMEBUFFER
24#define __H_FRAMEBUFFER
25
26#include "VBoxFB.h"
27
28class VBoxDirectFB : public IFramebuffer
29{
30public:
31 VBoxDirectFB(IDirectFB *aDFB, IDirectFBSurface *aSurface);
32 virtual ~VBoxDirectFB();
33
34 NS_DECL_ISUPPORTS
35
36 NS_IMETHOD GetWidth(uint32 *width);
37 NS_IMETHOD GetHeight(uint32_t *height);
38 NS_IMETHOD Lock();
39 NS_IMETHOD Unlock();
40 NS_IMETHOD GetAddress(uint32_t *address);
41 NS_IMETHOD GetColorDepth(uint32_t *colorDepth);
42 NS_IMETHOD GetLineSize(uint32_t *lineSize);
43 NS_IMETHOD GetPixelFormat(FramebufferPixelFormat_T *pixelFormat);
44 NS_IMETHOD NotifyUpdate(uint32_t x, uint32_t y,
45 uint32_t w, uint32_t h, PRBool *finished);
46 NS_IMETHOD RequestResize(FramebufferPixelFormat_T pixelFormat, uint32_t vram, uint32_t lineSize, uint32_t w, uint32_t h,
47 PRBool *finished);
48private:
49 int createSurface(uint32_t w, uint32_t h);
50
51 IDirectFB *dfb;
52 IDirectFBSurface *surface;
53 uint32_t screenWidth;
54 uint32_t screenHeight;
55 IDirectFBSurface *fbInternalSurface;
56 void *fbBufferAddress;
57 uint32_t fbWidth;
58 uint32_t fbHeight;
59 uint32_t fbPitch;
60 int fbSurfaceLocked;
61};
62
63
64#endif // __H_FRAMEBUFFER
65
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