|
Chatterino
|
#include <Label.hpp>
Public Member Functions | |
| Label (QString text=QString(), FontStyle style=FontStyle::UiMedium) | |
| Label (BaseWidget *parent, QString text=QString(), FontStyle style=FontStyle::UiMedium) | |
| const QString & | getText () const |
| void | setText (const QString &text) |
| FontStyle | getFontStyle () const |
| void | setFontStyle (FontStyle style) |
| bool | getCentered () const |
| void | setCentered (bool centered) |
| bool | getHasOffset () const |
| void | setHasOffset (bool hasOffset) |
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 | |
| virtual void | scaleChangedEvent (float scale_) override |
| virtual void | paintEvent (QPaintEvent *) override |
| virtual QSize | sizeHint () const override |
| virtual QSize | minimumSizeHint () const override |
Protected Member Functions inherited from chatterino::BaseWidget | |
| virtual void | childEvent (QChildEvent *) override |
| virtual void | showEvent (QShowEvent *) override |
| virtual void | themeChangedEvent () |
| virtual void | addShortcuts () |
| void | setScale (float value) |
| void | clearShortcuts () |
Additional Inherited Members | |
Public Attributes inherited from chatterino::BaseWidget | |
| pajlada::Signals::Signal< float > | scaleChanged |
Protected Attributes inherited from chatterino::BaseWidget | |
| Theme * | theme |
| std::vector< QShortcut * > | shortcuts_ |
| pajlada::Signals::SignalHolder | signalHolder_ |
|
explicit |
|
explicit |
| bool chatterino::Label::getCentered | ( | ) | const |
| FontStyle chatterino::Label::getFontStyle | ( | ) | const |
| bool chatterino::Label::getHasOffset | ( | ) | const |
| const QString & chatterino::Label::getText | ( | ) | const |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from chatterino::BaseWidget.
| void chatterino::Label::setCentered | ( | bool | centered | ) |
| void chatterino::Label::setFontStyle | ( | FontStyle | style | ) |
| void chatterino::Label::setHasOffset | ( | bool | hasOffset | ) |
| void chatterino::Label::setText | ( | const QString & | text | ) |
|
overrideprotectedvirtual |
1.8.13