The Pedigree Project  0.1
Public Member Functions | Private Attributes | List of all members
VbeFramebuffer Class Reference
+ Inheritance diagram for VbeFramebuffer:
+ Collaboration diagram for VbeFramebuffer:

Public Member Functions

 VbeFramebuffer (Display *pDisplay)
 
virtual void hwRedraw (size_t x=~0UL, size_t y=~0UL, size_t w=~0UL, size_t h=~0UL)
 Inherited by drivers that provide a hardware redraw function.
 
virtual void setFramebuffer (uintptr_t p)
 
- Public Member Functions inherited from Framebuffer
virtual void * getFramebuffer ()
 
virtual bool getPixelFormat (Display::PixelFormat *pPf)
 
virtual bool getCurrentScreenMode (Display::ScreenMode &sm)
 
virtual bool getScreenModes (List< Display::ScreenMode * > &sms)
 
virtual bool setScreenMode (Display::ScreenMode sm)
 
size_t getWidth () const
 
size_t getHeight () const
 
Graphics::PixelFormat getFormat () const
 
bool getActive () const
 
void setActive (bool b)
 
void setPalette (uint32_t *palette, size_t nEntries)
 
uint32_t * getPalette () const
 
virtual void * getRawBuffer () const
 
virtual Graphics::BuffercreateBuffer (const void *srcData, Graphics::PixelFormat srcFormat, size_t width, size_t height, uint32_t *pPalette=0)
 
virtual void destroyBuffer (Graphics::Buffer *pBuffer)
 
void redraw (size_t x=~0UL, size_t y=~0UL, size_t w=~0UL, size_t h=~0UL, bool bChild=false)
 
virtual void blit (Graphics::Buffer *pBuffer, size_t srcx, size_t srcy, size_t destx, size_t desty, size_t width, size_t height, bool bLowestCall=true)
 
virtual void draw (void *pBuffer, size_t srcx, size_t srcy, size_t destx, size_t desty, size_t width, size_t height, Graphics::PixelFormat format=Graphics::Bits32_Argb, bool bLowestCall=true)
 
virtual void rect (size_t x, size_t y, size_t width, size_t height, uint32_t colour, Graphics::PixelFormat format=Graphics::Bits32_Argb, bool bLowestCall=true)
 
virtual void copy (size_t srcx, size_t srcy, size_t destx, size_t desty, size_t w, size_t h, bool bLowestCall=true)
 
virtual void line (size_t x1, size_t y1, size_t x2, size_t y2, uint32_t colour, Graphics::PixelFormat format=Graphics::Bits32_Argb, bool bLowestCall=true)
 
void setPixel (size_t x, size_t y, uint32_t colour, Graphics::PixelFormat format=Graphics::Bits32_Argb, bool bLowestCall=true)
 
void setXPos (size_t x)
 
void setYPos (size_t y)
 
void setWidth (size_t w)
 
void setHeight (size_t h)
 
void setFormat (Graphics::PixelFormat pf)
 
void setBytesPerPixel (size_t b)
 
uint32_t getBytesPerPixel () const
 
void setBytesPerLine (size_t b)
 
uint32_t getBytesPerLine () const
 
void setParent (Framebuffer *p)
 
FramebuffergetParent () const
 
bool initialise ()
 
void storeMode ()
 
void restoreMode ()
 
int enterMode (size_t desiredW, size_t desiredH, size_t desiredBpp)
 
void * getFramebuffer () const
 
void flush (size_t x, size_t y, size_t w, size_t h)
 
cairo_format_t getFormat () const
 
size_t getWidth () const
 
size_t getHeight () const
 
- Public Member Functions inherited from Display
 Display (Device *p)
 
virtual Type getType ()
 
virtual void getName (String &str)
 
virtual void dump (String &str)
 
virtual rgb_tnewBuffer ()
 
virtual void setCurrentBuffer (rgb_t *pBuffer)
 
virtual void updateBuffer (rgb_t *pBuffer, size_t x1=~0UL, size_t y1=~0UL, size_t x2=~0UL, size_t y2=~0UL)
 
virtual void killBuffer (rgb_t *pBuffer)
 
virtual void bitBlit (rgb_t *pBuffer, size_t fromX, size_t fromY, size_t toX, size_t toY, size_t width, size_t height)
 
virtual void fillRectangle (rgb_t *pBuffer, size_t x, size_t y, size_t width, size_t height, rgb_t colour)
 
virtual bool getPixelFormat (PixelFormat &pf)
 
virtual bool setScreenMode (size_t modeId)
 
virtual bool setScreenMode (size_t nWidth, size_t nHeight, size_t nBpp)
 
- Public Member Functions inherited from Device
 Device (Device *p)
 
DevicegetParent () const
 
void setParent (Device *p)
 
virtual String getSpecificType ()
 
virtual void setSpecificType (String str)
 
void setPciPosition (uint32_t bus, uint32_t device, uint32_t func)
 
void setPciIdentifiers (uint8_t classCode, uint8_t subclassCode, uint16_t vendorId, uint16_t deviceId, uint8_t progIf)
 
void setPciConfigHeader (const PciBus::ConfigSpace &space)
 
PciBus::ConfigSpace getPciConfigHeader () const
 
uint8_t getPciClassCode ()
 
uint8_t getPciSubclassCode ()
 
uint16_t getPciVendorId ()
 
uint16_t getPciDeviceId ()
 
uint8_t getPciProgInterface ()
 
uint32_t getPciBusPosition ()
 
uint32_t getPciDevicePosition ()
 
uint32_t getPciFunctionNumber ()
 
virtual Vector< Address * > & addresses ()
 
virtual uintptr_t getInterruptNumber ()
 
virtual void setInterruptNumber (uintptr_t n)
 
void addChild (Device *pDevice)
 
DevicegetChild (size_t n)
 
size_t getNumChildren ()
 
void removeChild (size_t n)
 
void removeChild (Device *d)
 
void replaceChild (Device *src, Device *dest)
 

Private Attributes

Displaym_pDisplay
 
char * m_pBackbuffer
 
size_t m_nBackbufferBytes
 
MemoryRegionm_pFramebufferRegion
 
Display::ScreenMode m_Mode
 

Additional Inherited Members

- Public Types inherited from Device
enum  Type {
  Generic, Root, Disk, Bus,
  Display, Network, Sound, Console,
  Mouse, Controller, UsbController, UsbGeneric,
  UsbContainer
}
 
typedef Device *(* Callback) (Device *)
 
- Static Public Member Functions inherited from Device
static void foreach (Callback callback, Device *root=0)
 
template<class F , class... Args>
static void foreach (pedigree_std::Callable< F > &callback, Device *root, Args...args)
 
static void addToRoot (Device *device)
 
static void searchByVendorId (uint16_t vendorId, void(*callback)(Device *), Device *root=0)
 
static void searchByVendorIdAndDeviceId (uint16_t vendorId, uint16_t deviceId, void(*callback)(Device *), Device *root=0)
 
static void searchByClass (uint16_t classCode, void(*callback)(Device *), Device *root=0)
 
static void searchByClassAndSubclass (uint16_t classCode, uint16_t subclassCode, void(*callback)(Device *), Device *root=0)
 
static void searchByClassSubclassAndProgInterface (uint16_t classCode, uint16_t subclassCode, uint8_t progInterface, void(*callback)(Device *), Device *root=0)
 
- Public Attributes inherited from Framebuffer
size_t m_XPos
 X position on our parent's framebuffer. More...
 
size_t m_YPos
 Y position on our parent's framebuffer.
 
size_t m_nWidth
 Width of the framebuffer in pixels.
 
size_t m_nHeight
 Height of the framebuffer in pixels.
 
Graphics::PixelFormat m_PixelFormat
 Framebuffer pixel format.
 
size_t m_nBytesPerPixel
 Bytes per pixel in this framebuffer.
 
size_t m_nBytesPerLine
 Bytes per line in this framebuffer.
 
Framebufferm_pParent
 Parent of this framebuffer.
 
- Public Attributes inherited from Display
struct Display::rgb_t PACKED
 
- Protected Member Functions inherited from Framebuffer
Graphics::Buffer bufferFromSelf ()
 
virtual void draw (Graphics::Buffer *pBuffer, size_t srcx, size_t srcy, size_t destx, size_t desty, size_t width, size_t height, bool bLowestCall=true)
 
void swBlit (Graphics::Buffer *pBuffer, size_t srcx, size_t srcy, size_t destx, size_t desty, size_t width, size_t height)
 
void swRect (size_t x, size_t y, size_t width, size_t height, uint32_t colour, Graphics::PixelFormat format)
 
void swCopy (size_t srcx, size_t srcy, size_t destx, size_t desty, size_t w, size_t h)
 
void swLine (size_t x1, size_t y1, size_t x2, size_t y2, uint32_t colour, Graphics::PixelFormat format)
 
void swDraw (void *pBuffer, size_t srcx, size_t srcy, size_t destx, size_t desty, size_t width, size_t height, Graphics::PixelFormat format=Graphics::Bits32_Argb, bool bLowestCall=true)
 
void swDraw (Graphics::Buffer *pBuffer, size_t srcx, size_t srcy, size_t destx, size_t desty, size_t width, size_t height, bool bLowestCall=true)
 
Graphics::BufferswCreateBuffer (const void *srcData, Graphics::PixelFormat srcFormat, size_t width, size_t height, uint32_t *pPalette)
 
void swDestroyBuffer (Graphics::Buffer *pBuffer)
 
- Protected Member Functions inherited from Device
 NOT_COPYABLE_OR_ASSIGNABLE (Device)
 
- Static Protected Member Functions inherited from Device
static Deviceroot ()
 
- Protected Attributes inherited from Framebuffer
uintptr_t m_FramebufferBase
 
uint32_t * m_Palette
 Current graphics palette - an array of 256 32-bit RGBA entries.
 
bool m_bActive
 Whether this framebuffer is active or not.
 
- Protected Attributes inherited from Device
Vector< Address * > m_Addresses
 
Vector< Device * > m_Children
 
Devicem_pParent
 
uintptr_t m_InterruptNumber
 
String m_SpecificType
 
PciBus::ConfigSpace m_ConfigHeader
 
uint8_t m_ClassCode
 
uint8_t m_SubclassCode
 
uint16_t m_VendorId
 
uint16_t m_DeviceId
 
uint8_t m_ProgInterface
 
uint32_t m_PciBusPos
 
uint32_t m_PciDevicePos
 
uint32_t m_PciFunctionNum
 
- Static Protected Attributes inherited from Device
static Device m_Root
 
static Mutex m_TreeLock
 

Detailed Description

Definition at line 90 of file vbe.cc.


The documentation for this class was generated from the following file: