Chatterino
|
#include <TitlebarButton.hpp>
Public Member Functions | |
TitleBarButton () | |
TitleBarButtonStyle | getButtonStyle () const |
void | setButtonStyle (TitleBarButtonStyle style_) |
![]() | |
Button (BaseWidget *parent=nullptr) | |
void | setMouseEffectColor (boost::optional< QColor > color) |
void | setPixmap (const QPixmap &pixmap_) |
const QPixmap & | getPixmap () const |
void | setDim (Dim value) |
Dim | getDim () const |
qreal | getCurrentDimAmount () const |
void | setEnable (bool value) |
bool | getEnable () const |
void | setEnableMargin (bool value) |
bool | getEnableMargin () const |
void | setBorderColor (const QColor &color) |
const QColor & | getBorderColor () const |
void | setMenu (std::unique_ptr< QMenu > menu) |
![]() | |
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 |
![]() | |
virtual void | enterEvent (QEvent *) override |
virtual void | leaveEvent (QEvent *) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
void | fancyPaint (QPainter &painter) |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
enum | Dim { Dim::None, Dim::Some, Dim::Lots } |
![]() | |
void | leftClicked () |
void | clicked (Qt::MouseButton button) |
void | leftMousePress () |
![]() | |
pajlada::Signals::Signal< float > | scaleChanged |
![]() | |
bool | enabled_ {true} |
bool | selected_ {false} |
bool | mouseOver_ {false} |
bool | mouseDown_ {false} |
bool | menuVisible_ {false} |
![]() | |
Theme * | theme |
std::vector< QShortcut * > | shortcuts_ |
pajlada::Signals::SignalHolder | signalHolder_ |
chatterino::TitleBarButton::TitleBarButton | ( | ) |
TitleBarButtonStyle chatterino::TitleBarButton::getButtonStyle | ( | ) | const |
|
overrideprotectedvirtual |
void chatterino::TitleBarButton::setButtonStyle | ( | TitleBarButtonStyle | style_ | ) |