Changeset View
Changeset View
Standalone View
Standalone View
effects.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 67 | { | |||
---|---|---|---|---|---|
69 | Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.Effects") | 69 | Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.Effects") | ||
70 | Q_PROPERTY(QStringList activeEffects READ activeEffects) | 70 | Q_PROPERTY(QStringList activeEffects READ activeEffects) | ||
71 | Q_PROPERTY(QStringList loadedEffects READ loadedEffects) | 71 | Q_PROPERTY(QStringList loadedEffects READ loadedEffects) | ||
72 | Q_PROPERTY(QStringList listOfEffects READ listOfEffects) | 72 | Q_PROPERTY(QStringList listOfEffects READ listOfEffects) | ||
73 | public: | 73 | public: | ||
74 | EffectsHandlerImpl(Compositor *compositor, Scene *scene); | 74 | EffectsHandlerImpl(Compositor *compositor, Scene *scene); | ||
75 | ~EffectsHandlerImpl() override; | 75 | ~EffectsHandlerImpl() override; | ||
76 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | 76 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | ||
77 | void paintScreen(int mask, QRegion region, ScreenPaintData& data) override; | 77 | void paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) override; | ||
78 | /** | 78 | /** | ||
79 | * Special hook to perform a paintScreen but just with the windows on @p desktop. | 79 | * Special hook to perform a paintScreen but just with the windows on @p desktop. | ||
80 | */ | 80 | */ | ||
81 | void paintDesktop(int desktop, int mask, QRegion region, ScreenPaintData& data); | 81 | void paintDesktop(int desktop, int mask, QRegion region, ScreenPaintData& data); | ||
82 | void postPaintScreen() override; | 82 | void postPaintScreen() override; | ||
83 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | 83 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | ||
84 | void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | 84 | void paintWindow(EffectWindow* w, int mask, const QRegion ®ion, WindowPaintData& data) override; | ||
85 | void postPaintWindow(EffectWindow* w) override; | 85 | void postPaintWindow(EffectWindow* w) override; | ||
86 | void paintEffectFrame(EffectFrame* frame, QRegion region, double opacity, double frameOpacity) override; | 86 | void paintEffectFrame(EffectFrame* frame, const QRegion ®ion, double opacity, double frameOpacity) override; | ||
87 | 87 | | |||
88 | Effect *provides(Effect::Feature ef); | 88 | Effect *provides(Effect::Feature ef); | ||
89 | 89 | | |||
90 | void drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | 90 | void drawWindow(EffectWindow* w, int mask, const QRegion ®ion, WindowPaintData& data) override; | ||
91 | 91 | | |||
92 | void buildQuads(EffectWindow* w, WindowQuadList& quadList) override; | 92 | void buildQuads(EffectWindow* w, WindowQuadList& quadList) override; | ||
93 | 93 | | |||
94 | void activateWindow(EffectWindow* c) override; | 94 | void activateWindow(EffectWindow* c) override; | ||
95 | EffectWindow* activeWindow() const override; | 95 | EffectWindow* activeWindow() const override; | ||
96 | void moveWindow(EffectWindow* w, const QPoint& pos, bool snap = false, double snapAdjust = 1.0) override; | 96 | void moveWindow(EffectWindow* w, const QPoint& pos, bool snap = false, double snapAdjust = 1.0) override; | ||
97 | void windowToDesktop(EffectWindow* w, int desktop) override; | 97 | void windowToDesktop(EffectWindow* w, int desktop) override; | ||
98 | void windowToScreen(EffectWindow* w, int screen) override; | 98 | void windowToScreen(EffectWindow* w, int screen) override; | ||
▲ Show 20 Lines • Show All 437 Lines • ▼ Show 20 Line(s) | |||||
536 | { | 536 | { | ||
537 | Q_OBJECT | 537 | Q_OBJECT | ||
538 | public: | 538 | public: | ||
539 | explicit EffectFrameImpl(EffectFrameStyle style, bool staticSize = true, QPoint position = QPoint(-1, -1), | 539 | explicit EffectFrameImpl(EffectFrameStyle style, bool staticSize = true, QPoint position = QPoint(-1, -1), | ||
540 | Qt::Alignment alignment = Qt::AlignCenter); | 540 | Qt::Alignment alignment = Qt::AlignCenter); | ||
541 | ~EffectFrameImpl() override; | 541 | ~EffectFrameImpl() override; | ||
542 | 542 | | |||
543 | void free() override; | 543 | void free() override; | ||
544 | void render(QRegion region = infiniteRegion(), double opacity = 1.0, double frameOpacity = 1.0) override; | 544 | void render(const QRegion ®ion = infiniteRegion(), double opacity = 1.0, double frameOpacity = 1.0) override; | ||
545 | Qt::Alignment alignment() const override; | 545 | Qt::Alignment alignment() const override; | ||
546 | void setAlignment(Qt::Alignment alignment) override; | 546 | void setAlignment(Qt::Alignment alignment) override; | ||
547 | const QFont& font() const override; | 547 | const QFont& font() const override; | ||
548 | void setFont(const QFont& font) override; | 548 | void setFont(const QFont& font) override; | ||
549 | const QRect& geometry() const override; | 549 | const QRect& geometry() const override; | ||
550 | void setGeometry(const QRect& geometry, bool force = false) override; | 550 | void setGeometry(const QRect& geometry, bool force = false) override; | ||
551 | const QIcon& icon() const override; | 551 | const QIcon& icon() const override; | ||
552 | void setIcon(const QIcon& icon) override; | 552 | void setIcon(const QIcon& icon) override; | ||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |