void QSvgRect::draw(QPainter *p, QSvgExtraStates &states) { if (m_rx || m_ry) { QT_SVG_DRAW_SHAPE(p->drawRoundedRect(m_rect, m_rx, m_ry, Qt::RelativeSize)); } else { QT_SVG_DRAW_SHAPE(p->drawRect(m_rect)); } }
void QSvgPath::draw(QPainter *p, QSvgExtraStates &states) { applyStyle(p, states); m_path.setFillRule(states.fillRule); QT_SVG_DRAW_SHAPE(p->drawPath(m_path)); revertStyle(p, states); }
void QSvgPolygon::draw(QPainter *p, QSvgExtraStates &states) { applyStyle(p, states); QT_SVG_DRAW_SHAPE(p->drawPolygon(m_poly, states.fillRule)); revertStyle(p, states); }
void QSvgEllipse::draw(QPainter *p, QSvgExtraStates &states) { applyStyle(p, states); QT_SVG_DRAW_SHAPE(p->drawEllipse(m_bounds)); revertStyle(p, states); }
void QSvgPolygon::draw(QPainter *p, QSvgExtraStates &states) { QT_SVG_DRAW_SHAPE(p->drawPolygon(m_poly)); }
void QSvgPath::draw(QPainter *p, QSvgExtraStates &states) { QT_SVG_DRAW_SHAPE(p->drawPath(m_path)); }
void QSvgEllipse::draw(QPainter *p, QSvgExtraStates &states) { QT_SVG_DRAW_SHAPE(p->drawEllipse(m_bounds)); }