DtkWidget 5.6.0.2
DTK Widget module
|
Public 类型 | |
enum | SplitScreenMode { SplitLeftHalf = 1 , SplitRightHalf = 2 , SplitFullScreen = 15 } |
![]() | |
enum | ArrowDirection { ArrowLeft , ArrowRight , ArrowTop , ArrowBottom } |
enum | FloatMode { FloatWindow , FloatWidget } |
信号 | |
void | maximizeButtonClicked () |
void | leftSplitScreenButtonClicked () |
void | rightSplitScreenButtonClicked () |
![]() | |
void | windowDeactivate () const |
Public 成员函数 | |
DSplitScreenWidget (DSplitScreenWidget::FloatMode mode, QWidget *parent=nullptr) | |
void | hide () |
void | hideImmediately () |
void | updateMaximizeButtonIcon (bool isMaximized) |
void | setButtonsEnable (bool enable) |
![]() | |
DArrowRectangle (ArrowDirection direction, QWidget *parent=nullptr) | |
DArrowRectangle::DArrowRectangle constructs an instance of DArrowRectangle. 更多... | |
DArrowRectangle (ArrowDirection direction, FloatMode floatMode, QWidget *parent=nullptr) | |
获取 DArrowRectangle 实例,并指定浮动模式. 更多... | |
int | radius () const |
bool | radiusForceEnabled () const |
是否强制(忽略特效)开启圆角 更多... | |
int | arrowHeight () const |
int | arrowWidth () const |
int | arrowX () const |
int | arrowY () const |
int | margin () const |
int | borderWidth () const |
QColor | borderColor () const |
QColor | backgroundColor () const |
ArrowDirection | arrowDirection () const |
void | setRadius (int value) |
该函数用于设置圆角大小. 更多... | |
void | setRadiusForceEnable (bool enable) |
DArrowRectangle::setRadiusForceEnable 设置圆角样式. 更多... | |
void | setArrowHeight (int value) |
设置箭头高度. 更多... | |
void | setArrowWidth (int value) |
设置箭头宽度. 更多... | |
void | setArrowX (int value) |
设置箭头 x 坐标的值. 更多... | |
void | setArrowY (int value) |
设置箭头 y 坐标的值. 更多... | |
void | setMargin (int value) |
设置边距大小. 更多... | |
void | setBorderWidth (int borderWidth) |
void | setBorderColor (const QColor &borderColor) |
void | setBackgroundColor (const QColor &backgroundColor) |
void | setBackgroundColor (DBlurEffectWidget::MaskColorType type) |
DArrowRectangle::setBackgroundColor is an overloaded function. 更多... | |
void | setArrowDirection (ArrowDirection value) |
该函数用于设置箭头方向. 更多... | |
void | setWidth (int value) |
该函数用于设置整个控件固定的宽度 更多... | |
void | setHeight (int value) |
设置整个控件固定的高度 更多... | |
virtual void | show (int x, int y) |
在指定的坐标位置显示本控件; 更多... | |
void | setContent (QWidget *content) |
DArrowRectangle::setContent sets the content of the arrow rectangle. 更多... | |
QWidget * | getContent () const |
获取内容控件. 更多... | |
void | resizeWithContent () |
根据内容控件的大小自动设置矩形控件的大小. 更多... | |
void | move (int x, int y) |
移动到指定的坐标位置. 更多... | |
QSize | getFixedSize () |
获取整个矩形控件的大小. 更多... | |
qreal | shadowXOffset () const |
qreal | shadowYOffset () const |
qreal | shadowBlurRadius () const |
void | setShadowBlurRadius (const qreal &shadowBlurRadius) |
void | setShadowXOffset (const qreal &shadowXOffset) |
void | setShadowYOffset (const qreal &shadowYOffset) |
void | setLeftRightRadius (bool enable) |
DArrowRectangle::setLeftRightRadius 设置左右箭头时的圆角. 更多... | |
void | setRadiusArrowStyleEnable (bool enable) |
DArrowRectangle::setArrowStyleEnable 设置圆角箭头样式. 更多... | |
Protected 成员函数 | |
void | init () |
void | disabledByScreenGeometryAndWindowSize (QWidgetList w) |
bool | eventFilter (QObject *o, QEvent *e) override |
void | showEvent (QShowEvent *e) override |
void | timerEvent (QTimerEvent *e) override |
![]() | |
void | paintEvent (QPaintEvent *) Q_DECL_OVERRIDE |
void | resizeEvent (QResizeEvent *e) Q_DECL_OVERRIDE |
bool | event (QEvent *e) Q_DECL_OVERRIDE |
友元 | |
class | DTitlebarPrivate |
class | DTitlebar |
额外继承的成员函数 | |
![]() | |
QColor | backgroundColor |
这个属性表示矩形控件的背景颜色 更多... | |
QColor | borderColor |
这个属性表示控件边框的颜色 更多... | |
int | borderWidth |
这个属性表示控件边框的宽度 更多... | |
int | radius |
这个属性表示矩形的圆角 更多... | |
int | arrowWidth |
这个属性表示箭头的宽度 更多... | |
int | arrowHeight |
height of rectangle's arrow 更多... | |
int | arrowX |
the x coordinate of the rectangle's arrow 更多... | |
int | arrowY |
这个属性表示箭头的y轴坐标 更多... | |
int | margin |
这个属性表示边距大小 更多... | |
ArrowDirection | arrowDirection |
This property holds the direction of the rectangle's arrow points to. 更多... | |
qreal | shadowXOffset |
这属性表示小部件及其阴影在x轴上的偏移量 更多... | |
qreal | shadowYOffset |
这属性表示小部件及其阴影在y轴上的偏移量. 更多... | |
qreal | shadowBlurRadius |
这个属性保存小部件阴影的模糊半径 更多... | |