跳转至

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

class cf::ui::gallery::MotionCardWidget;

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

void playRequested(
    constcf::ui::core::MotionSpec & spec
)

signal playRequested

void playRequested(
    constcf::ui::core::MotionSpec & spec
)

Public Functions Documentation

function MotionCardWidget

explicit MotionCardWidget(
    constcf::ui::core::MotionSpec & spec,
    constQString & name,
    constQString & description,
    QWidget * parent =nullptr
)

function setThemeColors

void setThemeColors(
    constQColor & background,
    constQColor & surface,
    constQColor & onSurface
)

function MotionCardWidget

explicit MotionCardWidget(
    constcf::ui::core::MotionSpec & spec,
    constQString & name,
    constQString & description,
    QWidget * parent =nullptr
)

function setThemeColors

void setThemeColors(
    constQColor & background,
    constQColor & surface,
    constQColor & onSurface
)

function setDarkTheme

inline void setDarkTheme(
    bool dark
)

Protected Functions Documentation

function paintEvent

void paintEvent(
    QPaintEvent * event
) override

function enterEvent

void enterEvent(
    QEnterEvent * event
) override

function leaveEvent

void leaveEvent(
    QEvent * event
) override

function mousePressEvent

void mousePressEvent(
    QMouseEvent * event
) override

function paintEvent

void paintEvent(
    QPaintEvent * event
) override

function enterEvent

void enterEvent(
    QEnterEvent * event
) override

function leaveEvent

void leaveEvent(
    QEvent * event
) override

function mousePressEvent

void mousePressEvent(
    QMouseEvent * event
) override

Updated on 2026-03-09 at 10:14:00 +0000