Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 2985 Lines • ▼ Show 20 Line(s) | |||||
2986 | private: | 2986 | private: | ||
2987 | WindowPaintDataPrivate * const d; | 2987 | WindowPaintDataPrivate * const d; | ||
2988 | }; | 2988 | }; | ||
2989 | 2989 | | |||
2990 | class KWINEFFECTS_EXPORT ScreenPaintData : public PaintData | 2990 | class KWINEFFECTS_EXPORT ScreenPaintData : public PaintData | ||
2991 | { | 2991 | { | ||
2992 | public: | 2992 | public: | ||
2993 | ScreenPaintData(); | 2993 | ScreenPaintData(); | ||
2994 | ScreenPaintData(const QMatrix4x4 &projectionMatrix, const QRect &outputGeometry = QRect()); | 2994 | ScreenPaintData(const QMatrix4x4 &projectionMatrix, const QRect &outputGeometry = QRect(), const qreal screenScale = 1.0); | ||
2995 | ScreenPaintData(const ScreenPaintData &other); | 2995 | ScreenPaintData(const ScreenPaintData &other); | ||
2996 | ~ScreenPaintData() override; | 2996 | ~ScreenPaintData() override; | ||
2997 | /** | 2997 | /** | ||
2998 | * Scales the screen by @p scale factor. | 2998 | * Scales the screen by @p scale factor. | ||
2999 | * Multiplies all three components by the given factor. | 2999 | * Multiplies all three components by the given factor. | ||
3000 | * @since 4.10 | 3000 | * @since 4.10 | ||
3001 | */ | 3001 | */ | ||
3002 | ScreenPaintData& operator*=(qreal scale); | 3002 | ScreenPaintData& operator*=(qreal scale); | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
3048 | * The geometry of the currently rendered output. | 3048 | * The geometry of the currently rendered output. | ||
3049 | * Only set for per-output rendering (e.g. Wayland). | 3049 | * Only set for per-output rendering (e.g. Wayland). | ||
3050 | * | 3050 | * | ||
3051 | * This geometry can be used as a hint about the native window the OpenGL context | 3051 | * This geometry can be used as a hint about the native window the OpenGL context | ||
3052 | * is bound. OpenGL calls need to be translated to this geometry. | 3052 | * is bound. OpenGL calls need to be translated to this geometry. | ||
3053 | * @since 5.9 | 3053 | * @since 5.9 | ||
3054 | */ | 3054 | */ | ||
3055 | QRect outputGeometry() const; | 3055 | QRect outputGeometry() const; | ||
3056 | | ||||
3057 | /** | ||||
3058 | * The scale factor for the output | ||||
3059 | * | ||||
3060 | * @since 5.19 | ||||
3061 | */ | ||||
3062 | qreal screenScale() const; | ||||
3056 | private: | 3063 | private: | ||
3057 | class Private; | 3064 | class Private; | ||
3058 | QScopedPointer<Private> d; | 3065 | QScopedPointer<Private> d; | ||
3059 | }; | 3066 | }; | ||
3060 | 3067 | | |||
3061 | class KWINEFFECTS_EXPORT ScreenPrePaintData | 3068 | class KWINEFFECTS_EXPORT ScreenPrePaintData | ||
3062 | { | 3069 | { | ||
3063 | public: | 3070 | public: | ||
▲ Show 20 Lines • Show All 956 Lines • Show Last 20 Lines |