6#include <PhosphorShell/phosphorshell_export.h>
166 Q_ENUM(KeyboardFocus)
275 int m_thickness = 32;
276 int m_shadowSize = 0;
278 int m_interactiveThickness = 0;
280 QVariant m_inputRegion;
281 int m_cornerCarveRadius = 0;
284 QPointer<QScreen> m_screen;
289 int m_exclusiveZone = -1;
290 bool m_exclusiveZoneEnabled = true;
295 int m_panelLength = -1;
Alignment
Definition PanelWindow.h:149
@ Fill
Definition PanelWindow.h:150
@ Center
Definition PanelWindow.h:152
@ Start
Definition PanelWindow.h:151
@ End
Definition PanelWindow.h:153
void setShadowSize(int size)
void panelLengthChanged()
bool exclusiveZoneEnabled() const
bool hasExplicitInputRegion() const
Whether inputRegion is set, so the explicit region replaces the band rule.
QVariant inputRegion() const
Edge
Additional surface pixels rendered BEYOND the visible panel thickness, intended for the shell to draw...
Definition PanelWindow.h:133
@ Left
Definition PanelWindow.h:136
@ Right
Definition PanelWindow.h:137
@ Top
Definition PanelWindow.h:134
@ Bottom
Definition PanelWindow.h:135
void cornerCarveRadiusChanged()
PanelWindow(QQuickItem *parent=nullptr)
void inputRegionChanged()
void setInteractiveThickness(int thickness)
void interactiveThicknessChanged()
void setExclusiveZone(int zone)
static QRegion explicitInputRegion(const QVariant ®ion, QSize surfaceSize)
The explicit region as a QRegion in surface-local coordinates, clamped to surfaceSize.
void keyboardFocusChanged()
int cornerCarveRadius() const
void exclusiveZoneEnabledChanged()
void setInputRegion(const QVariant ®ion)
int effectiveInputThickness() const
The input-region depth to actually apply: interactiveThickness when set, otherwise thickness.
void setScreen(QScreen *screen)
KeyboardFocus
Definition PanelWindow.h:161
@ Exclusive
Holds focus exclusively; for lock screens etc.
Definition PanelWindow.h:164
@ None
Never receives keyboard focus (default — typical panel).
Definition PanelWindow.h:162
@ OnDemand
Receives focus when the user clicks the surface.
Definition PanelWindow.h:163
void setExclusiveZoneEnabled(bool enabled)
int exclusiveZone() const
void setAlignment(Alignment alignment)
void setKeyboardFocus(KeyboardFocus focus)
static QRect visibleBand(Edge edge, int thickness, QSize surfaceSize)
The painted band of a panel surface of surfaceSize, in surface-local device-independent coordinates: ...
int interactiveThickness() const
Alignment alignment() const
KeyboardFocus keyboardFocus() const
Layer
Definition PanelWindow.h:141
@ LayerOverlay
Definition PanelWindow.h:145
@ LayerTop
Definition PanelWindow.h:144
@ LayerBottom
Definition PanelWindow.h:143
@ LayerBackground
Definition PanelWindow.h:142
void setThickness(int thickness)
void exclusiveZoneChanged()
void setCornerCarveRadius(int radius)
void setPanelLength(int length)
void setPanelLayer(Layer layer)
void setMargins(const QMargins &margins)
Definition Environment.h:11