22 Q_PROPERTY(
Edge edge READ edge WRITE setEdge NOTIFY edgeChanged)
23 Q_PROPERTY(
int thickness READ thickness WRITE setThickness NOTIFY thicknessChanged)
32 Q_PROPERTY(
int shadowSize READ shadowSize WRITE setShadowSize NOTIFY shadowSizeChanged)
45 Q_PROPERTY(
int cornerCarveRadius READ cornerCarveRadius WRITE setCornerCarveRadius NOTIFY cornerCarveRadiusChanged)
46 Q_PROPERTY(QScreen* screen READ screen WRITE setScreen NOTIFY screenChanged)
52 Q_PROPERTY(
Layer panelLayer READ panelLayer WRITE setPanelLayer NOTIFY panelLayerChanged)
53 Q_PROPERTY(
int exclusiveZone READ exclusiveZone WRITE setExclusiveZone NOTIFY exclusiveZoneChanged)
54 Q_PROPERTY(
bool exclusiveZoneEnabled READ exclusiveZoneEnabled WRITE setExclusiveZoneEnabled NOTIFY
55 exclusiveZoneEnabledChanged)
56 Q_PROPERTY(
Alignment alignment READ alignment WRITE setAlignment NOTIFY alignmentChanged)
57 Q_PROPERTY(
int panelLength READ panelLength WRITE setPanelLength NOTIFY panelLengthChanged)
58 Q_PROPERTY(QMargins margins READ margins WRITE setMargins NOTIFY marginsChanged)
68 Q_PROPERTY(
KeyboardFocus keyboardFocus READ keyboardFocus WRITE setKeyboardFocus NOTIFY keyboardFocusChanged)
104 Q_ENUM(KeyboardFocus)
109 [[nodiscard]]
Edge edge() const;
112 [[nodiscard]]
int thickness() const;
113 void setThickness(
int thickness);
115 [[nodiscard]]
int shadowSize() const;
116 void setShadowSize(
int size);
118 [[nodiscard]]
int cornerCarveRadius() const;
119 void setCornerCarveRadius(
int radius);
121 [[nodiscard]] QScreen* screen() const;
122 void setScreen(QScreen* screen);
124 [[nodiscard]]
Layer panelLayer() const;
127 [[nodiscard]]
int exclusiveZone() const;
128 void setExclusiveZone(
int zone);
130 [[nodiscard]]
bool exclusiveZoneEnabled() const;
131 void setExclusiveZoneEnabled(
bool enabled);
136 [[nodiscard]]
int panelLength() const;
137 void setPanelLength(
int length);
139 [[nodiscard]] QMargins margins() const;
140 void setMargins(const QMargins& margins);
147 void thicknessChanged();
148 void shadowSizeChanged();
149 void cornerCarveRadiusChanged();
150 void screenChanged();
151 void panelLayerChanged();
152 void exclusiveZoneChanged();
153 void exclusiveZoneEnabledChanged();
154 void alignmentChanged();
155 void panelLengthChanged();
156 void marginsChanged();
157 void keyboardFocusChanged();
161 int m_thickness = 32;
162 int m_shadowSize = 0;
163 int m_cornerCarveRadius = 0;
166 QPointer<QScreen> m_screen;
167 Layer m_layer = LayerTop;
171 int m_exclusiveZone = -1;
172 bool m_exclusiveZoneEnabled = true;
177 int m_panelLength = -1;