mirror-chatterino2/src/widgets/helper/TitlebarButton.hpp
2018-06-26 16:37:59 +02:00

25 lines
482 B
C++

#pragma once
#include "widgets/helper/RippleEffectButton.hpp"
namespace chatterino {
class TitleBarButton : public RippleEffectButton
{
public:
enum Style { Minimize = 1, Maximize = 2, Unmaximize = 4, Close = 8, User = 16, Settings = 32 };
TitleBarButton();
Style getButtonStyle() const;
void setButtonStyle(Style style);
protected:
void paintEvent(QPaintEvent *) override;
private:
Style style;
};
} // namespace chatterino