5#ifndef DARROWRECTANGLE_P_H
6#define DARROWRECTANGLE_P_H
8#include <DArrowRectangle>
10#include <DWindowManagerHelper>
11#include <DObjectPrivate>
16DWIDGET_BEGIN_NAMESPACE
25 void init(DArrowRectangle::FloatMode floatMode);
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;
64 DArrowRectangle::ArrowDirection m_arrowDirection;
67 DArrowRectangle::FloatMode floatMode = DArrowRectangle::FloatWindow;
71 DWindowManagerHelper *m_wmHelper;
72 bool leftRightRadius =
false;
73 bool radiusArrowStyleEnable =
false;