Changeset View
Changeset View
Standalone View
Standalone View
src/server/plasmashell_interface.h
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Line(s) | 82 | public: | |||
---|---|---|---|---|---|
171 | * | 171 | * | ||
172 | * By default a Panel does not get focus, but the PlasmaShellSurfaceInterface can | 172 | * By default a Panel does not get focus, but the PlasmaShellSurfaceInterface can | ||
173 | * request that it wants to have focus. The compositor can use this information to | 173 | * request that it wants to have focus. The compositor can use this information to | ||
174 | * pass focus to the panel. | 174 | * pass focus to the panel. | ||
175 | * @since 5.28 | 175 | * @since 5.28 | ||
176 | **/ | 176 | **/ | ||
177 | bool panelTakesFocus() const; | 177 | bool panelTakesFocus() const; | ||
178 | 178 | | |||
179 | enum class PopupBehavior { | ||||
180 | AlwaysOnTop = 1, ///< The popup should stay above other windows | ||||
181 | }; | ||||
182 | Q_DECLARE_FLAGS(PopupBehaviorFlags, PopupBehavior) | ||||
183 | | ||||
184 | /** | ||||
185 | * @returns The PopupBehavior for a PlasmaShellSurfaceInterface | ||||
186 | * @since 5.FIXME | ||||
187 | **/ | ||||
188 | PopupBehaviorFlags popupBehavior() const; | ||||
189 | | ||||
179 | /** | 190 | /** | ||
180 | * @returns The PlasmaShellSurfaceInterface for the @p native resource. | 191 | * @returns The PlasmaShellSurfaceInterface for the @p native resource. | ||
181 | * @since 5.5 | 192 | * @since 5.5 | ||
182 | **/ | 193 | **/ | ||
183 | static PlasmaShellSurfaceInterface *get(wl_resource *native); | 194 | static PlasmaShellSurfaceInterface *get(wl_resource *native); | ||
184 | 195 | | |||
185 | Q_SIGNALS: | 196 | Q_SIGNALS: | ||
186 | /** | 197 | /** | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
228 | * | 239 | * | ||
229 | * @see hideAutoHidingPanel | 240 | * @see hideAutoHidingPanel | ||
230 | * @see showAutoHidingPanel | 241 | * @see showAutoHidingPanel | ||
231 | * @see panelAutoHideHideRequested | 242 | * @see panelAutoHideHideRequested | ||
232 | * @since 5.28 | 243 | * @since 5.28 | ||
233 | **/ | 244 | **/ | ||
234 | void panelAutoHideShowRequested(); | 245 | void panelAutoHideShowRequested(); | ||
235 | 246 | | |||
247 | /** | ||||
248 | * A change of the popup behavior has been requested. | ||||
249 | * @since 5.FIXME | ||||
250 | **/ | ||||
251 | void popupBehaviorChanged(); | ||||
252 | | ||||
236 | private: | 253 | private: | ||
237 | friend class PlasmaShellInterface; | 254 | friend class PlasmaShellInterface; | ||
238 | explicit PlasmaShellSurfaceInterface(PlasmaShellInterface *shell, SurfaceInterface *parent, wl_resource *parentResource); | 255 | explicit PlasmaShellSurfaceInterface(PlasmaShellInterface *shell, SurfaceInterface *parent, wl_resource *parentResource); | ||
239 | class Private; | 256 | class Private; | ||
240 | Private *d_func() const; | 257 | Private *d_func() const; | ||
241 | }; | 258 | }; | ||
242 | 259 | | |||
243 | } | 260 | } | ||
244 | } | 261 | } | ||
245 | 262 | | |||
246 | Q_DECLARE_METATYPE(KWayland::Server::PlasmaShellSurfaceInterface::Role) | 263 | Q_DECLARE_METATYPE(KWayland::Server::PlasmaShellSurfaceInterface::Role) | ||
247 | Q_DECLARE_METATYPE(KWayland::Server::PlasmaShellSurfaceInterface::PanelBehavior) | 264 | Q_DECLARE_METATYPE(KWayland::Server::PlasmaShellSurfaceInterface::PanelBehavior) | ||
248 | 265 | Q_DECLARE_OPERATORS_FOR_FLAGS(KWayland::Server::PlasmaShellSurfaceInterface::PopupBehaviorFlags) | |||
249 | #endif | 266 | #endif |