ArchitectureColoredPainting/qt-material-widgets/components/qtmaterialflatbutton_p.h

47 lines
1.6 KiB
C
Raw Permalink Normal View History

2023-03-06 12:38:25 +08:00
#ifndef QTMATERIALFLATBUTTON_P_H
#define QTMATERIALFLATBUTTON_P_H
#include <QtGlobal>
#include <QColor>
#include "lib/qtmaterialtheme.h"
class QtMaterialFlatButton;
class QtMaterialRippleOverlay;
class QtMaterialFlatButtonStateMachine;
class QtMaterialFlatButtonPrivate
{
Q_DISABLE_COPY(QtMaterialFlatButtonPrivate)
Q_DECLARE_PUBLIC(QtMaterialFlatButton)
public:
QtMaterialFlatButtonPrivate(QtMaterialFlatButton *q);
virtual ~QtMaterialFlatButtonPrivate();
void init();
QtMaterialFlatButton *const q_ptr;
QtMaterialRippleOverlay *rippleOverlay;
QtMaterialFlatButtonStateMachine *stateMachine;
Material::Role role;
Material::RippleStyle rippleStyle;
Material::ButtonIconPlacement iconPlacement;
Material::OverlayStyle overlayStyle;
Qt::BGMode bgMode;
Qt::Alignment textAlignment;
QColor backgroundColor;
QColor foregroundColor;
QColor overlayColor;
QColor disabledColor;
QColor disabledBackgroundColor;
qreal fixedRippleRadius;
qreal cornerRadius;
qreal baseOpacity;
qreal fontSize;
bool useThemeColors;
bool useFixedRippleRadius;
bool haloVisible;
};
#endif // QTMATERIALFLATBUTTON_P_H