mirror-chatterino2/widgets/scrollbarhighlight.h

53 lines
748 B
C
Raw Normal View History

2017-01-03 21:19:33 +01:00
#ifndef SCROLLBARHIGHLIGHT_H
#define SCROLLBARHIGHLIGHT_H
#include "QString"
2017-01-18 21:30:23 +01:00
namespace chatterino {
namespace widgets {
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-01-18 04:33:30 +01:00
ScrollBarHighlight(float getPosition, int getColorIndex,
Style getStyle = Default, QString tag = "");
2017-01-03 21:19:33 +01:00
2017-01-11 18:52:09 +01:00
Style
2017-01-18 04:33:30 +01:00
getStyle()
2017-01-11 18:52:09 +01:00
{
2017-01-18 04:33:30 +01:00
return style;
2017-01-03 21:19:33 +01:00
}
2017-01-11 18:52:09 +01:00
float
2017-01-18 04:33:30 +01:00
getPosition()
2017-01-11 18:52:09 +01:00
{
2017-01-18 04:33:30 +01:00
return position;
2017-01-03 21:19:33 +01:00
}
2017-01-11 18:52:09 +01:00
int
2017-01-18 04:33:30 +01:00
getColorIndex()
2017-01-11 18:52:09 +01:00
{
2017-01-18 04:33:30 +01:00
return colorIndex;
2017-01-03 21:19:33 +01:00
}
2017-01-11 18:52:09 +01:00
QString
getTag()
{
2017-01-18 04:33:30 +01: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-01-18 04:33:30 +01: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