Changeset View
Changeset View
Standalone View
Standalone View
src/client/plasmawindowmanagement.h
Show First 20 Lines • Show All 433 Lines • ▼ Show 20 Line(s) | 232 | public: | |||
---|---|---|---|---|---|
434 | 434 | | |||
435 | /** | 435 | /** | ||
436 | * An internal window identifier. | 436 | * An internal window identifier. | ||
437 | * This is not a global window identifier. | 437 | * This is not a global window identifier. | ||
438 | * This identifier does not correspond to QWindow::winId in any way. | 438 | * This identifier does not correspond to QWindow::winId in any way. | ||
439 | **/ | 439 | **/ | ||
440 | quint32 internalId() const; | 440 | quint32 internalId() const; | ||
441 | 441 | | |||
442 | /** | ||||
443 | * The parent window of this PlasmaWindow. | ||||
444 | * | ||||
445 | * If there is a parent window, this window is a transient window for the | ||||
446 | * parent window. If this method returns a null PlasmaWindow it means this | ||||
447 | * window is a top level window and is not a transient window. | ||||
448 | * | ||||
449 | * @see parentWindowChanged | ||||
450 | * @since 5.24 | ||||
451 | **/ | ||||
452 | QPointer<PlasmaWindow> parentWindow() const; | ||||
453 | | ||||
442 | Q_SIGNALS: | 454 | Q_SIGNALS: | ||
443 | /** | 455 | /** | ||
444 | * The window title changed. | 456 | * The window title changed. | ||
445 | * @see title | 457 | * @see title | ||
446 | **/ | 458 | **/ | ||
447 | void titleChanged(); | 459 | void titleChanged(); | ||
448 | /** | 460 | /** | ||
449 | * The application id changed. | 461 | * The application id changed. | ||
▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | |||||
556 | */ | 568 | */ | ||
557 | void virtualDesktopChangeableChanged(); | 569 | void virtualDesktopChangeableChanged(); | ||
558 | /** | 570 | /** | ||
559 | * The window got unmapped and is no longer available to the Wayland server. | 571 | * The window got unmapped and is no longer available to the Wayland server. | ||
560 | * This instance will be automatically deleted and one should connect to this | 572 | * This instance will be automatically deleted and one should connect to this | ||
561 | * signal to perform cleanup. | 573 | * signal to perform cleanup. | ||
562 | **/ | 574 | **/ | ||
563 | void unmapped(); | 575 | void unmapped(); | ||
576 | /** | ||||
577 | * This signal is emitted whenever the parent window changes. | ||||
578 | * @see parentWindow | ||||
579 | * @since 5.24 | ||||
580 | **/ | ||||
581 | void parentWindowChanged(); | ||||
564 | 582 | | |||
565 | private: | 583 | private: | ||
566 | friend class PlasmaWindowManagement; | 584 | friend class PlasmaWindowManagement; | ||
567 | explicit PlasmaWindow(PlasmaWindowManagement *parent, org_kde_plasma_window *dataOffer, quint32 internalId); | 585 | explicit PlasmaWindow(PlasmaWindowManagement *parent, org_kde_plasma_window *dataOffer, quint32 internalId); | ||
568 | class Private; | 586 | class Private; | ||
569 | QScopedPointer<Private> d; | 587 | QScopedPointer<Private> d; | ||
570 | }; | 588 | }; | ||
571 | 589 | | |||
572 | } | 590 | } | ||
573 | } | 591 | } | ||
574 | 592 | | |||
575 | Q_DECLARE_METATYPE(KWayland::Client::PlasmaWindow*) | 593 | Q_DECLARE_METATYPE(KWayland::Client::PlasmaWindow*) | ||
576 | 594 | | |||
577 | #endif | 595 | #endif |