23class LIBDTKWIDGETSHARED_EXPORT
DArrowRectangle :
public QWidget,
public DTK_CORE_NAMESPACE::DObject
43 explicit DArrowRectangle(ArrowDirection direction, QWidget *parent =
nullptr);
44 explicit DArrowRectangle(ArrowDirection direction, FloatMode floatMode, QWidget *parent =
nullptr);
47 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
48 Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor)
49 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth)
50 Q_PROPERTY(
int radius READ radius WRITE setRadius)
51 Q_PROPERTY(
int arrowWidth READ arrowWidth WRITE setArrowWidth)
52 Q_PROPERTY(
int arrowHeight READ arrowHeight WRITE setArrowHeight)
53 Q_PROPERTY(
int arrowX READ arrowX WRITE setArrowX)
54 Q_PROPERTY(
int arrowY READ arrowY WRITE setArrowY)
55 Q_PROPERTY(
int margin READ margin WRITE setMargin)
56 Q_PROPERTY(
ArrowDirection arrowDirection READ arrowDirection WRITE setArrowDirection)
57 Q_PROPERTY(qreal shadowXOffset READ shadowXOffset WRITE setShadowXOffset)
58 Q_PROPERTY(qreal shadowYOffset READ shadowYOffset WRITE setShadowYOffset)
59 Q_PROPERTY(qreal shadowBlurRadius READ shadowBlurRadius WRITE setShadowBlurRadius)
62 bool radiusForceEnabled() const;
63 int arrowHeight() const;
64 int arrowWidth() const;
68 int borderWidth() const;
69 QColor borderColor() const;
70 QColor backgroundColor() const;
73 void setRadius(
int value);
74 void setRadiusForceEnable(
bool enable);
75 void setArrowHeight(
int value);
76 void setArrowWidth(
int value);
77 void setArrowX(
int value);
78 void setArrowY(
int value);
79 void setMargin(
int value);
80 void setBorderWidth(
int borderWidth);
81 void setBorderColor(const QColor &borderColor);
82 void setBackgroundColor(const QColor &backgroundColor);
85 void setWidth(
int value);
86 void setHeight(
int value);
88 virtual
void show(
int x,
int y);
90 void setContent(QWidget *content);
91 QWidget *getContent() const;
92 void resizeWithContent();
93 void move(
int x,
int y);
96 qreal shadowXOffset() const;
97 qreal shadowYOffset() const;
98 qreal shadowBlurRadius() const;
100 void setShadowBlurRadius(const qreal &shadowBlurRadius);
101 void setShadowXOffset(const qreal &shadowXOffset);
102 void setShadowYOffset(const qreal &shadowYOffset);
104 void setLeftRightRadius(
bool enable);
105 void setRadiusArrowStyleEnable(
bool enable);
108 void windowDeactivate() const;
111 void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
112 void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE;
113 bool event(QEvent *e) Q_DECL_OVERRIDE;