|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Shows count of running games with quick-stop menu. More...
#include <status_indicators.h>
Public Member Functions | |
| RunningGamesIndicator (core::LaunchController *launchController, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| void | refresh () |
| void | showGameRequested (const std::string &gameId) |
| void | stopGameRequested (const std::string &gameId) |
| Public Member Functions inherited from StatusIndicator | |
| StatusIndicator (QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| void | clicked () |
| void | setIcon (const QString &icon) |
| void | setText (const QString &text) |
| void | setTooltipText (const QString &tip) |
Additional Inherited Members | |
| Protected Member Functions inherited from StatusIndicator | |
| void | enterEvent (QEnterEvent *event) override |
| void | leaveEvent (QEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
| void | updateTextColors () |
| Protected Attributes inherited from StatusIndicator | |
| bool | hovered_ = false |
| QLabel * | iconLabel_ = nullptr |
| bool | pressed_ = false |
| QLabel * | textLabel_ = nullptr |
| ThemeManager * | themeManager_ |
Shows count of running games with quick-stop menu.
Definition at line 81 of file status_indicators.h.
|
explicit |
Definition at line 148 of file status_indicators.cpp.
References StatusIndicator::StatusIndicator(), FA::CirclePlay, StatusIndicator::clicked(), refresh(), StatusIndicator::setIcon(), StatusIndicator::setText(), StatusIndicator::setTooltipText(), and IconFont::text().
| void RunningGamesIndicator::refresh | ( | ) |
Definition at line 167 of file status_indicators.cpp.
References StatusIndicator::setText(), and StatusIndicator::setTooltipText().
Referenced by RunningGamesIndicator().
| void RunningGamesIndicator::showGameRequested | ( | const std::string & | gameId | ) |
Referenced by StatusBarContainer::StatusBarContainer().
| void RunningGamesIndicator::stopGameRequested | ( | const std::string & | gameId | ) |
Referenced by StatusBarContainer::StatusBarContainer().