mirror-chatterino2/scrollbarhighlight.h

48 lines
698 B
C
Raw Normal View History

2017-01-03 21:19:33 +01:00
#ifndef SCROLLBARHIGHLIGHT_H
#define SCROLLBARHIGHLIGHT_H
#include "QString"
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-11 18:52:09 +01:00
ScrollBarHighlight(float position, int colorIndex, Style style = Default,
QString tag = "");
2017-01-03 21:19:33 +01:00
2017-01-11 18:52:09 +01:00
Style
style()
{
2017-01-03 21:19:33 +01:00
return m_style;
}
2017-01-11 18:52:09 +01:00
float
position()
{
2017-01-03 21:19:33 +01:00
return m_position;
}
2017-01-11 18:52:09 +01:00
int
colorIndex()
{
2017-01-03 21:19:33 +01:00
return m_colorIndex;
}
2017-01-11 18:52:09 +01:00
QString
getTag()
{
2017-01-03 21:19:33 +01:00
return m_tag;
}
2017-01-11 18:52:09 +01:00
ScrollBarHighlight *next;
2017-01-03 21:19:33 +01:00
private:
Style m_style;
float m_position;
int m_colorIndex;
QString m_tag;
};
2017-01-11 18:52:09 +01:00
#endif // SCROLLBARHIGHLIGHT_H