X11Graphics Class Reference

X11 implementation of OSGraphics. More...

Inheritance diagram for X11Graphics:

Inheritance graph
[legend]
Collaboration diagram for X11Graphics:

Collaboration graph
[legend]

Public Member Functions

 X11Graphics (intf_thread_t *pIntf, X11Display &rDisplay, int width, int height)
virtual ~X11Graphics ()
virtual void clear (int xDest=0, int yDest=0, int width=-1, int height=-1)
 Clear the graphics.
virtual void drawGraphics (const OSGraphics &rGraphics, int xSrc=0, int ySrc=0, int xDest=0, int yDest=0, int width=-1, int height=-1)
 Draw another graphics on this one.
virtual void drawBitmap (const GenericBitmap &rBitmap, int xSrc=0, int ySrc=0, int xDest=0, int yDest=0, int width=-1, int height=-1, bool blend=false)
 Render a bitmap on this graphics.
virtual void fillRect (int left, int top, int width, int height, uint32_t color)
 Draw a filled rectangle on the grahics (color is RRGGBB).
virtual void drawRect (int left, int top, int width, int height, uint32_t color)
 Draw an empty rectangle on the grahics (color is RRGGBB).
virtual void applyMaskToWindow (OSWindow &rWindow)
 Set the shape of a window with the mask of this graphics.
virtual void copyToWindow (OSWindow &rWindow, int xSrc, int ySrc, int width, int height, int xDest, int yDest)
 Copy the graphics on a window.
virtual bool hit (int x, int y) const
 Tell whether the pixel at the given position is visible.
virtual int getWidth () const
 Getters.
virtual int getHeight () const
Pixmap getDrawable () const
 Get the pixmap ID.
Region getMask () const
 Get the transparency mask.

Detailed Description

X11 implementation of OSGraphics.

Constructor & Destructor Documentation

X11Graphics::X11Graphics ( intf_thread_t pIntf,
X11Display rDisplay,
int  width,
int  height 
)

virtual X11Graphics::~X11Graphics (  )  [virtual]


Member Function Documentation

virtual void X11Graphics::clear ( int  xDest = 0,
int  yDest = 0,
int  width = -1,
int  height = -1 
) [virtual]

Clear the graphics.

Implements OSGraphics.

virtual void X11Graphics::drawGraphics ( const OSGraphics rGraphics,
int  xSrc = 0,
int  ySrc = 0,
int  xDest = 0,
int  yDest = 0,
int  width = -1,
int  height = -1 
) [virtual]

Draw another graphics on this one.

Implements OSGraphics.

virtual void X11Graphics::drawBitmap ( const GenericBitmap rBitmap,
int  xSrc = 0,
int  ySrc = 0,
int  xDest = 0,
int  yDest = 0,
int  width = -1,
int  height = -1,
bool  blend = false 
) [virtual]

Render a bitmap on this graphics.

Implements OSGraphics.

virtual void X11Graphics::fillRect ( int  left,
int  top,
int  width,
int  height,
uint32_t  color 
) [virtual]

Draw a filled rectangle on the grahics (color is RRGGBB).

Implements OSGraphics.

virtual void X11Graphics::drawRect ( int  left,
int  top,
int  width,
int  height,
uint32_t  color 
) [virtual]

Draw an empty rectangle on the grahics (color is RRGGBB).

Implements OSGraphics.

virtual void X11Graphics::applyMaskToWindow ( OSWindow rWindow  )  [virtual]

Set the shape of a window with the mask of this graphics.

Implements OSGraphics.

virtual void X11Graphics::copyToWindow ( OSWindow rWindow,
int  xSrc,
int  ySrc,
int  width,
int  height,
int  xDest,
int  yDest 
) [virtual]

Copy the graphics on a window.

Implements OSGraphics.

virtual bool X11Graphics::hit ( int  x,
int  y 
) const [virtual]

Tell whether the pixel at the given position is visible.

Implements OSGraphics.

virtual int X11Graphics::getWidth (  )  const [inline, virtual]

Getters.

Implements Box.

virtual int X11Graphics::getHeight (  )  const [inline, virtual]

Implements Box.

Pixmap X11Graphics::getDrawable (  )  const [inline]

Get the pixmap ID.

Region X11Graphics::getMask (  )  const [inline]

Get the transparency mask.


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

Generated on Tue May 25 08:06:32 2010 for VLC by  doxygen 1.5.6