mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-17 11:37:10 +03:00
docs: 📝 add JSDoc to Toplevel KWin interface
This commit is contained in:
parent
940140dd17
commit
78957f4cad
65
src/extern/kwin.d.ts
vendored
65
src/extern/kwin.d.ts
vendored
@ -63,25 +63,88 @@ declare namespace KWin {
|
|||||||
configChanged: QSignal;
|
configChanged: QSignal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* See KWin docs for the explanation what Toplevel is. Basically it is a window. Represents KWin::Toplevel
|
||||||
|
*/
|
||||||
interface Toplevel {
|
interface Toplevel {
|
||||||
/* read-only */
|
/* read-only */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On which activities the toplevel is present
|
||||||
|
*/
|
||||||
readonly activities: string[] /* Not exactly `Array` */;
|
readonly activities: string[] /* Not exactly `Array` */;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the window is a dialog window.
|
||||||
|
*/
|
||||||
readonly dialog: boolean;
|
readonly dialog: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO: ???
|
||||||
|
*/
|
||||||
readonly resourceClass: QByteArray;
|
readonly resourceClass: QByteArray;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO: ???
|
||||||
|
*/
|
||||||
readonly resourceName: QByteArray;
|
readonly resourceName: QByteArray;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On which screen toplevel is
|
||||||
|
*/
|
||||||
readonly screen: number;
|
readonly screen: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the window is a splashscreen.
|
||||||
|
*/
|
||||||
readonly splash: boolean;
|
readonly splash: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the window is a utility window, such as a tool window.
|
||||||
|
*/
|
||||||
readonly utility: boolean;
|
readonly utility: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Window id in KWin
|
||||||
|
*/
|
||||||
readonly windowId: number;
|
readonly windowId: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Window role property
|
||||||
|
*/
|
||||||
readonly windowRole: QByteArray;
|
readonly windowRole: QByteArray;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Client position
|
||||||
|
*/
|
||||||
readonly clientPos: QPoint;
|
readonly clientPos: QPoint;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Client size
|
||||||
|
*/
|
||||||
readonly clientSize: QSize;
|
readonly clientSize: QSize;
|
||||||
|
|
||||||
/* signal */
|
/**
|
||||||
|
* TODO: I could not find anything about signal in the KWin source.
|
||||||
|
* Probably it does not exist here. It exists in KWin::AbstractClient though.
|
||||||
|
*/
|
||||||
activitiesChanged: QSignal;
|
activitiesChanged: QSignal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This signal is emitted when the Toplevel's frame geometry changes.
|
||||||
|
* @deprecated since 5.19, use frameGeometryChanged instead
|
||||||
|
*/
|
||||||
geometryChanged: QSignal;
|
geometryChanged: QSignal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Emitted whenever the Toplevel's screen changes. This can happen either in consequence to
|
||||||
|
* a screen being removed/added or if the Toplevel's geometry changes.
|
||||||
|
*/
|
||||||
screenChanged: QSignal;
|
screenChanged: QSignal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Emitted when the toplevel is shown?
|
||||||
|
*/
|
||||||
windowShown: QSignal;
|
windowShown: QSignal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user