Home | History | Annotate | Download | only in qt

Lines Matching refs:shadow

201     ContextShadow shadow;
302 m_data->shadowStack.push(m_data->shadow);
314 m_data->shadow = ContextShadow();
316 m_data->shadow = m_data->shadowStack.pop();
321 // thus it must not cast any shadow.
337 // Must not cast any shadow.
500 ContextShadow* shadow = contextShadow();
501 if (shadow->mustUseContextShadow(this) || m_state.fillPattern || m_state.fillGradient)
503 QPainter* shadowPainter = shadow->beginShadowLayer(this, platformPath.controlPointRect());
507 shadowPainter->setOpacity(static_cast<qreal>(shadow->m_color.alpha()) / 255);
512 shadowPainter->setOpacity(static_cast<qreal>(shadow->m_color.alpha()) / 255);
515 QColor shadowColor = shadow->m_color;
519 shadow->endShadowLayer(this);
522 QPointF offset = shadow->offset();
524 QColor shadowColor = shadow->m_color;
552 ContextShadow* shadow = contextShadow();
553 if (shadow->mustUseContextShadow(this) || m_state.strokePattern || m_state.strokeGradient)
557 QPainter* shadowPainter = shadow->beginShadowLayer(this, boundingRect);
564 shadowPainter->setOpacity(static_cast<qreal>(shadow->m_color.alpha()) / 255);
567 shadowPainter->setOpacity(static_cast<qreal>(m_data->shadow.m_color.alpha()) / 255);
570 shadow->endShadowLayer(this);
573 QPointF offset = shadow->offset();
575 QColor shadowColor = shadow->m_color;
673 ContextShadow* shadow = contextShadow();
677 QPainter* shadowPainter = hasShadow() ? shadow->beginShadowLayer(this, normalizedRect) : 0;
681 shadowPainter->fillRect(normalizedRect, shadow->m_color);
682 shadow->endShadowLayer(this);
688 QPainter* shadowPainter = hasShadow() ? shadow->beginShadowLayer(this, normalizedRect) : 0;
692 shadowPainter->fillRect(normalizedRect, shadow->m_color);
693 shadow->endShadowLayer(this);
698 if (shadow->mustUseContextShadow(this)) {
699 QPainter* shadowPainter = shadow->beginShadowLayer(this, normalizedRect);
701 shadowPainter->setOpacity(static_cast<qreal>(shadow->m_color.alpha()) / 255);
703 shadow->endShadowLayer(this);
706 // Solid rectangle fill with no blur shadow or transformations applied can be done
707 // faster without using the shadow layer at all.
708 QColor shadowColor = shadow->m_color;
710 p->fillRect(normalizedRect.translated(shadow->offset()), shadowColor);
729 ContextShadow* shadow = contextShadow();
730 if (shadow->mustUseContextShadow(this)) {
731 QPainter* shadowPainter = shadow->beginShadowLayer(this, normalizedRect);
734 shadowPainter->fillRect(normalizedRect, shadow->m_color);
735 shadow->endShadowLayer(this);
738 p->fillRect(normalizedRect.translated(shadow->offset()), shadow->m_color);
753 ContextShadow* shadow = contextShadow();
754 if (shadow->mustUseContextShadow(this)) {
755 QPainter* shadowPainter = shadow->beginShadowLayer(this, rect);
758 shadowPainter->fillPath(path.platformPath(), QColor(m_data->shadow.m_color));
759 shadow->endShadowLayer(this);
762 p->translate(m_data->shadow.offset());
763 p->fillPath(path.platformPath(), QColor(m_data->shadow.m_color));
764 p->translate(-m_data->shadow.offset());
777 return &m_data->shadow;
940 m_data->shadow = ContextShadow(color, blur, FloatSize(size.width(), -size.height()));
942 m_data->shadow = ContextShadow(color, blur, FloatSize(size.width(), size.height()));
944 m_data->shadow.setShadowsIgnoreTransforms(m_state.shadowsIgnoreTransforms);
949 m_data->shadow.clear();