cf::ui::gallery::MotionCardWidget¶
Motion spec card widget. More...
#include <MaterialMotionSpecMainWindow.h>
Inherits from QWidget, QWidget
Public Signals¶
| Name | |
|---|---|
| void | playRequested(constcf::ui::core::MotionSpec & spec) |
| void | playRequested(constcf::ui::core::MotionSpec & spec) |
Public Functions¶
| Name | |
|---|---|
| MotionCardWidget(constcf::ui::core::MotionSpec & spec, constQString & name, constQString & description, QWidget * parent =nullptr) | |
| void | setThemeColors(constQColor & background, constQColor & surface, constQColor & onSurface) |
| MotionCardWidget(constcf::ui::core::MotionSpec & spec, constQString & name, constQString & description, QWidget * parent =nullptr) | |
| void | setThemeColors(constQColor & background, constQColor & surface, constQColor & onSurface) |
| void | setDarkTheme(bool dark) |
Protected Functions¶
| Name | |
|---|---|
| void | paintEvent(QPaintEvent * event) override |
| void | enterEvent(QEnterEvent * event) override |
| void | leaveEvent(QEvent * event) override |
| void | mousePressEvent(QMouseEvent * event) override |
| void | paintEvent(QPaintEvent * event) override |
| void | enterEvent(QEnterEvent * event) override |
| void | leaveEvent(QEvent * event) override |
| void | mousePressEvent(QMouseEvent * event) override |
Detailed Description¶
Motion spec card widget.
Displays information about a single motion preset:
- Name and description
- Duration and easing type
- Visual easing curve preview
- Play button for animation demo
Public Signals Documentation¶
signal playRequested¶
signal playRequested¶
Public Functions Documentation¶
function MotionCardWidget¶
explicit MotionCardWidget(
constcf::ui::core::MotionSpec & spec,
constQString & name,
constQString & description,
QWidget * parent =nullptr
)
function setThemeColors¶
function MotionCardWidget¶
explicit MotionCardWidget(
constcf::ui::core::MotionSpec & spec,
constQString & name,
constQString & description,
QWidget * parent =nullptr
)
function setThemeColors¶
function setDarkTheme¶
Protected Functions Documentation¶
function paintEvent¶
function enterEvent¶
function leaveEvent¶
function mousePressEvent¶
function paintEvent¶
function enterEvent¶
function leaveEvent¶
function mousePressEvent¶
Updated on 2026-03-09 at 10:14:00 +0000