|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
A pulsing skeleton placeholder widget. More...
#include <loading_widgets.h>
Public Member Functions | |
| SkeletonWidget (const QSize &size, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| SkeletonWidget (int width, int height, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| ~SkeletonWidget () override=default | |
| void | setBaseColor (const QColor &color) |
| void | setCornerRadius (int radius) |
| void | setHighlightColor (const QColor &color) |
| void | setShimmerOffset (qreal offset) |
| qreal | shimmerOffset () const |
| void | startAnimation () |
| void | stopAnimation () |
Protected Member Functions | |
| void | hideEvent (QHideEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
| void | showEvent (QShowEvent *event) override |
A pulsing skeleton placeholder widget.
Shows an animated gradient that pulses to indicate loading. Used as a placeholder while content is being fetched.
Usage: auto* skeleton = new SkeletonWidget(200, 30); // width x height layout->addWidget(skeleton); // Later, replace with actual content
Definition at line 38 of file loading_widgets.h.
|
explicit |
Definition at line 23 of file loading_widgets.cpp.
Referenced by SkeletonWidget().
|
explicit |
Definition at line 37 of file loading_widgets.cpp.
References SkeletonWidget().
|
overridedefault |
|
overrideprotected |
Definition at line 74 of file loading_widgets.cpp.
References stopAnimation().
|
overrideprotected |
Definition at line 80 of file loading_widgets.cpp.
|
inline |
Definition at line 55 of file loading_widgets.h.
|
inline |
Definition at line 50 of file loading_widgets.h.
|
inline |
Definition at line 60 of file loading_widgets.h.
|
inline |
Definition at line 70 of file loading_widgets.h.
|
inline |
Definition at line 66 of file loading_widgets.h.
|
overrideprotected |
Definition at line 68 of file loading_widgets.cpp.
References startAnimation().
| void SkeletonWidget::startAnimation | ( | ) |
Definition at line 52 of file loading_widgets.cpp.
Referenced by showEvent().
| void SkeletonWidget::stopAnimation | ( | ) |
Definition at line 60 of file loading_widgets.cpp.
Referenced by hideEvent().