Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 2902 Lines • ▼ Show 20 Line(s) | |||||
2903 | private: | 2903 | private: | ||
2904 | WindowPaintDataPrivate * const d; | 2904 | WindowPaintDataPrivate * const d; | ||
2905 | }; | 2905 | }; | ||
2906 | 2906 | | |||
2907 | class KWINEFFECTS_EXPORT ScreenPaintData : public PaintData | 2907 | class KWINEFFECTS_EXPORT ScreenPaintData : public PaintData | ||
2908 | { | 2908 | { | ||
2909 | public: | 2909 | public: | ||
2910 | ScreenPaintData(); | 2910 | ScreenPaintData(); | ||
2911 | ScreenPaintData(const QMatrix4x4 &projectionMatrix, const QRect &outputGeometry = QRect()); | 2911 | ScreenPaintData(const QMatrix4x4 &projectionMatrix, int screenRotation, const QRect &outputGeometry = QRect()); | ||
2912 | ScreenPaintData(const ScreenPaintData &other); | 2912 | ScreenPaintData(const ScreenPaintData &other); | ||
2913 | virtual ~ScreenPaintData(); | 2913 | virtual ~ScreenPaintData(); | ||
2914 | /** | 2914 | /** | ||
2915 | * Scales the screen by @p scale factor. | 2915 | * Scales the screen by @p scale factor. | ||
2916 | * Multiplies all three components by the given factor. | 2916 | * Multiplies all three components by the given factor. | ||
2917 | * @since 4.10 | 2917 | * @since 4.10 | ||
2918 | **/ | 2918 | **/ | ||
2919 | ScreenPaintData& operator*=(qreal scale); | 2919 | ScreenPaintData& operator*=(qreal scale); | ||
Show All 36 Lines | |||||
2956 | 2956 | | |||
2957 | /** | 2957 | /** | ||
2958 | * The projection matrix used by the scene for the current rendering pass. | 2958 | * The projection matrix used by the scene for the current rendering pass. | ||
2959 | * On non-OpenGL compositors it's set to Identity matrix. | 2959 | * On non-OpenGL compositors it's set to Identity matrix. | ||
2960 | * @since 5.6 | 2960 | * @since 5.6 | ||
2961 | **/ | 2961 | **/ | ||
2962 | QMatrix4x4 projectionMatrix() const; | 2962 | QMatrix4x4 projectionMatrix() const; | ||
2963 | 2963 | | |||
2964 | int screenRotation() const; | ||||
2965 | | ||||
2964 | /** | 2966 | /** | ||
2965 | * The geometry of the currently rendered output. | 2967 | * The geometry of the currently rendered output. | ||
2966 | * Only set for per-output rendering (e.g. Wayland). | 2968 | * Only set for per-output rendering (e.g. Wayland). | ||
2967 | * | 2969 | * | ||
2968 | * This geometry can be used as a hint about the native window the OpenGL context | 2970 | * This geometry can be used as a hint about the native window the OpenGL context | ||
2969 | * is bound. OpenGL calls need to be translated to this geometry. | 2971 | * is bound. OpenGL calls need to be translated to this geometry. | ||
2970 | * @since 5.9 | 2972 | * @since 5.9 | ||
2971 | **/ | 2973 | **/ | ||
▲ Show 20 Lines • Show All 965 Lines • Show Last 20 Lines |