Changeset View
Changeset View
Standalone View
Standalone View
composite.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
88 | /** | 88 | /** | ||
89 | * Whether the Compositor is active. That is a Scene is present and the Compositor is | 89 | * Whether the Compositor is active. That is a Scene is present and the Compositor is | ||
90 | * not shutting down itself. | 90 | * not shutting down itself. | ||
91 | */ | 91 | */ | ||
92 | bool isActive(); | 92 | bool isActive(); | ||
93 | virtual int refreshRate() const = 0; | 93 | virtual int refreshRate() const = 0; | ||
94 | 94 | | |||
95 | bool hasScene() const { | 95 | bool hasScene() const { | ||
96 | return m_scene != NULL; | 96 | return m_scene != nullptr; | ||
97 | } | 97 | } | ||
98 | Scene *scene() const { | 98 | Scene *scene() const { | ||
99 | return m_scene; | 99 | return m_scene; | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | /** | 102 | /** | ||
103 | * Checks whether @p w is the Scene's overlay window. | 103 | * Checks whether @p w is the Scene's overlay window. | ||
104 | */ | 104 | */ | ||
105 | virtual bool checkForOverlayWindow(WId w) const = 0; | 105 | virtual bool checkForOverlayWindow(WId w) const = 0; | ||
106 | 106 | | |||
107 | /** | 107 | /** | ||
108 | * @brief Static check to test whether the Compositor is available and active. | 108 | * @brief Static check to test whether the Compositor is available and active. | ||
109 | * | 109 | * | ||
110 | * @return bool @c true if there is a Compositor and it is active, @c false otherwise | 110 | * @return bool @c true if there is a Compositor and it is active, @c false otherwise | ||
111 | */ | 111 | */ | ||
112 | static bool compositing() { | 112 | static bool compositing() { | ||
113 | return s_compositor != NULL && s_compositor->isActive(); | 113 | return s_compositor != nullptr && s_compositor->isActive(); | ||
114 | } | 114 | } | ||
115 | 115 | | |||
116 | // for delayed supportproperty management of effects | 116 | // for delayed supportproperty management of effects | ||
117 | void keepSupportProperty(xcb_atom_t atom); | 117 | void keepSupportProperty(xcb_atom_t atom); | ||
118 | void removeSupportProperty(xcb_atom_t atom); | 118 | void removeSupportProperty(xcb_atom_t atom); | ||
119 | 119 | | |||
120 | Q_SIGNALS: | 120 | Q_SIGNALS: | ||
121 | void compositingToggled(bool active); | 121 | void compositingToggled(bool active); | ||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |