#include <TitleBarButton.h>
|
| | TitleBarButton (QWidget *parent=nullptr) |
| | WQt default constructor.
|
| |
| Q_SIGNAL void | clicked () |
| | Signal for when the image is clicked.
|
| |
| void | setImage (const QImage &img) |
| | Sets the mage for this button.
|
| |
| const QImage & | image () const |
| | Gets the mage for this button.
|
| |
| void | setMargins (QMargins m) |
| | Sets the margins for image within the button.
|
| |
| QMargins | margins () const |
| | Sets the margins for image within the button.
|
| |
|
| void | resizeEvent (QResizeEvent *event) override |
| | Overridden from base class.
|
| |
| void | paintEvent (QPaintEvent *event) override |
| | Overridden from base class.
|
| |
| void | mousePressEvent (QMouseEvent *event) override |
| | Overridden from base class.
|
| |
| void | enterEvent (QEnterEvent *event) override |
| | Overridden from base class.
|
| |
| void | leaveEvent (QEvent *event) override |
| | Overridden from base class.
|
| |
◆ TitleBarButton()
| sf::TitleBarButton::TitleBarButton |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ clicked()
| Q_SIGNAL void sf::TitleBarButton::clicked |
( |
| ) |
|
Signal for when the image is clicked.
◆ enterEvent()
| void sf::TitleBarButton::enterEvent |
( |
QEnterEvent * |
event | ) |
|
|
overrideprotected |
Overridden from base class.
◆ image()
| const QImage & sf::TitleBarButton::image |
( |
| ) |
const |
Gets the mage for this button.
◆ leaveEvent()
| void sf::TitleBarButton::leaveEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
Overridden from base class.
◆ margins()
| QMargins sf::TitleBarButton::margins |
( |
| ) |
const |
Sets the margins for image within the button.
◆ mousePressEvent()
| void sf::TitleBarButton::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
Overridden from base class.
◆ paintEvent()
| void sf::TitleBarButton::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
Overridden from base class.
◆ resizeEvent()
| void sf::TitleBarButton::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
Overridden from base class.
◆ setImage()
| void sf::TitleBarButton::setImage |
( |
const QImage & |
img | ) |
|
Sets the mage for this button.
◆ setMargins()
| void sf::TitleBarButton::setMargins |
( |
QMargins |
m | ) |
|
Sets the margins for image within the button.
The documentation for this class was generated from the following file: