qt-material-widgets/components/qtmaterialflatbutton_p.h

50 lines
1.5 KiB
C
Raw Normal View History

2017-09-29 09:50:04 +00:00
#ifndef QTMATERIALFLATBUTTON_P_H
#define QTMATERIALFLATBUTTON_P_H
#include <QtGlobal>
#include <QColor>
#include "lib/qtmaterialtheme.h"
2022-02-17 01:18:04 +00:00
namespace md
{
class FlatButton;
class RippleOverlay;
class FlatButtonStateMachine;
2017-09-29 09:50:04 +00:00
2022-02-17 01:18:04 +00:00
class FlatButtonPrivate
2017-09-29 09:50:04 +00:00
{
2022-02-17 01:18:04 +00:00
Q_DISABLE_COPY(FlatButtonPrivate)
Q_DECLARE_PUBLIC(FlatButton)
2017-09-29 09:50:04 +00:00
public:
2022-02-17 01:18:04 +00:00
FlatButtonPrivate(FlatButton *q);
virtual ~FlatButtonPrivate();
2017-09-29 09:50:04 +00:00
void init();
2022-02-17 01:18:04 +00:00
FlatButton *const q_ptr;
RippleOverlay *rippleOverlay;
FlatButtonStateMachine *stateMachine;
2017-09-29 09:50:04 +00:00
Material::Role role;
Material::RippleStyle rippleStyle;
Material::ButtonIconPlacement iconPlacement;
Material::OverlayStyle overlayStyle;
Qt::BGMode bgMode;
Qt::Alignment textAlignment;
2017-09-29 09:50:04 +00:00
QColor backgroundColor;
QColor foregroundColor;
QColor overlayColor;
QColor disabledColor;
QColor disabledBackgroundColor;
qreal fixedRippleRadius;
qreal cornerRadius;
qreal baseOpacity;
qreal fontSize;
bool useThemeColors;
bool useFixedRippleRadius;
bool haloVisible;
};
2022-02-17 01:18:04 +00:00
}
2017-09-29 09:50:04 +00:00
#endif // QTMATERIALFLATBUTTON_P_H