Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 819 Lines • ▼ Show 20 Line(s) | 790 | { | |||
---|---|---|---|---|---|
820 | /** | 820 | /** | ||
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 | friend class Effect; | 829 | friend class Effect; | ||
829 | public: | 830 | public: | ||
830 | explicit EffectsHandler(CompositingType type); | 831 | explicit EffectsHandler(CompositingType type); | ||
831 | virtual ~EffectsHandler(); | 832 | virtual ~EffectsHandler(); | ||
832 | // for use by effects | 833 | // for use by effects | ||
833 | virtual void prePaintScreen(ScreenPrePaintData& data, int time) = 0; | 834 | virtual void prePaintScreen(ScreenPrePaintData& data, int time) = 0; | ||
834 | virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data) = 0; | 835 | virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data) = 0; | ||
835 | virtual void postPaintScreen() = 0; | 836 | virtual void postPaintScreen() = 0; | ||
▲ Show 20 Lines • Show All 481 Lines • ▼ Show 20 Line(s) | |||||
1317 | virtual KSharedConfigPtr config() const = 0; | 1318 | virtual KSharedConfigPtr config() const = 0; | ||
1318 | 1319 | | |||
1319 | /** | 1320 | /** | ||
1320 | * @returns The global input configuration (kcminputrc) | 1321 | * @returns The global input configuration (kcminputrc) | ||
1321 | * @since 5.10 | 1322 | * @since 5.10 | ||
1322 | **/ | 1323 | **/ | ||
1323 | virtual KSharedConfigPtr inputConfig() const = 0; | 1324 | virtual KSharedConfigPtr inputConfig() const = 0; | ||
1324 | 1325 | | |||
1326 | /** | ||||
1327 | * Returns if activeFullScreenEffect is set | ||||
1328 | */ | ||||
1329 | virtual bool hasActiveFullScreenEffect() const = 0; | ||||
1330 | | ||||
1325 | Q_SIGNALS: | 1331 | Q_SIGNALS: | ||
1326 | /** | 1332 | /** | ||
1327 | * Signal emitted when the current desktop changed. | 1333 | * Signal emitted when the current desktop changed. | ||
1328 | * @param oldDesktop The previously current desktop | 1334 | * @param oldDesktop The previously current desktop | ||
1329 | * @param newDesktop The new current desktop | 1335 | * @param newDesktop The new current desktop | ||
1330 | * @param with The window which is taken over to the new desktop, can be NULL | 1336 | * @param with The window which is taken over to the new desktop, can be NULL | ||
1331 | * @since 4.9 | 1337 | * @since 4.9 | ||
1332 | */ | 1338 | */ | ||
▲ Show 20 Lines • Show All 375 Lines • ▼ Show 20 Line(s) | |||||
1708 | * This signal is emitted when active fullscreen effect changed. | 1714 | * This signal is emitted when active fullscreen effect changed. | ||
1709 | * | 1715 | * | ||
1710 | * @see activeFullScreenEffect | 1716 | * @see activeFullScreenEffect | ||
1711 | * @see setActiveFullScreenEffect | 1717 | * @see setActiveFullScreenEffect | ||
1712 | * @since 5.14 | 1718 | * @since 5.14 | ||
1713 | **/ | 1719 | **/ | ||
1714 | void activeFullScreenEffectChanged(); | 1720 | void activeFullScreenEffectChanged(); | ||
1715 | 1721 | | |||
1722 | /** | ||||
1723 | * This signal is emitted when active fullscreen effect changed to being | ||||
1724 | * set or unset | ||||
1725 | * | ||||
1726 | * @see activeFullScreenEffect | ||||
1727 | * @see setActiveFullScreenEffect | ||||
1728 | * @since 5.15 | ||||
1729 | **/ | ||||
1730 | void hasActiveFullScreenEffectChanged(); | ||||
1731 | | ||||
1716 | protected: | 1732 | protected: | ||
1717 | QVector< EffectPair > loaded_effects; | 1733 | QVector< EffectPair > loaded_effects; | ||
1718 | //QHash< QString, EffectFactory* > effect_factories; | 1734 | //QHash< QString, EffectFactory* > effect_factories; | ||
1719 | CompositingType compositing_type; | 1735 | CompositingType compositing_type; | ||
1720 | }; | 1736 | }; | ||
1721 | 1737 | | |||
1722 | 1738 | | |||
1723 | /** | 1739 | /** | ||
▲ Show 20 Lines • Show All 1999 Lines • Show Last 20 Lines |