VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GX::Pixmap Class Reference

A pixmap class for xserver-side images. More...

#include <gxpixmap.h>

+ Inheritance diagram for GX::Pixmap:

Public Member Functions

 Pixmap (Display &, GX::Window &window, int dx=0, int dy=0)
 Constructor. The display reference is kept.
 
 ~Pixmap ()
 Destructor.
 
::Pixmap x ()
 Returns the X object.
 
virtual ::Drawable xd ()
 From Drawable.
 
void blit (GX::Window &, int src_x, int src_y, int dx, int dy, int dst_x, int dst_y)
 Blits to a window. More...
 
int dx () const
 Returns the width.
 
int dy () const
 Returns the height.
 
void clear ()
 Draws a big rectangle to clear the pixmap.
 
void readImage (unique_ptr< Image > &) const
 Reads the image from the xserver. More...
 
- Public Member Functions inherited from GX::Drawable
 Drawable (Display &)
 Constructor. The display reference is kept.
 
virtual ~Drawable ()
 Destructor.
 
void drawPoint (Context &, int x, int y)
 Draws a point.
 
void drawLine (Context &, int x1, int y1, int x2, int y2)
 Draws a line.
 
void drawRectangle (Context &, int x, int y, int dx, int dy)
 Draws a rectangle.
 
void drawArc (Context &, int x, int y, unsigned int width, unsigned int height, int angle1, int angle2)
 Draws an arc.
 

Detailed Description

A pixmap class for xserver-side images.

Inherits line-drawing from its Drawable base class.

Definition at line 41 of file gxpixmap.h.

Member Function Documentation

void GX::Pixmap::blit ( GX::Window window,
int  src_x,
int  src_y,
int  dx,
int  dy,
int  dst_x,
int  dst_y 
)

Blits to a window.

Uses the display's default graphics context.

Definition at line 75 of file gxpixmap.cpp.

void GX::Pixmap::readImage ( unique_ptr< Image > &  image) const

Reads the image from the xserver.

(This is not in the base class because reading window images is less reliable wrt. occlusion etc.)

Definition at line 89 of file gxpixmap.cpp.


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