Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_painter.h
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_painter.h
r4271 r8127 17 17 #include <qpen.h> 18 18 #include <qline.h> 19 #include <qpalette.h> 19 20 20 21 class QPainter; … … 30 31 class QwtInterval; 31 32 32 class QPalette;33 33 class QTextDocument; 34 34 class QPainterPath; … … 70 70 static void drawLine( QPainter *, const QLineF & ); 71 71 72 static void drawPolygon( QPainter *, const QPolygonF & pa);73 static void drawPolyline( QPainter *, const QPolygonF & pa);72 static void drawPolygon( QPainter *, const QPolygonF & ); 73 static void drawPolyline( QPainter *, const QPolygonF & ); 74 74 static void drawPolyline( QPainter *, const QPointF *, int pointCount ); 75 76 static void drawPolygon( QPainter *, const QPolygon & ); 77 static void drawPolyline( QPainter *, const QPolygon & ); 78 static void drawPolyline( QPainter *, const QPoint *, int pointCount ); 79 80 static void drawPoint( QPainter *, const QPoint & ); 81 static void drawPoints( QPainter *, const QPolygon & ); 82 static void drawPoints( QPainter *, const QPoint *, int pointCount ); 75 83 76 84 static void drawPoint( QPainter *, double x, double y ); 77 85 static void drawPoint( QPainter *, const QPointF & ); 86 static void drawPoints( QPainter *, const QPolygonF & ); 87 static void drawPoints( QPainter *, const QPointF *, int pointCount ); 78 88 79 89 static void drawPath( QPainter *, const QPainterPath & ); … … 81 91 static void drawPixmap( QPainter *, const QRectF &, const QPixmap & ); 82 92 93 static void drawRoundFrame( QPainter *, 94 const QRectF &, const QPalette &, int lineWidth, int frameStyle ); 95 83 96 static void drawRoundedFrame( QPainter *, 84 97 const QRectF &, double xRadius, double yRadius, 85 98 const QPalette &, int lineWidth, int frameStyle ); 86 99 87 static void drawFocusRect( QPainter *, QWidget * ); 88 static void drawFocusRect( QPainter *, QWidget *, const QRect & ); 100 static void drawFrame( QPainter *, const QRectF &rect, 101 const QPalette &palette, QPalette::ColorRole foregroundRole, 102 int lineWidth, int midLineWidth, int frameStyle ); 103 104 static void drawFocusRect( QPainter *, const QWidget * ); 105 static void drawFocusRect( QPainter *, const QWidget *, const QRect & ); 89 106 90 107 static void drawColorBar( QPainter *painter, … … 93 110 94 111 static bool isAligning( QPainter *painter ); 112 static bool isX11GraphicsSystem(); 113 114 static void fillPixmap( const QWidget *, 115 QPixmap &, const QPoint &offset = QPoint() ); 116 117 static void drawBackgound( QPainter *painter, 118 const QRectF &rect, const QWidget *widget ); 119 120 static QPixmap backingStore( QWidget *, const QSize & ); 95 121 96 122 private: … … 103 129 { 104 130 QwtPainter::drawPoint( painter, QPointF( x, y ) ); 131 } 132 133 //! Wrapper for QPainter::drawPoints() 134 inline void QwtPainter::drawPoints( QPainter *painter, const QPolygon &polygon ) 135 { 136 drawPoints( painter, polygon.data(), polygon.size() ); 137 } 138 139 //! Wrapper for QPainter::drawPoints() 140 inline void QwtPainter::drawPoints( QPainter *painter, const QPolygonF &polygon ) 141 { 142 drawPoints( painter, polygon.data(), polygon.size() ); 105 143 } 106 144 … … 119 157 120 158 /*! 121 Returns whetherline splitting for the raster paint engine is enabled.159 \return True, when line splitting for the raster paint engine is enabled. 122 160 \sa setPolylineSplitting() 123 161 */ … … 128 166 129 167 /*! 130 Returnswhether coordinates should be rounded, before they are painted131 to a paint engine that floors to integer values.For other paint engines132 this ( Pdf, SVG ), this flag has no effect.168 Check whether coordinates should be rounded, before they are painted 169 to a paint engine that rounds to integer values. For other paint engines 170 ( PDF, SVG ), this flag has no effect. 133 171 172 \return True, when rounding is enabled 134 173 \sa setRoundingAlignment(), isAligning() 135 174 */
Note:
See TracChangeset
for help on using the changeset viewer.