Chatterino
Public Member Functions | Protected Member Functions | Properties | List of all members
chatterino::Scrollbar Class Reference

#include <Scrollbar.hpp>

Inheritance diagram for chatterino::Scrollbar:
[legend]
Collaboration diagram for chatterino::Scrollbar:
[legend]

Public Member Functions

 Scrollbar (ChannelView *parent=nullptr)
 
void addHighlight (ScrollbarHighlight highlight)
 
void addHighlightsAtStart (const std::vector< ScrollbarHighlight > &highlights_)
 
void replaceHighlight (size_t index, ScrollbarHighlight replacement)
 
void pauseHighlights ()
 
void unpauseHighlights ()
 
void clearHighlights ()
 
void scrollToBottom (bool animate=false)
 
void scrollToTop (bool animate=false)
 
bool isAtBottom () const
 
void setMaximum (qreal value)
 
void setMinimum (qreal value)
 
void setLargeChange (qreal value)
 
void setSmallChange (qreal value)
 
void setDesiredValue (qreal value, bool animated=false)
 
qreal getMaximum () const
 
qreal getMinimum () const
 
qreal getLargeChange () const
 
qreal getSmallChange () const
 
qreal getDesiredValue () const
 
qreal getCurrentValue () const
 
const QPropertyAnimation & getCurrentValueAnimation () const
 
void offset (qreal value)
 
pajlada::Signals::NoArgSignal & getCurrentValueChanged ()
 
pajlada::Signals::NoArgSignal & getDesiredValueChanged ()
 
void setCurrentValue (qreal value)
 
void printCurrentState (const QString &prefix=QString()) const
 
- Public Member Functions inherited from chatterino::BaseWidget
 BaseWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
virtual float scale () const
 
boost::optional< float > overrideScale () const
 
void setOverrideScale (boost::optional< float >)
 
QSize scaleIndependantSize () const
 
int scaleIndependantWidth () const
 
int scaleIndependantHeight () const
 
void setScaleIndependantSize (int width, int height)
 
void setScaleIndependantSize (QSize)
 
void setScaleIndependantWidth (int value)
 
void setScaleIndependantHeight (int value)
 
float qtFontScale () const
 

Protected Member Functions

void paintEvent (QPaintEvent *) override
 
void resizeEvent (QResizeEvent *) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void leaveEvent (QEvent *) override
 
- Protected Member Functions inherited from chatterino::BaseWidget
virtual void childEvent (QChildEvent *) override
 
virtual void showEvent (QShowEvent *) override
 
virtual void scaleChangedEvent (float newScale)
 
virtual void themeChangedEvent ()
 
virtual void addShortcuts ()
 
void setScale (float value)
 
void clearShortcuts ()
 

Properties

qreal desiredValue_ = 0
 
qreal currentValue_ = 0
 

Additional Inherited Members

- Public Attributes inherited from chatterino::BaseWidget
pajlada::Signals::Signal< float > scaleChanged
 
- Protected Attributes inherited from chatterino::BaseWidget
Themetheme
 
std::vector< QShortcut * > shortcuts_
 
pajlada::Signals::SignalHolder signalHolder_
 

Constructor & Destructor Documentation

◆ Scrollbar()

chatterino::Scrollbar::Scrollbar ( ChannelView parent = nullptr)
Here is the call graph for this function:

Member Function Documentation

◆ addHighlight()

void chatterino::Scrollbar::addHighlight ( ScrollbarHighlight  highlight)

◆ addHighlightsAtStart()

void chatterino::Scrollbar::addHighlightsAtStart ( const std::vector< ScrollbarHighlight > &  highlights_)

◆ clearHighlights()

void chatterino::Scrollbar::clearHighlights ( )

◆ getCurrentValue()

qreal chatterino::Scrollbar::getCurrentValue ( ) const
Here is the caller graph for this function:

◆ getCurrentValueAnimation()

const QPropertyAnimation & chatterino::Scrollbar::getCurrentValueAnimation ( ) const

◆ getCurrentValueChanged()

pajlada::Signals::NoArgSignal & chatterino::Scrollbar::getCurrentValueChanged ( )
Here is the caller graph for this function:

◆ getDesiredValue()

qreal chatterino::Scrollbar::getDesiredValue ( ) const
Here is the caller graph for this function:

◆ getDesiredValueChanged()

pajlada::Signals::NoArgSignal & chatterino::Scrollbar::getDesiredValueChanged ( )

◆ getLargeChange()

qreal chatterino::Scrollbar::getLargeChange ( ) const
Here is the caller graph for this function:

◆ getMaximum()

qreal chatterino::Scrollbar::getMaximum ( ) const
Here is the caller graph for this function:

◆ getMinimum()

qreal chatterino::Scrollbar::getMinimum ( ) const
Here is the caller graph for this function:

◆ getSmallChange()

qreal chatterino::Scrollbar::getSmallChange ( ) const

◆ isAtBottom()

bool chatterino::Scrollbar::isAtBottom ( ) const

◆ leaveEvent()

void chatterino::Scrollbar::leaveEvent ( QEvent *  )
overrideprotected

◆ mouseMoveEvent()

void chatterino::Scrollbar::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected
Here is the call graph for this function:

◆ mousePressEvent()

void chatterino::Scrollbar::mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void chatterino::Scrollbar::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected
Here is the call graph for this function:

◆ offset()

void chatterino::Scrollbar::offset ( qreal  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ paintEvent()

void chatterino::Scrollbar::paintEvent ( QPaintEvent *  )
overrideprotected
Here is the call graph for this function:

◆ pauseHighlights()

void chatterino::Scrollbar::pauseHighlights ( )

◆ printCurrentState()

void chatterino::Scrollbar::printCurrentState ( const QString &  prefix = QString()) const
Here is the call graph for this function:

◆ replaceHighlight()

void chatterino::Scrollbar::replaceHighlight ( size_t  index,
ScrollbarHighlight  replacement 
)

◆ resizeEvent()

void chatterino::Scrollbar::resizeEvent ( QResizeEvent *  )
overrideprotected
Here is the call graph for this function:

◆ scrollToBottom()

void chatterino::Scrollbar::scrollToBottom ( bool  animate = false)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ scrollToTop()

void chatterino::Scrollbar::scrollToTop ( bool  animate = false)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentValue()

void chatterino::Scrollbar::setCurrentValue ( qreal  value)
Here is the caller graph for this function:

◆ setDesiredValue()

void chatterino::Scrollbar::setDesiredValue ( qreal  value,
bool  animated = false 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLargeChange()

void chatterino::Scrollbar::setLargeChange ( qreal  value)

◆ setMaximum()

void chatterino::Scrollbar::setMaximum ( qreal  value)

◆ setMinimum()

void chatterino::Scrollbar::setMinimum ( qreal  value)

◆ setSmallChange()

void chatterino::Scrollbar::setSmallChange ( qreal  value)

◆ unpauseHighlights()

void chatterino::Scrollbar::unpauseHighlights ( )

Property Documentation

◆ currentValue_

qreal chatterino::Scrollbar::currentValue_ = 0
readwrite

◆ desiredValue_

qreal chatterino::Scrollbar::desiredValue_ = 0
readwrite

The documentation for this class was generated from the following files: