• 6417阅读
  • 3回复

【提问】请问Qtopia下的QPainter类的画图功能在哪里实现的? [复制链接]

上一主题 下一主题
离线shangzh
 

只看楼主 倒序阅读 楼主  发表于: 2005-12-28
【提问】请问Qtopia下的QPainter类的画图功能在哪里实现的?
比如画矩形,用drawRect来画,但我在qpainter.cpp中没有找到drawRect的实现函数,它
  的实现函数在哪里?我是说最原始的实现函数,就是怎么画矩形的函数,例如当style选
  为DotLine时图是怎么画出来的?
离线fanyu
只看该作者 1楼 发表于: 2005-12-28
可以通过文件查找,到到drawRect函数的实现,也可能它的实现在做在库里的。
离线nanhu_007

只看该作者 2楼 发表于: 2005-12-29
void drawPoint ( int x, int y )
void drawPoint ( const QPoint & )
void drawPoints ( const QPointArray & a, int index=0, int npoints=-1 )
void moveTo ( int x, int y )
void moveTo ( const QPoint & )
void lineTo ( int x, int y )
void lineTo ( const QPoint & )
void drawLine ( int x1, int y1, int x2, int y2 )
void drawLine ( const QPoint &, const QPoint & )
void drawRect ( int x, int y, int w, int h )
void drawRect ( const QRect & )
void drawWinFocusRect ( int x, int y, int w, int h )
void drawWinFocusRect ( int x, int y, int w, int h, const QColor & bgColor )
void drawWinFocusRect ( const QRect & )
void drawWinFocusRect ( const QRect &, const QColor & bgColor )
void drawRoundRect ( int x, int y, int w, int h, int, int )
void drawRoundRect ( const QRect &, int, int )
void drawRoundRect ( int x, int y, int w, int h )
void drawRoundRect ( const QRect & )
void drawEllipse ( int x, int y, int w, int h )
void drawEllipse ( const QRect & )
void drawArc ( int x, int y, int w, int h, int a, int alen )
void drawArc ( const QRect &, int a, int alen )
void drawPie ( int x, int y, int w, int h, int a, int alen )
void drawPie ( const QRect &, int a, int alen )
void drawChord ( int x, int y, int w, int h, int a, int alen )
void drawChord ( const QRect &, int a, int alen )
void drawLineSegments ( const QPointArray &, int index=0, int nlines=-1 )
void drawPolyline ( const QPointArray &, int index=0, int npoints=-1 )
void drawPolygon ( const QPointArray &, bool winding=FALSE, int index=0, int npoints=-1 )
void drawQuadBezier ( const QPointArray &, int index=0 )
void drawPixmap ( int x, int y, const QPixmap &, int sx=0, int sy=0, int sw=-1, int sh=-1 )
void drawPixmap ( const QPoint &, const QPixmap &, const QRect & sr )
void drawPixmap ( const QPoint &, const QPixmap & )
void drawImage ( int x, int y, const QImage &, int sx=0, int sy=0, int sw=-1, int sh=-1 )
void drawImage ( const QPoint &, const QImage &, const QRect & sr )
void drawImage ( const QPoint &, const QImage & )
void drawImage ( int x, int y, const QImage &, int sx, int sy, int sw, int sh, int conversion_flags )
void drawImage ( const QPoint &, const QImage &, const QRect & sr, int conversion_flags )
void drawImage ( const QPoint &, const QImage &, int conversion_flags )
void drawTiledPixmap ( int x, int y, int w, int h, const QPixmap &, int sx=0, int sy=0 )
void drawTiledPixmap ( const QRect &, const QPixmap &, const QPoint & )
void drawTiledPixmap ( const QRect &, const QPixmap & )
void drawPicture ( const QPicture & )
void fillRect ( int x, int y, int w, int h, const QBrush & )
void fillRect ( const QRect &, const QBrush & )
void eraseRect ( int x, int y, int w, int h )
void eraseRect ( const QRect & )
void drawText ( int x, int y, const QString &, int len = -1 )
void drawText ( const QPoint &, const QString &, int len = -1 )
void drawText ( int x, int y, int w, int h, int flags, const QString &, int len = -1, QRect * br=0, char ** internal=0 )
void drawText ( const QRect &, int flags, const QString &, int len = -1, QRect * br=0, char ** internal=0 )
QRect boundingRect ( int x, int y, int w, int h, int flags, const QString &, int len = -1, char ** intern=0 )
QRect boundingRect ( const QRect &, int flags, const QString &, int len = -1, char ** intern=0 )
int tabStops () const
void setTabStops ( int )
int* tabArray () const
void setTabArray ( int * )
离线lonelyghost
只看该作者 3楼 发表于: 2006-04-03
这个我知道。在/src/kernel/qpainter_qws.cpp中。
我最近在研究QPainter::drawPolygon的代码。
快速回复
限100 字节
 
上一个 下一个