2017-01-03 21:19:33 +01:00
|
|
|
#ifndef SCROLLBARHIGHLIGHT_H
|
|
|
|
#define SCROLLBARHIGHLIGHT_H
|
|
|
|
|
|
|
|
#include "QString"
|
|
|
|
|
2017-04-14 17:47:28 +02:00
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
2017-01-18 21:30:23 +01:00
|
|
|
|
2017-01-03 21:19:33 +01:00
|
|
|
class ScrollBarHighlight
|
|
|
|
{
|
|
|
|
public:
|
2017-01-11 18:52:09 +01:00
|
|
|
enum Style { Default, Left, Right, SingleLine };
|
2017-01-03 21:19:33 +01:00
|
|
|
|
2017-04-12 17:46:44 +02:00
|
|
|
ScrollBarHighlight(float getPosition, int getColorIndex, Style getStyle = Default,
|
|
|
|
QString _tag = "");
|
2017-01-03 21:19:33 +01:00
|
|
|
|
2017-04-12 17:46:44 +02:00
|
|
|
Style getStyle()
|
2017-01-11 18:52:09 +01:00
|
|
|
{
|
2017-04-12 17:46:44 +02:00
|
|
|
return _style;
|
2017-01-03 21:19:33 +01:00
|
|
|
}
|
|
|
|
|
2017-04-12 17:46:44 +02:00
|
|
|
float getPosition()
|
2017-01-11 18:52:09 +01:00
|
|
|
{
|
2017-04-12 17:46:44 +02:00
|
|
|
return _position;
|
2017-01-03 21:19:33 +01:00
|
|
|
}
|
|
|
|
|
2017-04-12 17:46:44 +02:00
|
|
|
int getColorIndex()
|
2017-01-11 18:52:09 +01:00
|
|
|
{
|
2017-04-12 17:46:44 +02:00
|
|
|
return _colorIndex;
|
2017-01-03 21:19:33 +01:00
|
|
|
}
|
|
|
|
|
2017-04-12 17:46:44 +02:00
|
|
|
QString getTag()
|
2017-01-11 18:52:09 +01:00
|
|
|
{
|
2017-04-12 17:46:44 +02:00
|
|
|
return _tag;
|
2017-01-03 21:19:33 +01:00
|
|
|
}
|
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
ScrollBarHighlight *next;
|
2017-01-03 21:19:33 +01:00
|
|
|
|
|
|
|
private:
|
2017-04-12 17:46:44 +02:00
|
|
|
Style _style;
|
|
|
|
float _position;
|
|
|
|
int _colorIndex;
|
|
|
|
QString _tag;
|
2017-01-03 21:19:33 +01:00
|
|
|
};
|
2017-01-18 21:30:23 +01:00
|
|
|
}
|
|
|
|
}
|
2017-01-03 21:19:33 +01:00
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
#endif // SCROLLBARHIGHLIGHT_H
|