⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qpainter-h.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
    QWMatrix    xmat;    QWMatrix    ixmat;    double      m11() const { return xmat.m11(); }    double      m12() const { return xmat.m12(); }    double      m21() const { return xmat.m21(); }    double      m22() const { return xmat.m22(); }    double      dx() const { return xmat.dx(); }    double      dy() const { return xmat.dy(); }    double      im11() const { return ixmat.m11(); }    double      im12() const { return ixmat.m12(); }    double      im21() const { return ixmat.m21(); }    double      im22() const { return ixmat.m22(); }    double      idx() const { return ixmat.dx(); }    double      idy() const { return ixmat.dy(); }    int         txop;    bool        txinv;#else    // even without transformations we still have translations    int         xlatex;    int         xlatey;#endif    void       *penRef;                         // pen cache ref    void       *brushRef;                       // brush cache ref    void       *ps_stack;    void       *wm_stack;    void        killPStack();protected:#if defined(_WS_WIN_)    QT_WIN_PAINTER_MEMBERS#elif defined(_WS_X11_)    Display    *dpy;                            // current display    WId         hd;                             // handle to drawable    GC          gc;                             // graphics context (standard)    GC          gc_brush;                       // graphics contect for brush    QPoint      curPt;                          // current point#elif defined(_WS_MAC_)    int penx;    int peny;    void * hd;#elif defined(_WS_QWS_)    QGfx * gfx;    friend void qwsUpdateActivePainters();#endif    friend class QFontMetrics;    friend class QFontInfo;    friend void qt_format_text( const QFontMetrics&amp; fm, int x, int y, int w, int h,                     int tf, const QString&amp; str, int len, QRect *brect,                     int tabstops, int* tabarray, int tabarraylen,                     char **internal, QPainter* painter );private:        // Disabled copy constructor and operator=#if defined(Q_DISABLE_COPY)    QPainter( const QPainter &amp; );    QPainter &amp;operator=( const QPainter &amp; );#endif};/*****************************************************************************  QPainter member functions *****************************************************************************/inline QPaintDevice *QPainter::device() const{    return pdev;}inline bool QPainter::isActive() const{    return testf(IsActive);}inline const QFont &amp;QPainter::font() const{    return cfont;}inline const QPen &amp;QPainter::pen() const{    return cpen;}inline const QBrush &amp;QPainter::brush() const{    return cbrush;}/*inline PaintUnit QPainter::unit() const{    return (PaintUnit)pu;}*/inline const QColor &amp;QPainter::backgroundColor() const{    return bg_col;}inline Qt::BGMode QPainter::backgroundMode() const{    return (BGMode)bg_mode;}inline Qt::RasterOp QPainter::rasterOp() const{    return (RasterOp)rop;}inline const QPoint &amp;QPainter::brushOrigin() const{    return bro;}inline bool QPainter::hasViewXForm() const{#ifndef QT_NO_TRANSFORMATIONS    return testf(VxF);#else    return xlatex || xlatey;#endif}inline bool QPainter::hasWorldXForm() const{#ifndef QT_NO_TRANSFORMATIONS    return testf(WxF);#else    return xlatex || xlatey;#endif}inline bool QPainter::hasClipping() const{    return testf(ClipOn);}inline const QRegion &amp;QPainter::clipRegion() const{    return crgn;}inline int QPainter::tabStops() const{    return tabstops;}inline int *QPainter::tabArray() const{    return tabarray;}#if defined(_WS_WIN_)inline HDC QPainter::handle() const{    return hdc;}#elif defined(_WS_X11_)inline HANDLE QPainter::handle() const{    return hd;}#endifinline void QPainter::setBrushOrigin( const QPoint &amp;p ){    setBrushOrigin( p.x(), p.y() );}#ifndef QT_NO_TRANSFORMATIONSinline void QPainter::setWindow( const QRect &amp;r ){    setWindow( r.x(), r.y(), r.width(), r.height() );}inline void QPainter::setViewport( const QRect &amp;r ){    setViewport( r.x(), r.y(), r.width(), r.height() );}#endifinline void QPainter::setClipRect( int x, int y, int w, int h ){    setClipRect( QRect(x,y,w,h) );}inline void QPainter::drawPoint( const QPoint &amp;p ){    drawPoint( p.x(), p.y() );}inline void QPainter::moveTo( const QPoint &amp;p ){    moveTo( p.x(), p.y() );}inline void QPainter::lineTo( const QPoint &amp;p ){    lineTo( p.x(), p.y() );}inline void QPainter::drawLine( const QPoint &amp;p1, const QPoint &amp;p2 ){    drawLine( p1.x(), p1.y(), p2.x(), p2.y() );}inline void QPainter::drawRect( const QRect &amp;r ){    drawRect( r.x(), r.y(), r.width(), r.height() );}inline void QPainter::drawWinFocusRect( const QRect &amp;r ){    drawWinFocusRect( r.x(), r.y(), r.width(), r.height() );}inline void QPainter::drawWinFocusRect( const QRect &amp;r,const QColor &amp;penColor ){    drawWinFocusRect( r.x(), r.y(), r.width(), r.height(), penColor );}inline void QPainter::drawRoundRect( const QRect &amp;r, int xRnd, int yRnd ){    drawRoundRect( r.x(), r.y(), r.width(), r.height(), xRnd, yRnd );}inline void QPainter::drawRoundRect( const QRect &amp;r ){    // ### Qt 3.0 make one func. with def. args.    drawRoundRect( r.x(), r.y(), r.width(), r.height(), 25, 25 );}inline void QPainter::drawRoundRect( int x, int y, int w, int h ){    // ### Qt 3.0 make one func. with def. args.    drawRoundRect( x, y, w, h, 25, 25 );}inline void QPainter::drawEllipse( const QRect &amp;r ){    drawEllipse( r.x(), r.y(), r.width(), r.height() );}inline void QPainter::drawArc( const QRect &amp;r, int a, int alen ){    drawArc( r.x(), r.y(), r.width(), r.height(), a, alen );}inline void QPainter::drawPie( const QRect &amp;r, int a, int alen ){    drawPie( r.x(), r.y(), r.width(), r.height(), a, alen );}inline void QPainter::drawChord( const QRect &amp;r, int a, int alen ){    drawChord( r.x(), r.y(), r.width(), r.height(), a, alen );}inline void QPainter::drawPixmap( const QPoint &amp;p, const QPixmap &amp;pm,                                  const QRect &amp;sr ){    drawPixmap( p.x(), p.y(), pm, sr.x(), sr.y(), sr.width(), sr.height() );}inline void QPainter::drawImage( const QPoint &amp;p, const QImage &amp;pm,                                 const QRect &amp;sr ){    drawImage( p.x(), p.y(), pm, sr.x(), sr.y(), sr.width(), sr.height() );}inline void QPainter::drawTiledPixmap( const QRect &amp;r, const QPixmap &amp;pm,                                       const QPoint &amp;sp ){    drawTiledPixmap( r.x(), r.y(), r.width(), r.height(), pm, sp.x(), sp.y() );}inline void QPainter::drawTiledPixmap( const QRect &amp;r, const QPixmap &amp;pm ){    drawTiledPixmap( r.x(), r.y(), r.width(), r.height(), pm, 0, 0 );}inline void QPainter::fillRect( const QRect &amp;r, const QBrush &amp;brush ){    fillRect( r.x(), r.y(), r.width(), r.height(), brush );}inline void QPainter::eraseRect( int x, int y, int w, int h ){    fillRect( x, y, w, h, backgroundColor() );}inline void QPainter::eraseRect( const QRect &amp;r ){    fillRect( r.x(), r.y(), r.width(), r.height(), backgroundColor() );}inline void QPainter::drawText( const QPoint &amp;p, const QString &amp;s, int len ){    drawText( p.x(), p.y(), s, len );}inline void QPainter::drawText( const QRect &amp;r, int tf,                                const QString&amp; str, int len, QRect *br, char **i ){    drawText( r.x(), r.y(), r.width(), r.height(), tf, str, len, br, i );}inline QRect QPainter::boundingRect( const QRect &amp;r, int tf,                                     const QString&amp; str, int len, char **i ){    return boundingRect( r.x(), r.y(), r.width(), r.height(), tf, str, len,                         i );}#if defined(_WS_WIN_)inline void *QPainter::textMetric(){    if ( testf(DirtyFont) )        updateFont();    return textmet;}#endif#if defined(_WS_QWS_)inline QGfx * QPainter::internalGfx(){    return gfx;}#endif#endif // QPAINTER_H</pre><p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -