Changeset View
Changeset View
Standalone View
Standalone View
src/client/plasmashell.h
Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Line(s) | 190 | public: | |||
---|---|---|---|---|---|
328 | * By default a Panel does not take focus. With this request the compositor | 328 | * By default a Panel does not take focus. With this request the compositor | ||
329 | * can be instructed to also pass focus to a panel | 329 | * can be instructed to also pass focus to a panel | ||
330 | * | 330 | * | ||
331 | * @param takesFocus Set to @c true if the Panel should gain focus. | 331 | * @param takesFocus Set to @c true if the Panel should gain focus. | ||
332 | * @since 5.28 | 332 | * @since 5.28 | ||
333 | **/ | 333 | **/ | ||
334 | void setPanelTakesFocus(bool takesFocus); | 334 | void setPanelTakesFocus(bool takesFocus); | ||
335 | 335 | | |||
336 | /** | ||||
337 | * Describes how a PlasmaShellSurface should behave. | ||||
338 | * Applies to all roles except Panel | ||||
339 | * Choosing to honor this is up to the compositor | ||||
340 | * @since 5.FIXME | ||||
341 | **/ | ||||
342 | enum class PopupBehavior { | ||||
343 | AlwaysOnTop = 1, | ||||
344 | }; | ||||
345 | Q_DECLARE_FLAGS(PopupBehaviorFlags, PopupBehavior) | ||||
346 | | ||||
347 | /** | ||||
348 | * Sets the PopupBehavior for a PlasmaShellSurface | ||||
349 | * @since 5.FIXME | ||||
350 | **/ | ||||
351 | void setPopupBehavior(PopupBehaviorFlags behavior); | ||||
352 | | ||||
336 | Q_SIGNALS: | 353 | Q_SIGNALS: | ||
337 | /** | 354 | /** | ||
338 | * Emitted when the compositor hided an auto hiding panel. | 355 | * Emitted when the compositor hided an auto hiding panel. | ||
339 | * @see requestHideAutoHidingPanel | 356 | * @see requestHideAutoHidingPanel | ||
340 | * @see autoHidePanelShown | 357 | * @see autoHidePanelShown | ||
341 | * @see requestShowAutoHidingPanel | 358 | * @see requestShowAutoHidingPanel | ||
342 | * @since 5.28 | 359 | * @since 5.28 | ||
343 | **/ | 360 | **/ | ||
Show All 14 Lines | 372 | private: | |||
358 | QScopedPointer<Private> d; | 375 | QScopedPointer<Private> d; | ||
359 | }; | 376 | }; | ||
360 | 377 | | |||
361 | } | 378 | } | ||
362 | } | 379 | } | ||
363 | 380 | | |||
364 | Q_DECLARE_METATYPE(KWayland::Client::PlasmaShellSurface::Role) | 381 | Q_DECLARE_METATYPE(KWayland::Client::PlasmaShellSurface::Role) | ||
365 | Q_DECLARE_METATYPE(KWayland::Client::PlasmaShellSurface::PanelBehavior) | 382 | Q_DECLARE_METATYPE(KWayland::Client::PlasmaShellSurface::PanelBehavior) | ||
366 | 383 | Q_DECLARE_OPERATORS_FOR_FLAGS(KWayland::Client::PlasmaShellSurface::PopupBehaviorFlags) | |||
367 | #endif | 384 | #endif |