TDE 0.1.0
 
Loading...
Searching...
No Matches
tde::widgets::AppListCard Class Reference

Application list card. More...

#include <applist.hpp>

Inheritance diagram for tde::widgets::AppListCard:

Signals

void request_launch_app (const app::Info &app)
 Emitted when the app is requested to be launched.
 

Public Member Functions

 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.
 

Detailed Description

Application list card.

Constructor & Destructor Documentation

◆ AppListCard()

tde::widgets::AppListCard::AppListCard ( const QSize &  grid_size,
QWidget *  parent = nullptr 
)

Construct a new App List Card object.

Parameters
grid_sizeSize of the app grid.
parentParent widget

Member Function Documentation

◆ add_app()

void tde::widgets::AppListCard::add_app ( const app::Info app)

Adds an app to the card.

Parameters
appApplication information.

◆ 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
appApplication info.

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