Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.cpp
Show First 20 Lines • Show All 559 Lines • ▼ Show 20 Line(s) | 559 | { | |||
---|---|---|---|---|---|
560 | return false; | 560 | return false; | ||
561 | } | 561 | } | ||
562 | 562 | | |||
563 | void Effect::prePaintScreen(ScreenPrePaintData& data, int time) | 563 | void Effect::prePaintScreen(ScreenPrePaintData& data, int time) | ||
564 | { | 564 | { | ||
565 | effects->prePaintScreen(data, time); | 565 | effects->prePaintScreen(data, time); | ||
566 | } | 566 | } | ||
567 | 567 | | |||
568 | void Effect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 568 | void Effect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
569 | { | 569 | { | ||
570 | effects->paintScreen(mask, region, data); | 570 | effects->paintScreen(mask, region, data); | ||
571 | } | 571 | } | ||
572 | 572 | | |||
573 | void Effect::postPaintScreen() | 573 | void Effect::postPaintScreen() | ||
574 | { | 574 | { | ||
575 | effects->postPaintScreen(); | 575 | effects->postPaintScreen(); | ||
576 | } | 576 | } | ||
577 | 577 | | |||
578 | void Effect::prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) | 578 | void Effect::prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) | ||
579 | { | 579 | { | ||
580 | effects->prePaintWindow(w, data, time); | 580 | effects->prePaintWindow(w, data, time); | ||
581 | } | 581 | } | ||
582 | 582 | | |||
583 | void Effect::paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) | 583 | void Effect::paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) | ||
584 | { | 584 | { | ||
585 | effects->paintWindow(w, mask, region, data); | 585 | effects->paintWindow(w, mask, region, data); | ||
586 | } | 586 | } | ||
587 | 587 | | |||
588 | void Effect::postPaintWindow(EffectWindow* w) | 588 | void Effect::postPaintWindow(EffectWindow* w) | ||
589 | { | 589 | { | ||
590 | effects->postPaintWindow(w); | 590 | effects->postPaintWindow(w); | ||
591 | } | 591 | } | ||
592 | 592 | | |||
593 | void Effect::paintEffectFrame(KWin::EffectFrame* frame, QRegion region, double opacity, double frameOpacity) | 593 | void Effect::paintEffectFrame(KWin::EffectFrame* frame, const QRegion ®ion, double opacity, double frameOpacity) | ||
594 | { | 594 | { | ||
595 | effects->paintEffectFrame(frame, region, opacity, frameOpacity); | 595 | effects->paintEffectFrame(frame, region, opacity, frameOpacity); | ||
596 | } | 596 | } | ||
597 | 597 | | |||
598 | bool Effect::provides(Feature) | 598 | bool Effect::provides(Feature) | ||
599 | { | 599 | { | ||
600 | return false; | 600 | return false; | ||
601 | } | 601 | } | ||
602 | 602 | | |||
603 | bool Effect::isActive() const | 603 | bool Effect::isActive() const | ||
604 | { | 604 | { | ||
605 | return true; | 605 | return true; | ||
606 | } | 606 | } | ||
607 | 607 | | |||
608 | QString Effect::debug(const QString &) const | 608 | QString Effect::debug(const QString &) const | ||
609 | { | 609 | { | ||
610 | return QString(); | 610 | return QString(); | ||
611 | } | 611 | } | ||
612 | 612 | | |||
613 | void Effect::drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) | 613 | void Effect::drawWindow(EffectWindow* w, int mask, const QRegion ®ion, WindowPaintData& data) | ||
614 | { | 614 | { | ||
615 | effects->drawWindow(w, mask, region, data); | 615 | effects->drawWindow(w, mask, region, data); | ||
616 | } | 616 | } | ||
617 | 617 | | |||
618 | void Effect::buildQuads(EffectWindow* w, WindowQuadList& quadList) | 618 | void Effect::buildQuads(EffectWindow* w, WindowQuadList& quadList) | ||
619 | { | 619 | { | ||
620 | effects->buildQuads(w, quadList); | 620 | effects->buildQuads(w, quadList); | ||
621 | } | 621 | } | ||
▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | 771 | EffectWindow::EffectWindow(QObject *parent) | |||
773 | , d(new Private(this)) | 773 | , d(new Private(this)) | ||
774 | { | 774 | { | ||
775 | } | 775 | } | ||
776 | 776 | | |||
777 | EffectWindow::~EffectWindow() | 777 | EffectWindow::~EffectWindow() | ||
778 | { | 778 | { | ||
779 | } | 779 | } | ||
780 | 780 | | |||
781 | bool EffectWindow::isOnActivity(QString activity) const | 781 | bool EffectWindow::isOnActivity(const QString &activity) const | ||
782 | { | 782 | { | ||
783 | const QStringList _activities = activities(); | 783 | const QStringList _activities = activities(); | ||
784 | return _activities.isEmpty() || _activities.contains(activity); | 784 | return _activities.isEmpty() || _activities.contains(activity); | ||
785 | } | 785 | } | ||
786 | 786 | | |||
787 | bool EffectWindow::isOnAllActivities() const | 787 | bool EffectWindow::isOnAllActivities() const | ||
788 | { | 788 | { | ||
789 | return activities().isEmpty(); | 789 | return activities().isEmpty(); | ||
▲ Show 20 Lines • Show All 1154 Lines • Show Last 20 Lines |