game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
RunningGamesIndicator Class Reference

Shows count of running games with quick-stop menu. More...

#include <status_indicators.h>

Inheritance diagram for RunningGamesIndicator:
Collaboration diagram for RunningGamesIndicator:

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_

Detailed Description

Shows count of running games with quick-stop menu.

Definition at line 81 of file status_indicators.h.

Constructor & Destructor Documentation

◆ RunningGamesIndicator()

RunningGamesIndicator::RunningGamesIndicator ( core::LaunchController * launchController,
QWidget * parent = nullptr,
ThemeManager * themeManager = nullptr )
explicit

Member Function Documentation

◆ refresh()

void RunningGamesIndicator::refresh ( )

◆ showGameRequested()

void RunningGamesIndicator::showGameRequested ( const std::string & gameId)

◆ stopGameRequested()

void RunningGamesIndicator::stopGameRequested ( const std::string & gameId)

The documentation for this class was generated from the following files: