DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dswitchbutton_p.h
1// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DSWITCHBUTTON_P_H
6#define DSWITCHBUTTON_P_H
7
8#include <DSwitchButton>
9#include <DDciIconPlayer>
10
11#include <DObjectPrivate>
12
13DGUI_USE_NAMESPACE
14DWIDGET_BEGIN_NAMESPACE
15
16class DSwitchButtonPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
17{
18public:
21
22 void init();
23
24public:
25 bool checked = false;
26 QColor enabledBackground = qRgba(207, 214, 230, 255);
27 QColor disabledBackground = qRgba(207, 214, 230, 255);
28 QColor checkedBackground = qRgba(44, 167, 248, 255);
29
30 double animationStartValue = 0.0;
31 double animationEndValue = 0.0;
32
33 DDciIconPlayer player;
34
35public:
36 D_DECLARE_PUBLIC(DSwitchButton)
37};
38
39DWIDGET_END_NAMESPACE
40
41#endif // DSWITCHBUTTON_P_H
Definition dswitchbutton_p.h:17
DSwitchButton 实现一个开关按钮
Definition dswitchbutton.h:19