|
Chatterino
|
#include <NotebookButton.hpp>
Public Types | |
| enum | Icon { None, Plus, User, Settings } |
Public Types inherited from chatterino::Button | |
| enum | Dim { Dim::None, Dim::Some, Dim::Lots } |
Signals | |
| void | leftClicked () |
Signals inherited from chatterino::Button | |
| void | leftClicked () |
| void | clicked (Qt::MouseButton button) |
| void | leftMousePress () |
Public Member Functions | |
| NotebookButton (Notebook *parent) | |
| void | setIcon (Icon icon) |
| Icon | getIcon () const |
Public Member Functions inherited from chatterino::Button | |
| 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) |
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 | themeChangedEvent () override |
| virtual void | paintEvent (QPaintEvent *) override |
| virtual void | mouseReleaseEvent (QMouseEvent *) override |
| virtual void | dragEnterEvent (QDragEnterEvent *) override |
| virtual void | dragLeaveEvent (QDragLeaveEvent *) override |
| virtual void | dropEvent (QDropEvent *) override |
| virtual void | hideEvent (QHideEvent *) override |
| virtual void | showEvent (QShowEvent *) override |
Protected Member Functions inherited from chatterino::Button | |
| virtual void | enterEvent (QEvent *) override |
| virtual void | leaveEvent (QEvent *) override |
| virtual void | mousePressEvent (QMouseEvent *event) override |
| virtual void | mouseMoveEvent (QMouseEvent *event) override |
| void | fancyPaint (QPainter &painter) |
Protected Member Functions inherited from chatterino::BaseWidget | |
| virtual void | childEvent (QChildEvent *) override |
| virtual void | scaleChangedEvent (float newScale) |
| 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::Button | |
| bool | enabled_ {true} |
| bool | selected_ {false} |
| bool | mouseOver_ {false} |
| bool | mouseDown_ {false} |
| bool | menuVisible_ {false} |
Protected Attributes inherited from chatterino::BaseWidget | |
| Theme * | theme |
| std::vector< QShortcut * > | shortcuts_ |
| pajlada::Signals::SignalHolder | signalHolder_ |
|
explicit |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| NotebookButton::Icon chatterino::NotebookButton::getIcon | ( | ) | const |
|
overrideprotectedvirtual |
|
signal |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| void chatterino::NotebookButton::setIcon | ( | Icon | icon | ) |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
1.8.13