Application list card.
More...
#include <applist.hpp>
|
| AppListCard (const QSize &grid_size, QWidget *parent=nullptr) |
| Construct a new App List Card object.
|
|
void | add_app (const app::Info &app) |
| Adds an app to the card.
|
|
TDE_INLINE auto | app_count () const |
| Returns the number of apps in the card.
|
|
TDE_INLINE auto | app_size () const |
| Returns the size of the app grid.
|
|
TDE_INLINE auto | is_full () const |
| Checks if the card is full.
|
|
◆ AppListCard()
tde::widgets::AppListCard::AppListCard |
( |
const QSize & |
grid_size, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Construct a new App List Card object.
- Parameters
-
grid_size | Size of the app grid. |
parent | Parent widget |
◆ add_app()
void tde::widgets::AppListCard::add_app |
( |
const app::Info & |
app | ) |
|
Adds an app to the card.
- Parameters
-
◆ app_count()
TDE_INLINE auto tde::widgets::AppListCard::app_count |
( |
| ) |
const |
|
inline |
Returns the number of apps in the card.
- Returns
- int Number of apps.
◆ app_size()
TDE_INLINE auto tde::widgets::AppListCard::app_size |
( |
| ) |
const |
|
inline |
Returns the size of the app grid.
- Returns
- int Size of the app grid.
◆ is_full()
TDE_INLINE auto tde::widgets::AppListCard::is_full |
( |
| ) |
const |
|
inline |
Checks if the card is full.
- Returns
- bool True if the card is full, false otherwise.
◆ request_launch_app
void tde::widgets::AppListCard::request_launch_app |
( |
const app::Info & |
app | ) |
|
|
signal |
Emitted when the app is requested to be launched.
- Parameters
-
The documentation for this class was generated from the following files:
- include/tde/widgets/applist.hpp
- src/widgets/applist.cpp