mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
55 lines
862 B
C++
55 lines
862 B
C++
#pragma once
|
|
|
|
#include "QString"
|
|
|
|
namespace chatterino {
|
|
namespace singletons {
|
|
class ThemeManager;
|
|
}
|
|
|
|
namespace widgets {
|
|
|
|
class ScrollBar;
|
|
|
|
class ScrollBarHighlight
|
|
{
|
|
public:
|
|
enum Style { Default, Left, Right, SingleLine };
|
|
|
|
ScrollBarHighlight(double _position, int _colorIndex, ScrollBar *parent, Style _style = Default,
|
|
QString _tag = "");
|
|
|
|
singletons::ThemeManager &themeManager;
|
|
|
|
double getPosition()
|
|
{
|
|
return this->position;
|
|
}
|
|
|
|
int getColorIndex()
|
|
{
|
|
return this->colorIndex;
|
|
}
|
|
|
|
Style getStyle()
|
|
{
|
|
return this->style;
|
|
}
|
|
|
|
QString getTag()
|
|
{
|
|
return this->tag;
|
|
}
|
|
|
|
ScrollBarHighlight *next = nullptr;
|
|
|
|
private:
|
|
double position;
|
|
int colorIndex;
|
|
Style style;
|
|
QString tag;
|
|
};
|
|
|
|
} // namespace widgets
|
|
} // namespace chatterino
|