forked from quickshell/quickshell
core/window: allow explicit surface format selection
This commit is contained in:
parent
dc3a79600d
commit
f3b7171b25
10 changed files with 134 additions and 6 deletions
|
@ -13,7 +13,8 @@ class Anchors {
|
|||
Q_PROPERTY(bool right MEMBER mRight);
|
||||
Q_PROPERTY(bool top MEMBER mTop);
|
||||
Q_PROPERTY(bool bottom MEMBER mBottom);
|
||||
QML_VALUE_TYPE(anchors);
|
||||
QML_VALUE_TYPE(panelAnchors);
|
||||
QML_STRUCTURED_VALUE;
|
||||
|
||||
public:
|
||||
[[nodiscard]] bool horizontalConstraint() const noexcept { return this->mLeft && this->mRight; }
|
||||
|
@ -40,7 +41,8 @@ class Margins {
|
|||
Q_PROPERTY(qint32 right MEMBER mRight);
|
||||
Q_PROPERTY(qint32 top MEMBER mTop);
|
||||
Q_PROPERTY(qint32 bottom MEMBER mBottom);
|
||||
QML_VALUE_TYPE(margins);
|
||||
QML_VALUE_TYPE(panelMargins);
|
||||
QML_STRUCTURED_VALUE;
|
||||
|
||||
public:
|
||||
[[nodiscard]] bool operator==(const Margins& other) const noexcept {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue