mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
26 lines
588 B
C++
26 lines
588 B
C++
|
#pragma once
|
||
|
|
||
|
#include "widgets/helper/rippleeffectbutton.hpp"
|
||
|
|
||
|
namespace chatterino {
|
||
|
namespace widgets {
|
||
|
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:
|
||
|
virtual void paintEvent(QPaintEvent *) override;
|
||
|
virtual void resizeEvent(QResizeEvent *) override;
|
||
|
|
||
|
private:
|
||
|
Style style;
|
||
|
};
|
||
|
} // namespace widgets
|
||
|
} // namespace chatterino
|