56 void blit(
GX::Window & ,
int src_x ,
int src_y ,
int dx ,
int dy ,
int dst_x ,
int dst_y ) ;
66 void drawPoint(
int x ,
int y ,
unsigned long p ,
bool or_ =
false ) ;
75 unsigned long readPoint(
int x ,
int y )
const ;
78 void drawLine(
int x1 ,
int y1 ,
int x2 ,
int y2 ,
unsigned long p ,
bool or_ =
false ) ;
84 void drawLineDown(
int x ,
int y1 ,
int y2 ,
unsigned long p ) ;
87 void clear(
bool white =
false ) ;
92 void operator=(
const Image & ) ;
93 void blit(
GX::Window & ,
Context & ,
int src_x ,
int src_y ,
int dx ,
int dy ,
int dst_x ,
int dst_y ) ;
111 if( x >= 0 && x < m_dx && y >= 0 && y < m_dy )
114 XPutPixel( m_image , x , y , p | XGetPixel(m_image,x,y) ) ;
116 XPutPixel( m_image , x , y , p ) ;
129 XPutPixel( m_image , x , y , p ) ;
A window class that is-a GX::Drawable and a GX::EventHandler.
A class for xclient-side images that are drawn locally and then blitted to the xserver.
void drawLine(int x1, int y1, int x2, int y2, unsigned long p, bool or_=false)
Draws a line. The pixel value typically comes from GX::ColourMap::get().
void drawPoint(int x, int y, unsigned long p, bool or_=false)
Draws a point. The pixel value typically comes from GX::ColourMap::get().
bool fastable() const
Returns true if drawFastPoint() can be used.
void drawLineDown(int x, int y1, int y2, unsigned long p)
Draws a vertical line.
int dy() const
Returns the height.
void drawLineAcross(int x1, int x2, int y, unsigned long p)
Draws a horizontal line.
::XImage * x()
Returns the X object.
Image(Display &, const GX::Window &window, int dx=0, int dy=0)
Constructor. The display reference is kept.
void drawFastPoint(int x, int y, unsigned long p)
Draws a point fast.
void clear(bool white=false)
Clears the image.
void blit(GX::Window &, int src_x, int src_y, int dx, int dy, int dst_x, int dst_y)
Blits to a window.
unsigned long readPoint(int x, int y) const
Reads a pixel value at a point.
int dx() const
Returns the width.