Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

YFrameBuffer Class Reference

#include <YFrameBuffer.h>

List of all members.

Public Types

typedef unsigned short UINT16
typedef unsigned long UINT32
typedef UINT32 FBPixel

Public Member Functions

 YFrameBuffer (int screenWidth, int screenHeight, int bitDepth)
virtual ~YFrameBuffer ()
void setPixel (int x, int y, FBPixel pixel)
FBPixel pixel (int x, int y)
bool valid () const
int width () const
int height () const
int depth () const
int bytesPerPixel () const

Protected Member Functions

void mmapFB ()
void munmapFB ()

Protected Attributes

int _width
int _height
int _depth
void * _fb
int _fb_fd
UINT32_fb32
UINT16_fb16
size_t _fb_len
int _bytesPerPixel


Member Typedef Documentation

typedef UINT32 YFrameBuffer::FBPixel
 

typedef unsigned short YFrameBuffer::UINT16
 

typedef unsigned long YFrameBuffer::UINT32
 


Constructor & Destructor Documentation

YFrameBuffer::YFrameBuffer int  screenWidth,
int  screenHeight,
int  bitDepth
 

Constructor

YFrameBuffer::~YFrameBuffer  )  [virtual]
 

Destructor


Member Function Documentation

int YFrameBuffer::bytesPerPixel  )  const [inline]
 

int YFrameBuffer::depth  )  const [inline]
 

int YFrameBuffer::height  )  const [inline]
 

void YFrameBuffer::mmapFB  )  [protected]
 

mmap() the framebuffer device

void YFrameBuffer::munmapFB  )  [protected]
 

release the mmaped framebuffer

YFrameBuffer::FBPixel YFrameBuffer::pixel int  x,
int  y
 

Get the framebuffer pixel value at (x, y)

void YFrameBuffer::setPixel int  x,
int  y,
FBPixel  pixel
 

Set the framebuffer pixel at (x, y)

bool YFrameBuffer::valid  )  const [inline]
 

Returns 'true' if the framebuffer is valid, i.e. can be used.

int YFrameBuffer::width  )  const [inline]
 


Member Data Documentation

int YFrameBuffer::_bytesPerPixel [protected]
 

int YFrameBuffer::_depth [protected]
 

void* YFrameBuffer::_fb [protected]
 

UINT16* YFrameBuffer::_fb16 [protected]
 

UINT32* YFrameBuffer::_fb32 [protected]
 

int YFrameBuffer::_fb_fd [protected]
 

size_t YFrameBuffer::_fb_len [protected]
 

int YFrameBuffer::_height [protected]
 

int YFrameBuffer::_width [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Oct 14 19:03:47 2005 for yast2-qt by doxygen 1.3.6