39 XDrawPoint( m_display.x() , xd() , gc.
x() , x , y ) ;
44 XDrawLine( m_display.x() , xd() , gc.
x() , x1 , y1 , x2 , y2 ) ;
49 G_ASSERT( dx >= 0 && dy >= 0 ) ;
50 XFillRectangle( m_display.x() , xd() , gc.
x() , x , y ,
51 static_cast<unsigned int>(dx) , static_cast<unsigned int>(dy) ) ;
55 unsigned int height ,
int angle1 ,
int angle2 )
57 XDrawArc( m_display.x() , xd() , gc.
x() , x , y , width , height , angle1 , angle2 ) ;
void drawPoint(Context &, int x, int y)
Draws a point.
Drawable(Display &)
Constructor. The display reference is kept.
::GC x()
Returns the X object.
void drawRectangle(Context &, int x, int y, int dx, int dy)
Draws a rectangle.
void drawLine(Context &, int x1, int y1, int x2, int y2)
Draws a line.
void drawArc(Context &, int x, int y, unsigned int width, unsigned int height, int angle1, int angle2)
Draws an arc.
virtual ~Drawable()
Destructor.