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