forked from quickshell/quickshell
all: use type/prop shorthand in docs
This commit is contained in:
parent
c4cc662bcc
commit
e9cacbd92d
17 changed files with 38 additions and 63 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
class DesktopAction;
|
class DesktopAction;
|
||||||
|
|
||||||
/// A desktop entry. See [DesktopEntries](../desktopentries) for details.
|
/// A desktop entry. See @@DesktopEntries for details.
|
||||||
class DesktopEntry: public QObject {
|
class DesktopEntry: public QObject {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
Q_PROPERTY(QString id MEMBER mId CONSTANT);
|
Q_PROPERTY(QString id MEMBER mId CONSTANT);
|
||||||
|
@ -75,7 +75,7 @@ private:
|
||||||
friend class DesktopAction;
|
friend class DesktopAction;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// An action of a [DesktopEntry](../desktopentry).
|
/// An action of a @@DesktopEntry$.
|
||||||
class DesktopAction: public QObject {
|
class DesktopAction: public QObject {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
Q_PROPERTY(QString id MEMBER mId CONSTANT);
|
Q_PROPERTY(QString id MEMBER mId CONSTANT);
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
/// > [!WARNING] Components that internally load other components must explicitly
|
/// > [!WARNING] Components that internally load other components must explicitly
|
||||||
/// > support asynchronous loading to avoid blocking.
|
/// > support asynchronous loading to avoid blocking.
|
||||||
/// >
|
/// >
|
||||||
/// > Notably, [Variants](../variants) does not corrently support asynchronous
|
/// > Notably, @@Variants does not corrently support asynchronous
|
||||||
/// > loading, meaning using it inside a LazyLoader will block similarly to not
|
/// > loading, meaning using it inside a LazyLoader will block similarly to not
|
||||||
/// > having a loader to start with.
|
/// > having a loader to start with.
|
||||||
///
|
///
|
||||||
|
|
|
@ -14,9 +14,7 @@
|
||||||
/// > [!ERROR] Removed in favor of QtQml.Models.Instantiator
|
/// > [!ERROR] Removed in favor of QtQml.Models.Instantiator
|
||||||
///
|
///
|
||||||
/// The ObjectRepeater creates instances of the provided delegate for every entry in the
|
/// The ObjectRepeater creates instances of the provided delegate for every entry in the
|
||||||
/// given model, similarly to a [Repeater] but for non visual types.
|
/// given model, similarly to a @@QtQuick.Repeater but for non visual types.
|
||||||
///
|
|
||||||
/// [Repeater]: https://doc.qt.io/qt-6/qml-qtquick-repeater.html
|
|
||||||
class ObjectRepeater: public ObjectModel<QObject> {
|
class ObjectRepeater: public ObjectModel<QObject> {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
/// The model providing data to the ObjectRepeater.
|
/// The model providing data to the ObjectRepeater.
|
||||||
|
@ -25,10 +23,9 @@ class ObjectRepeater: public ObjectModel<QObject> {
|
||||||
/// and [QAbstractListModel] derived models, though only one column will be repeated
|
/// and [QAbstractListModel] derived models, though only one column will be repeated
|
||||||
/// from the latter.
|
/// from the latter.
|
||||||
///
|
///
|
||||||
/// Note: [ObjectModel] is a [QAbstractListModel] with a single column.
|
/// Note: @@ObjectModel is a [QAbstractListModel] with a single column.
|
||||||
///
|
///
|
||||||
/// [QAbstractListModel]: https://doc.qt.io/qt-6/qabstractlistmodel.html
|
/// [QAbstractListModel]: https://doc.qt.io/qt-6/qabstractlistmodel.html
|
||||||
/// [ObjectModel]: ../objectmodel
|
|
||||||
Q_PROPERTY(QVariant model READ model WRITE setModel NOTIFY modelChanged);
|
Q_PROPERTY(QVariant model READ model WRITE setModel NOTIFY modelChanged);
|
||||||
/// The delegate component to repeat.
|
/// The delegate component to repeat.
|
||||||
///
|
///
|
||||||
|
@ -39,10 +36,9 @@ class ObjectRepeater: public ObjectModel<QObject> {
|
||||||
/// exposed containing the entry from the model. If the model is a [QAbstractListModel],
|
/// exposed containing the entry from the model. If the model is a [QAbstractListModel],
|
||||||
/// the roles from the model will be exposed.
|
/// the roles from the model will be exposed.
|
||||||
///
|
///
|
||||||
/// Note: [ObjectModel] has a single role named `modelData` for compatibility with normal lists.
|
/// Note: @@ObjectModel has a single role named `modelData` for compatibility with normal lists.
|
||||||
///
|
///
|
||||||
/// [QAbstractListModel]: https://doc.qt.io/qt-6/qabstractlistmodel.html
|
/// [QAbstractListModel]: https://doc.qt.io/qt-6/qabstractlistmodel.html
|
||||||
/// [ObjectModel]: ../objectmodel
|
|
||||||
Q_PROPERTY(QQmlComponent* delegate READ delegate WRITE setDelegate NOTIFY delegateChanged);
|
Q_PROPERTY(QQmlComponent* delegate READ delegate WRITE setDelegate NOTIFY delegateChanged);
|
||||||
Q_CLASSINFO("DefaultProperty", "delegate");
|
Q_CLASSINFO("DefaultProperty", "delegate");
|
||||||
QML_ELEMENT;
|
QML_ELEMENT;
|
||||||
|
|
|
@ -12,17 +12,14 @@
|
||||||
|
|
||||||
// unfortunately QQuickScreenInfo is private.
|
// unfortunately QQuickScreenInfo is private.
|
||||||
|
|
||||||
/// Monitor object useful for setting the monitor for a [ShellWindow]
|
/// Monitor object useful for setting the monitor for a @@QsWindow
|
||||||
/// or querying information about the monitor.
|
/// or querying information about the monitor.
|
||||||
///
|
///
|
||||||
/// > [!WARNING] If the monitor is disconnected than any stored copies of its ShellMonitor will
|
/// > [!WARNING] If the monitor is disconnected than any stored copies of its ShellMonitor will
|
||||||
/// > be marked as dangling and all properties will return default values.
|
/// > be marked as dangling and all properties will return default values.
|
||||||
/// > Reconnecting the monitor will not reconnect it to the ShellMonitor object.
|
/// > Reconnecting the monitor will not reconnect it to the ShellMonitor object.
|
||||||
///
|
///
|
||||||
/// Due to some technical limitations, it was not possible to reuse the native qml [Screen] type.
|
/// Due to some technical limitations, it was not possible to reuse the native qml @@QtQuick.Screen type.
|
||||||
///
|
|
||||||
/// [ShellWindow]: ../shellwindow
|
|
||||||
/// [Screen]: https://doc.qt.io/qt-6/qml-qtquick-screen.html
|
|
||||||
class QuickshellScreenInfo: public QObject {
|
class QuickshellScreenInfo: public QObject {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
QML_NAMED_ELEMENT(ShellScreen);
|
QML_NAMED_ELEMENT(ShellScreen);
|
||||||
|
|
|
@ -60,7 +60,7 @@ class QsMenuEntry: public QObject {
|
||||||
/// The check state of the checkbox or radiobutton if applicable, as a
|
/// The check state of the checkbox or radiobutton if applicable, as a
|
||||||
/// [Qt.CheckState](https://doc.qt.io/qt-6/qt.html#CheckState-enum).
|
/// [Qt.CheckState](https://doc.qt.io/qt-6/qt.html#CheckState-enum).
|
||||||
Q_PROPERTY(Qt::CheckState checkState READ checkState NOTIFY checkStateChanged);
|
Q_PROPERTY(Qt::CheckState checkState READ checkState NOTIFY checkStateChanged);
|
||||||
/// If this menu item has children that can be accessed through a [QsMenuOpener](../qsmenuopener).
|
/// If this menu item has children that can be accessed through a @@QsMenuOpener$.
|
||||||
Q_PROPERTY(bool hasChildren READ hasChildren NOTIFY hasChildrenChanged);
|
Q_PROPERTY(bool hasChildren READ hasChildren NOTIFY hasChildrenChanged);
|
||||||
QML_ELEMENT;
|
QML_ELEMENT;
|
||||||
QML_UNCREATABLE("QsMenuEntry cannot be directly created");
|
QML_UNCREATABLE("QsMenuEntry cannot be directly created");
|
||||||
|
|
|
@ -11,10 +11,7 @@ class EngineGeneration;
|
||||||
|
|
||||||
///! The base class of all types that can be reloaded.
|
///! The base class of all types that can be reloaded.
|
||||||
/// Reloadables will attempt to take specific state from previous config revisions if possible.
|
/// Reloadables will attempt to take specific state from previous config revisions if possible.
|
||||||
/// Some examples are [ProxyWindowBase] and [PersistentProperties]
|
/// Some examples are @@ProxyWindowBase and @@PersistentProperties
|
||||||
///
|
|
||||||
/// [ProxyWindowBase]: ../proxywindowbase
|
|
||||||
/// [PersistentProperties]: ../persistentproperties
|
|
||||||
class Reloadable
|
class Reloadable
|
||||||
: public QObject
|
: public QObject
|
||||||
, public QQmlParserStatus {
|
, public QQmlParserStatus {
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Retainable;
|
||||||
/// typeinfo pages.
|
/// typeinfo pages.
|
||||||
///
|
///
|
||||||
/// > [!INFO] Working directly with Retainable is often overly complicated and
|
/// > [!INFO] Working directly with Retainable is often overly complicated and
|
||||||
/// > error prone. For this reason [RetainableLock](../retainablelock) should
|
/// > error prone. For this reason @@RetainableLock should
|
||||||
/// > usually be used instead.
|
/// > usually be used instead.
|
||||||
class RetainableHook: public QObject {
|
class RetainableHook: public QObject {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
|
@ -43,7 +43,7 @@ public:
|
||||||
/// > [!WARNING] It is easy to forget to unlock a locked object.
|
/// > [!WARNING] It is easy to forget to unlock a locked object.
|
||||||
/// > Doing so will create what is effectively a memory leak.
|
/// > Doing so will create what is effectively a memory leak.
|
||||||
/// >
|
/// >
|
||||||
/// > Using [RetainableLock](../retainablelock) is recommended as it will help
|
/// > Using @@RetainableLock is recommended as it will help
|
||||||
/// > avoid this scenario and make misuse more obvious.
|
/// > avoid this scenario and make misuse more obvious.
|
||||||
Q_INVOKABLE void lock();
|
Q_INVOKABLE void lock();
|
||||||
/// Remove a lock on the object. See `lock()` for more information.
|
/// Remove a lock on the object. See `lock()` for more information.
|
||||||
|
@ -105,8 +105,8 @@ private:
|
||||||
|
|
||||||
///! A helper for easily using Retainable.
|
///! A helper for easily using Retainable.
|
||||||
/// A RetainableLock provides extra safety and ease of use for locking
|
/// A RetainableLock provides extra safety and ease of use for locking
|
||||||
/// [Retainable](../retainable) objects. A retainable object can be locked
|
/// @@Retainable objects. A retainable object can be locked by multiple
|
||||||
/// by multiple locks at once, and each lock re-exposes relevant properties
|
/// locks at once, and each lock re-exposes relevant properties
|
||||||
/// of the retained objects.
|
/// of the retained objects.
|
||||||
///
|
///
|
||||||
/// #### Example
|
/// #### Example
|
||||||
|
|
|
@ -28,20 +28,17 @@ public:
|
||||||
///! Creates instances of a component based on a given model.
|
///! Creates instances of a component based on a given model.
|
||||||
/// Creates and destroys instances of the given component when the given property changes.
|
/// Creates and destroys instances of the given component when the given property changes.
|
||||||
///
|
///
|
||||||
/// `Variants` is similar to [Repeater] except it is for *non Item* objects, and acts as
|
/// `Variants` is similar to @@QtQuick.Repeater except it is for *non Item* objects, and acts as
|
||||||
/// a reload scope.
|
/// a reload scope.
|
||||||
///
|
///
|
||||||
/// Each non duplicate value passed to [model](#prop.model) will create a new instance of
|
/// Each non duplicate value passed to [model](#prop.model) will create a new instance of
|
||||||
/// [delegate](#prop.delegate) with its `modelData` property set to that value.
|
/// [delegate](#prop.delegate) with its `modelData` property set to that value.
|
||||||
///
|
///
|
||||||
/// See [Quickshell.screens] for an example of using `Variants` to create copies of a window per
|
/// See @@Quickshell.screens for an example of using `Variants` to create copies of a window per
|
||||||
/// screen.
|
/// screen.
|
||||||
///
|
///
|
||||||
/// > [!WARNING] BUG: Variants currently fails to reload children if the variant set is changed as
|
/// > [!WARNING] BUG: Variants currently fails to reload children if the variant set is changed as
|
||||||
/// > it is instantiated. (usually due to a mutation during variant creation)
|
/// > it is instantiated. (usually due to a mutation during variant creation)
|
||||||
///
|
|
||||||
/// [Repeater]: https://doc.qt.io/qt-6/qml-qtquick-repeater.html
|
|
||||||
/// [Quickshell.screens]: ../quickshell#prop.screens
|
|
||||||
class Variants: public Reloadable {
|
class Variants: public Reloadable {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
/// The component to create instances of.
|
/// The component to create instances of.
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
class DataStreamParser;
|
class DataStreamParser;
|
||||||
|
|
||||||
///! Data source that can be streamed into a parser.
|
///! Data source that can be streamed into a parser.
|
||||||
/// See also: [DataStreamParser](../datastreamparser)
|
/// See also: @@DataStreamParser
|
||||||
class DataStream: public QObject {
|
class DataStream: public QObject {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
/// The parser to stream data from this source into.
|
/// The parser to stream data from this source into.
|
||||||
|
@ -43,7 +43,7 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
///! Parser for streamed input data.
|
///! Parser for streamed input data.
|
||||||
/// See also: [DataStream](../datastream), [SplitParser](../splitparser)
|
/// See also: @@DataStream$, @@SplitParser
|
||||||
class DataStreamParser: public QObject {
|
class DataStreamParser: public QObject {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
QML_ELEMENT;
|
QML_ELEMENT;
|
||||||
|
|
|
@ -53,7 +53,7 @@ class NotificationAction;
|
||||||
|
|
||||||
///! A notification emitted by a NotificationServer.
|
///! A notification emitted by a NotificationServer.
|
||||||
/// A notification emitted by a NotificationServer.
|
/// A notification emitted by a NotificationServer.
|
||||||
/// > [!INFO] This type is [Retainable](/docs/types/quickshell/retainable). It
|
/// > [!INFO] This type is @@Quickshell.Retainable$. It
|
||||||
/// > can be retained after destruction if necessary.
|
/// > can be retained after destruction if necessary.
|
||||||
class Notification
|
class Notification
|
||||||
: public QObject
|
: public QObject
|
||||||
|
@ -68,8 +68,8 @@ class Notification
|
||||||
/// If this notification was carried over from the last generation
|
/// If this notification was carried over from the last generation
|
||||||
/// when quickshell reloaded.
|
/// when quickshell reloaded.
|
||||||
///
|
///
|
||||||
/// Notifications from the last generation will only be emitted if
|
/// Notifications from the last generation will only be emitted
|
||||||
/// [NotificationServer.keepOnReload](../notificationserver#prop.keepOnReload) is true.
|
/// if @@NotificationServer.keepOnReloadis true.
|
||||||
Q_PROPERTY(bool lastGeneration READ isLastGeneration CONSTANT);
|
Q_PROPERTY(bool lastGeneration READ isLastGeneration CONSTANT);
|
||||||
/// Time in seconds the notification should be valid for
|
/// Time in seconds the notification should be valid for
|
||||||
Q_PROPERTY(qreal expireTimeout READ expireTimeout NOTIFY expireTimeoutChanged);
|
Q_PROPERTY(qreal expireTimeout READ expireTimeout NOTIFY expireTimeoutChanged);
|
||||||
|
@ -86,7 +86,7 @@ class Notification
|
||||||
Q_PROPERTY(QVector<NotificationAction*> actions READ actions NOTIFY actionsChanged);
|
Q_PROPERTY(QVector<NotificationAction*> actions READ actions NOTIFY actionsChanged);
|
||||||
/// If actions associated with this notification have icons available.
|
/// If actions associated with this notification have icons available.
|
||||||
///
|
///
|
||||||
/// See [NotificationAction.identifier](../notificationaction#prop.identifier) for details.
|
/// See @@NotificationAction.identifier for details.
|
||||||
Q_PROPERTY(bool hasActionIcons READ hasActionIcons NOTIFY hasActionIconsChanged);
|
Q_PROPERTY(bool hasActionIcons READ hasActionIcons NOTIFY hasActionIconsChanged);
|
||||||
/// If true, the notification will not be destroyed after an action is invoked.
|
/// If true, the notification will not be destroyed after an action is invoked.
|
||||||
Q_PROPERTY(bool resident READ isResident NOTIFY isResidentChanged);
|
Q_PROPERTY(bool resident READ isResident NOTIFY isResidentChanged);
|
||||||
|
@ -194,10 +194,8 @@ class NotificationAction: public QObject {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
/// The identifier of the action.
|
/// The identifier of the action.
|
||||||
///
|
///
|
||||||
/// When [Notification.hasActionIcons] is true, this property will be an icon name.
|
/// When @@Notification.hasActionIcons is true, this property will be an icon name.
|
||||||
/// When it is false, this property is irrelevant.
|
/// When it is false, this property is irrelevant.
|
||||||
///
|
|
||||||
/// [Notification.hasActionIcons]: ../notification#prop.hasActionIcons
|
|
||||||
Q_PROPERTY(QString identifier READ identifier CONSTANT);
|
Q_PROPERTY(QString identifier READ identifier CONSTANT);
|
||||||
/// The localized text that should be displayed on a button.
|
/// The localized text that should be displayed on a button.
|
||||||
Q_PROPERTY(QString text READ text NOTIFY textChanged);
|
Q_PROPERTY(QString text READ text NOTIFY textChanged);
|
||||||
|
@ -211,9 +209,7 @@ public:
|
||||||
, mIdentifier(std::move(identifier))
|
, mIdentifier(std::move(identifier))
|
||||||
, mText(std::move(text)) {}
|
, mText(std::move(text)) {}
|
||||||
|
|
||||||
/// Invoke the action. If [Notification.resident] is false it will be dismissed.
|
/// Invoke the action. If @@Notification.resident is false it will be dismissed.
|
||||||
///
|
|
||||||
/// [Notification.resident]: ../notification#prop.resident
|
|
||||||
Q_INVOKABLE void invoke();
|
Q_INVOKABLE void invoke();
|
||||||
|
|
||||||
[[nodiscard]] QString identifier() const;
|
[[nodiscard]] QString identifier() const;
|
||||||
|
|
|
@ -27,7 +27,7 @@ class NotificationServerQml
|
||||||
// clang-format off
|
// clang-format off
|
||||||
/// If notifications should be re-emitted when quickshell reloads. Defaults to true.
|
/// If notifications should be re-emitted when quickshell reloads. Defaults to true.
|
||||||
///
|
///
|
||||||
/// The [lastGeneration](../notification#prop.lastGeneration) flag will be
|
/// The @@Notification.lastGeneration flag will be
|
||||||
/// set on notifications from the prior generation for further filtering/handling.
|
/// set on notifications from the prior generation for further filtering/handling.
|
||||||
Q_PROPERTY(bool keepOnReload READ keepOnReload WRITE setKeepOnReload NOTIFY keepOnReloadChanged);
|
Q_PROPERTY(bool keepOnReload READ keepOnReload WRITE setKeepOnReload NOTIFY keepOnReloadChanged);
|
||||||
/// If the notification server should advertise that it can persist notifications in the background
|
/// If the notification server should advertise that it can persist notifications in the background
|
||||||
|
@ -42,11 +42,9 @@ class NotificationServerQml
|
||||||
/// If notification body text should be advertised as supporting markup as described in [the specification]
|
/// If notification body text should be advertised as supporting markup as described in [the specification]
|
||||||
/// Defaults to false.
|
/// Defaults to false.
|
||||||
///
|
///
|
||||||
/// Note that returned notifications may still contain markup if this property is false, as it is only a hint.
|
/// Note that returned notifications may still contain markup if this property is false,
|
||||||
/// By default Text objects will try to render markup. To avoid this if any is sent, change [Text.textFormat] to `PlainText`.
|
/// as it is only a hint. By default Text objects will try to render markup. To avoid this
|
||||||
///
|
/// if any is sent, change @@QtQuick.Text.textFormat to `PlainText`.
|
||||||
/// [the specification]: https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html#markup
|
|
||||||
/// [Text.textFormat]: https://doc.qt.io/qt-6/qml-qtquick-text.html#textFormat-prop
|
|
||||||
Q_PROPERTY(bool bodyMarkupSupported READ bodyMarkupSupported WRITE setBodyMarkupSupported NOTIFY bodyMarkupSupportedChanged);
|
Q_PROPERTY(bool bodyMarkupSupported READ bodyMarkupSupported WRITE setBodyMarkupSupported NOTIFY bodyMarkupSupportedChanged);
|
||||||
/// If notification body text should be advertised as supporting hyperlinks as described in [the specification]
|
/// If notification body text should be advertised as supporting hyperlinks as described in [the specification]
|
||||||
/// Defaults to false.
|
/// Defaults to false.
|
||||||
|
|
|
@ -249,7 +249,7 @@ private:
|
||||||
|
|
||||||
///! A connection between pipewire nodes.
|
///! A connection between pipewire nodes.
|
||||||
/// Note that there is one link per *channel* of a connection between nodes.
|
/// Note that there is one link per *channel* of a connection between nodes.
|
||||||
/// You usually want [PwLinkGroup](../pwlinkgroup).
|
/// You usually want @@PwLinkGroup$.
|
||||||
class PwLinkIface: public PwObjectIface {
|
class PwLinkIface: public PwObjectIface {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
/// The pipewire object id of the link.
|
/// The pipewire object id of the link.
|
||||||
|
|
|
@ -61,7 +61,7 @@ class SystemTrayItem: public QObject {
|
||||||
Q_PROPERTY(QString tooltipTitle READ tooltipTitle NOTIFY tooltipTitleChanged);
|
Q_PROPERTY(QString tooltipTitle READ tooltipTitle NOTIFY tooltipTitleChanged);
|
||||||
Q_PROPERTY(QString tooltipDescription READ tooltipDescription NOTIFY tooltipDescriptionChanged);
|
Q_PROPERTY(QString tooltipDescription READ tooltipDescription NOTIFY tooltipDescriptionChanged);
|
||||||
/// If this tray item has an associated menu accessible via `display`
|
/// If this tray item has an associated menu accessible via `display`
|
||||||
/// or a [SystemTrayMenuWatcher](../systemtraymenuwatcher).
|
/// or a @@SystemTrayMenuWatcher$.
|
||||||
Q_PROPERTY(bool hasMenu READ hasMenu NOTIFY hasMenuChanged);
|
Q_PROPERTY(bool hasMenu READ hasMenu NOTIFY hasMenuChanged);
|
||||||
/// If this tray item only offers a menu and activation will do nothing.
|
/// If this tray item only offers a menu and activation will do nothing.
|
||||||
Q_PROPERTY(bool onlyMenu READ onlyMenu NOTIFY onlyMenuChanged);
|
Q_PROPERTY(bool onlyMenu READ onlyMenu NOTIFY onlyMenuChanged);
|
||||||
|
@ -133,7 +133,7 @@ private:
|
||||||
|
|
||||||
///! Accessor for SystemTrayItem menus.
|
///! Accessor for SystemTrayItem menus.
|
||||||
/// SystemTrayMenuWatcher provides access to the associated
|
/// SystemTrayMenuWatcher provides access to the associated
|
||||||
/// [DBusMenuItem](../../quickshell.dbusmenu/dbusmenuitem) for a tray item.
|
/// @@Quickshell.DBusMenu.DBusMenuItem for a tray item.
|
||||||
class SystemTrayMenuWatcher: public QObject {
|
class SystemTrayMenuWatcher: public QObject {
|
||||||
using DBusMenu = qs::dbus::dbusmenu::DBusMenu;
|
using DBusMenu = qs::dbus::dbusmenu::DBusMenu;
|
||||||
using DBusMenuItem = qs::dbus::dbusmenu::DBusMenuItem;
|
using DBusMenuItem = qs::dbus::dbusmenu::DBusMenuItem;
|
||||||
|
|
|
@ -25,7 +25,7 @@ class WlSessionLockSurface;
|
||||||
/// Wayland session lock implemented using the [ext_session_lock_v1] protocol.
|
/// Wayland session lock implemented using the [ext_session_lock_v1] protocol.
|
||||||
///
|
///
|
||||||
/// WlSessionLock will create an instance of its `surface` component for every screen when
|
/// WlSessionLock will create an instance of its `surface` component for every screen when
|
||||||
/// `locked` is set to true. The `surface` component must create a [WlSessionLockSurface]
|
/// `locked` is set to true. The `surface` component must create a @@WlSessionLockSurface
|
||||||
/// which will be displayed on each screen.
|
/// which will be displayed on each screen.
|
||||||
///
|
///
|
||||||
/// The below example will create a session lock that disappears when the button is clicked.
|
/// The below example will create a session lock that disappears when the button is clicked.
|
||||||
|
@ -53,7 +53,6 @@ class WlSessionLockSurface;
|
||||||
/// > but it will render it inoperable.
|
/// > but it will render it inoperable.
|
||||||
///
|
///
|
||||||
/// [ext_session_lock_v1]: https://wayland.app/protocols/ext-session-lock-v1
|
/// [ext_session_lock_v1]: https://wayland.app/protocols/ext-session-lock-v1
|
||||||
/// [WlSessionLockSurface]: ../wlsessionlocksurface
|
|
||||||
class WlSessionLock: public Reloadable {
|
class WlSessionLock: public Reloadable {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
@ -66,9 +65,7 @@ class WlSessionLock: public Reloadable {
|
||||||
///
|
///
|
||||||
/// This is set to true once the compositor has confirmed all screens are covered with locks.
|
/// This is set to true once the compositor has confirmed all screens are covered with locks.
|
||||||
Q_PROPERTY(bool secure READ isSecure NOTIFY secureStateChanged);
|
Q_PROPERTY(bool secure READ isSecure NOTIFY secureStateChanged);
|
||||||
/// The surface that will be created for each screen. Must create a [WlSessionLockSurface].
|
/// The surface that will be created for each screen. Must create a @@WlSessionLockSurface$.
|
||||||
///
|
|
||||||
/// [WlSessionLockSurface]: ../wlsessionlocksurface
|
|
||||||
Q_PROPERTY(QQmlComponent* surface READ surfaceComponent WRITE setSurfaceComponent NOTIFY surfaceComponentChanged);
|
Q_PROPERTY(QQmlComponent* surface READ surfaceComponent WRITE setSurfaceComponent NOTIFY surfaceComponentChanged);
|
||||||
// clang-format on
|
// clang-format on
|
||||||
QML_ELEMENT;
|
QML_ELEMENT;
|
||||||
|
@ -109,9 +106,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
///! Surface to display with a `WlSessionLock`.
|
///! Surface to display with a `WlSessionLock`.
|
||||||
/// Surface displayed by a [WlSessionLock] when it is locked.
|
/// Surface displayed by a @@WlSessionLock when it is locked.
|
||||||
///
|
|
||||||
/// [WlSessionLock]: ../wlsessionlock
|
|
||||||
class WlSessionLockSurface: public Reloadable {
|
class WlSessionLockSurface: public Reloadable {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|
|
@ -17,7 +17,7 @@ class ToplevelHandle;
|
||||||
|
|
||||||
///! Window from another application.
|
///! Window from another application.
|
||||||
/// A window/toplevel from another application, retrievable from
|
/// A window/toplevel from another application, retrievable from
|
||||||
/// the [ToplevelManager](../toplevelmanager).
|
/// the @@ToplevelManager$.
|
||||||
class Toplevel: public QObject {
|
class Toplevel: public QObject {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
Q_PROPERTY(QString appId READ appId NOTIFY appIdChanged);
|
Q_PROPERTY(QString appId READ appId NOTIFY appIdChanged);
|
||||||
|
@ -122,7 +122,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
///! Exposes a list of Toplevels.
|
///! Exposes a list of Toplevels.
|
||||||
/// Exposes a list of windows from other applications as [Toplevel](../toplevel)s via the
|
/// Exposes a list of windows from other applications as @@Toplevel$s via the
|
||||||
/// [zwlr-foreign-toplevel-management-v1](https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1)
|
/// [zwlr-foreign-toplevel-management-v1](https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1)
|
||||||
/// wayland protocol.
|
/// wayland protocol.
|
||||||
class ToplevelManagerQml: public QObject {
|
class ToplevelManagerQml: public QObject {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
/// Decorationless window that can be attached to the screen edges using the [zwlr_layer_shell_v1] protocol.
|
/// Decorationless window that can be attached to the screen edges using the [zwlr_layer_shell_v1] protocol.
|
||||||
///
|
///
|
||||||
/// #### Attached property
|
/// #### Attached property
|
||||||
/// `WlrLayershell` works as an attached property of [PanelWindow] which you should use instead if you can,
|
/// `WlrLayershell` works as an attached property of @@Quickshell.PanelWindow which you should use instead if you can,
|
||||||
/// as it is platform independent.
|
/// as it is platform independent.
|
||||||
/// ```qml
|
/// ```qml
|
||||||
/// PanelWindow {
|
/// PanelWindow {
|
||||||
|
@ -37,7 +37,6 @@
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [zwlr_layer_shell_v1]: https://wayland.app/protocols/wlr-layer-shell-unstable-v1
|
/// [zwlr_layer_shell_v1]: https://wayland.app/protocols/wlr-layer-shell-unstable-v1
|
||||||
/// [PanelWindow]: ../../quickshell/panelwindow
|
|
||||||
class WlrLayershell: public ProxyWindowBase {
|
class WlrLayershell: public ProxyWindowBase {
|
||||||
QSDOC_BASECLASS(PanelWindowInterface);
|
QSDOC_BASECLASS(PanelWindowInterface);
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|
|
@ -41,7 +41,7 @@ enum Enum {
|
||||||
///
|
///
|
||||||
/// > [!WARNING] You **CANNOT** use this to make a secure lock screen.
|
/// > [!WARNING] You **CANNOT** use this to make a secure lock screen.
|
||||||
/// >
|
/// >
|
||||||
/// > If you want to make a lock screen, use [WlSessionLock](../wlsessionlock).
|
/// > If you want to make a lock screen, use @@WlSessionLock$.
|
||||||
Exclusive = 1,
|
Exclusive = 1,
|
||||||
/// Access to the keyboard as determined by the operating system.
|
/// Access to the keyboard as determined by the operating system.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue