2019-09-08 22:27:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "widgets/helper/Button.hpp"
|
|
|
|
|
2019-10-07 15:46:08 +02:00
|
|
|
namespace chatterino {
|
2019-09-08 22:27:57 +02:00
|
|
|
|
|
|
|
enum class TitleBarButtonStyle {
|
|
|
|
None = 0,
|
|
|
|
Minimize = 1,
|
|
|
|
Maximize = 2,
|
|
|
|
Unmaximize = 4,
|
|
|
|
Close = 8,
|
|
|
|
User = 16,
|
|
|
|
Settings = 32
|
|
|
|
};
|
|
|
|
|
|
|
|
class TitleBarButton : public Button
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TitleBarButton();
|
|
|
|
|
|
|
|
TitleBarButtonStyle getButtonStyle() const;
|
|
|
|
void setButtonStyle(TitleBarButtonStyle style_);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent *) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
TitleBarButtonStyle style_;
|
|
|
|
};
|
|
|
|
|
2019-10-07 15:46:08 +02:00
|
|
|
} // namespace chatterino
|