DtkWidget 5.6.0.2
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
10#include <DObjectPrivate>
11
12DWIDGET_BEGIN_NAMESPACE
13
14class DSwitchButtonPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
15{
16public:
19
20 void init();
21
22public:
23 bool checked = false;
24 QColor enabledBackground = qRgba(207, 214, 230, 255);
25 QColor disabledBackground = qRgba(207, 214, 230, 255);
26 QColor checkedBackground = qRgba(44, 167, 248, 255);
27
28 double animationStartValue = 0.0;
29 double animationEndValue = 0.0;
30
31public:
32 D_DECLARE_PUBLIC(DSwitchButton)
33};
34
35DWIDGET_END_NAMESPACE
36
37#endif // DSWITCHBUTTON_P_H
Definition: dswitchbutton_p.h:15
Definition: dswitchbutton.h:19