27 virtual void show(
int x,
int y);
28 void setContent(QWidget *content);
29 void resizeWithContent();
30 void paintEvent(QPaintEvent *e);
31 void resizeEvent(QResizeEvent *e);
33 QPainterPath getLeftCornerPath();
34 QPainterPath getRightCornerPath();
35 QPainterPath getTopCornerPath();
36 QPainterPath getBottomCornerPath();
38 const QRect currentScreenRect(
const int x,
const int y);
40 void verticalMove(
int x,
int y);
41 void horizontalMove(
int x,
int y);
43 void updateClipPath();
49 int m_arrowHeight = 8;
50 int m_arrowWidth = 12;
55 qreal m_shadowBlurRadius = 20;
56 qreal m_shadowDistance = 0;
57 qreal m_shadowXOffset = 0;
58 qreal m_shadowYOffset = 5;
59 int m_shadowWidth = 5;
60 int m_borderWidth = 1;
61 QColor m_borderColor = QColor(0, 0, 0, 255 * 0.1);
62 QColor m_backgroundColor;
65 QPoint m_lastPos = QPoint(0, 0);
68 QPointer<QWidget> m_content;
71 DWindowManagerHelper *m_wmHelper =
nullptr;
72 bool leftRightRadius =
false;
73 bool radiusArrowStyleEnable =
false;