Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 820 Lines • ▼ Show 20 Line(s) | 790 | { | |||
---|---|---|---|---|---|
821 | * Whether the window decorations support blurring behind the decoration. | 821 | * Whether the window decorations support blurring behind the decoration. | ||
822 | */ | 822 | */ | ||
823 | Q_PROPERTY(bool decorationSupportsBlurBehind READ decorationSupportsBlurBehind) | 823 | Q_PROPERTY(bool decorationSupportsBlurBehind READ decorationSupportsBlurBehind) | ||
824 | Q_PROPERTY(CompositingType compositingType READ compositingType CONSTANT) | 824 | Q_PROPERTY(CompositingType compositingType READ compositingType CONSTANT) | ||
825 | Q_PROPERTY(QPoint cursorPos READ cursorPos) | 825 | Q_PROPERTY(QPoint cursorPos READ cursorPos) | ||
826 | Q_PROPERTY(QSize virtualScreenSize READ virtualScreenSize NOTIFY virtualScreenSizeChanged) | 826 | Q_PROPERTY(QSize virtualScreenSize READ virtualScreenSize NOTIFY virtualScreenSizeChanged) | ||
827 | Q_PROPERTY(QRect virtualScreenGeometry READ virtualScreenGeometry NOTIFY virtualScreenGeometryChanged) | 827 | Q_PROPERTY(QRect virtualScreenGeometry READ virtualScreenGeometry NOTIFY virtualScreenGeometryChanged) | ||
828 | Q_PROPERTY(bool hasActiveFullScreenEffect READ hasActiveFullScreenEffect NOTIFY hasActiveFullScreenEffectChanged) | 828 | Q_PROPERTY(bool hasActiveFullScreenEffect READ hasActiveFullScreenEffect NOTIFY hasActiveFullScreenEffectChanged) | ||
829 | | ||||
830 | /** | ||||
831 | * The status of the session i.e if the user is logging out | ||||
832 | * @since 5.18 | ||||
zzag: The comment fits 100 characters limit, no need to break it. | |||||
833 | */ | ||||
834 | Q_PROPERTY(KWin::SessionState sessionState READ sessionState NOTIFY sessionStateChanged) | ||||
835 | | ||||
829 | friend class Effect; | 836 | friend class Effect; | ||
830 | public: | 837 | public: | ||
831 | explicit EffectsHandler(CompositingType type); | 838 | explicit EffectsHandler(CompositingType type); | ||
832 | ~EffectsHandler() override; | 839 | ~EffectsHandler() override; | ||
833 | // for use by effects | 840 | // for use by effects | ||
834 | virtual void prePaintScreen(ScreenPrePaintData& data, int time) = 0; | 841 | virtual void prePaintScreen(ScreenPrePaintData& data, int time) = 0; | ||
835 | virtual void paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) = 0; | 842 | virtual void paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) = 0; | ||
836 | virtual void postPaintScreen() = 0; | 843 | virtual void postPaintScreen() = 0; | ||
▲ Show 20 Lines • Show All 525 Lines • ▼ Show 20 Line(s) | |||||
1362 | 1369 | | |||
1363 | /** | 1370 | /** | ||
1364 | * Render the supplied EffectQuickView onto the scene | 1371 | * Render the supplied EffectQuickView onto the scene | ||
1365 | * It can be called at any point during the scene rendering | 1372 | * It can be called at any point during the scene rendering | ||
1366 | * @since 5.18 | 1373 | * @since 5.18 | ||
1367 | */ | 1374 | */ | ||
1368 | virtual void renderEffectQuickView(EffectQuickView *effectQuickView) const = 0; | 1375 | virtual void renderEffectQuickView(EffectQuickView *effectQuickView) const = 0; | ||
1369 | 1376 | | |||
1377 | /** | ||||
1378 | * The status of the session i.e if the user is logging out | ||||
zzag: Please write more detailed description. | |||||
1379 | * @since 5.18 | ||||
1380 | */ | ||||
1381 | virtual SessionState sessionState() const = 0; | ||||
1370 | Q_SIGNALS: | 1382 | Q_SIGNALS: | ||
1371 | /** | 1383 | /** | ||
1372 | * Signal emitted when the current desktop changed. | 1384 | * Signal emitted when the current desktop changed. | ||
1373 | * @param oldDesktop The previously current desktop | 1385 | * @param oldDesktop The previously current desktop | ||
1374 | * @param newDesktop The new current desktop | 1386 | * @param newDesktop The new current desktop | ||
1375 | * @param with The window which is taken over to the new desktop, can be NULL | 1387 | * @param with The window which is taken over to the new desktop, can be NULL | ||
1376 | * @since 4.9 | 1388 | * @since 4.9 | ||
1377 | */ | 1389 | */ | ||
▲ Show 20 Lines • Show All 416 Lines • ▼ Show 20 Line(s) | |||||
1794 | /** | 1806 | /** | ||
1795 | * This signal is emitted when the full screen state of @p w was changed. | 1807 | * This signal is emitted when the full screen state of @p w was changed. | ||
1796 | * | 1808 | * | ||
1797 | * @param w The window whose the full screen state was changed. | 1809 | * @param w The window whose the full screen state was changed. | ||
1798 | * @since 5.15 | 1810 | * @since 5.15 | ||
1799 | */ | 1811 | */ | ||
1800 | void windowFullScreenChanged(KWin::EffectWindow *w); | 1812 | void windowFullScreenChanged(KWin::EffectWindow *w); | ||
1801 | 1813 | | |||
1814 | /** | ||||
1815 | * This signal is emitted when the session state was changed | ||||
1816 | * @since 5.18 | ||||
1817 | */ | ||||
1818 | void sessionStateChanged(); | ||||
1819 | | ||||
1802 | protected: | 1820 | protected: | ||
1803 | QVector< EffectPair > loaded_effects; | 1821 | QVector< EffectPair > loaded_effects; | ||
1804 | //QHash< QString, EffectFactory* > effect_factories; | 1822 | //QHash< QString, EffectFactory* > effect_factories; | ||
1805 | CompositingType compositing_type; | 1823 | CompositingType compositing_type; | ||
1806 | }; | 1824 | }; | ||
1807 | 1825 | | |||
1808 | 1826 | | |||
1809 | /** | 1827 | /** | ||
▲ Show 20 Lines • Show All 2164 Lines • Show Last 20 Lines |
The comment fits 100 characters limit, no need to break it.