mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
49 lines
741 B
C++
49 lines
741 B
C++
#ifndef SCROLLBARHIGHLIGHT_H
|
|
#define SCROLLBARHIGHLIGHT_H
|
|
|
|
#include "QString"
|
|
|
|
namespace chatterino {
|
|
namespace widgets {
|
|
|
|
class ScrollBarHighlight
|
|
{
|
|
public:
|
|
enum Style { Default, Left, Right, SingleLine };
|
|
|
|
ScrollBarHighlight(float getPosition, int getColorIndex, Style getStyle = Default,
|
|
QString _tag = "");
|
|
|
|
Style getStyle()
|
|
{
|
|
return _style;
|
|
}
|
|
|
|
float getPosition()
|
|
{
|
|
return _position;
|
|
}
|
|
|
|
int getColorIndex()
|
|
{
|
|
return _colorIndex;
|
|
}
|
|
|
|
QString getTag()
|
|
{
|
|
return _tag;
|
|
}
|
|
|
|
ScrollBarHighlight *next;
|
|
|
|
private:
|
|
Style _style;
|
|
float _position;
|
|
int _colorIndex;
|
|
QString _tag;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // SCROLLBARHIGHLIGHT_H
|