Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 2919 Lines • ▼ Show 20 Line(s) | |||||
2920 | private: | 2920 | private: | ||
2921 | WindowPaintDataPrivate * const d; | 2921 | WindowPaintDataPrivate * const d; | ||
2922 | }; | 2922 | }; | ||
2923 | 2923 | | |||
2924 | class KWINEFFECTS_EXPORT ScreenPaintData : public PaintData | 2924 | class KWINEFFECTS_EXPORT ScreenPaintData : public PaintData | ||
2925 | { | 2925 | { | ||
2926 | public: | 2926 | public: | ||
2927 | ScreenPaintData(); | 2927 | ScreenPaintData(); | ||
2928 | ScreenPaintData(const QMatrix4x4 &projectionMatrix, const QRect &outputGeometry = QRect()); | 2928 | ScreenPaintData(const QMatrix4x4 &projectionMatrix, int screenRotation, const QRect &outputGeometry = QRect()); | ||
2929 | ScreenPaintData(const ScreenPaintData &other); | 2929 | ScreenPaintData(const ScreenPaintData &other); | ||
2930 | ~ScreenPaintData() override; | 2930 | ~ScreenPaintData() override; | ||
2931 | /** | 2931 | /** | ||
2932 | * Scales the screen by @p scale factor. | 2932 | * Scales the screen by @p scale factor. | ||
2933 | * Multiplies all three components by the given factor. | 2933 | * Multiplies all three components by the given factor. | ||
2934 | * @since 4.10 | 2934 | * @since 4.10 | ||
2935 | */ | 2935 | */ | ||
2936 | ScreenPaintData& operator*=(qreal scale); | 2936 | ScreenPaintData& operator*=(qreal scale); | ||
Show All 36 Lines | |||||
2973 | 2973 | | |||
2974 | /** | 2974 | /** | ||
2975 | * The projection matrix used by the scene for the current rendering pass. | 2975 | * The projection matrix used by the scene for the current rendering pass. | ||
2976 | * On non-OpenGL compositors it's set to Identity matrix. | 2976 | * On non-OpenGL compositors it's set to Identity matrix. | ||
2977 | * @since 5.6 | 2977 | * @since 5.6 | ||
2978 | */ | 2978 | */ | ||
2979 | QMatrix4x4 projectionMatrix() const; | 2979 | QMatrix4x4 projectionMatrix() const; | ||
2980 | 2980 | | |||
2981 | int screenRotation() const; | ||||
2982 | | ||||
2981 | /** | 2983 | /** | ||
2982 | * The geometry of the currently rendered output. | 2984 | * The geometry of the currently rendered output. | ||
2983 | * Only set for per-output rendering (e.g. Wayland). | 2985 | * Only set for per-output rendering (e.g. Wayland). | ||
2984 | * | 2986 | * | ||
2985 | * This geometry can be used as a hint about the native window the OpenGL context | 2987 | * This geometry can be used as a hint about the native window the OpenGL context | ||
2986 | * is bound. OpenGL calls need to be translated to this geometry. | 2988 | * is bound. OpenGL calls need to be translated to this geometry. | ||
2987 | * @since 5.9 | 2989 | * @since 5.9 | ||
2988 | */ | 2990 | */ | ||
▲ Show 20 Lines • Show All 965 Lines • Show Last 20 Lines |