cf::ui::gallery::MotionPreviewWidget¶
Animation preview widget. More...
#include <MaterialMotionSpecMainWindow.h>
Inherits from QWidget, QWidget
Public Signals¶
| Name | |
|---|---|
| void | progressChanged() |
| void | animationFinished() |
| void | progressChanged() |
| void | animationFinished() |
Public Functions¶
| Name | |
|---|---|
| MotionPreviewWidget(constcf::ui::core::MotionSpec & spec, constQString & name, QWidget * parent =nullptr) | |
| float | progress() const |
| void | setProgress(float progress) |
| void | startAnimation() |
| void | resetAnimation() |
| void | setDarkTheme(bool dark) |
| void | updateSpec(constcf::ui::core::MotionSpec & spec) |
| MotionPreviewWidget(constcf::ui::core::MotionSpec & spec, constQString & name, QWidget * parent =nullptr) | |
| float | progress() const |
| void | setProgress(float progress) |
| void | startAnimation() |
| void | resetAnimation() |
| void | setDarkTheme(bool dark) |
| void | updateSpec(constcf::ui::core::MotionSpec & spec) |
Protected Functions¶
| Name | |
|---|---|
| void | paintEvent(QPaintEvent * event) override |
| void | resizeEvent(QResizeEvent * event) override |
| void | paintEvent(QPaintEvent * event) override |
| void | resizeEvent(QResizeEvent * event) override |
Public Properties¶
| Name | |
|---|---|
| float | progress |
Detailed Description¶
Animation preview widget.
Shows a visual representation of the motion spec with an animated ball that demonstrates the easing curve and duration.
Public Signals Documentation¶
signal progressChanged¶
signal animationFinished¶
signal progressChanged¶
signal animationFinished¶
Public Functions Documentation¶
function MotionPreviewWidget¶
explicit MotionPreviewWidget(
constcf::ui::core::MotionSpec & spec,
constQString & name,
QWidget * parent =nullptr
)
function progress¶
function setProgress¶
function startAnimation¶
function resetAnimation¶
function setDarkTheme¶
function updateSpec¶
function MotionPreviewWidget¶
explicit MotionPreviewWidget(
constcf::ui::core::MotionSpec & spec,
constQString & name,
QWidget * parent =nullptr
)
function progress¶
function setProgress¶
function startAnimation¶
function resetAnimation¶
function setDarkTheme¶
function updateSpec¶
Protected Functions Documentation¶
function paintEvent¶
function resizeEvent¶
function paintEvent¶
function resizeEvent¶
Public Property Documentation¶
property progress¶
Updated on 2026-03-09 at 10:14:00 +0000