跳转至

cf::ui::components::material::DefaultAnimationStrategy

Default animation strategy implementation. More...

#include <cfmaterial_animation_strategy.h>

Inherits from cf::ui::components::material::AnimationStrategy

Public Functions

Name
virtual AnimationDescriptor adjust(constAnimationDescriptor & descriptor, QWidget * widget) override
Returns the descriptor unchanged.

Additional inherited members

Public Functions inherited from cf::ui::components::material::AnimationStrategy

Name
virtual ~AnimationStrategy() =default
Virtual destructor.
virtual bool shouldEnable(QWidget * widget) const
Check if animations should be enabled for a widget.
void setGlobalEnabled(bool enabled)
Set the global enabled state for this strategy.
bool globalEnabled() const
Get the global enabled state.

Protected Attributes inherited from cf::ui::components::material::AnimationStrategy

Name
bool globalEnabled_
Global enabled state for animations using this strategy.

Detailed Description

class cf::ui::components::material::DefaultAnimationStrategy;

Default animation strategy implementation.

Since: 0.1

Provides a no-op adjustment that returns the descriptor unchanged. Used when no specific strategy is needed.

This is the default strategy used by MaterialAnimationFactory when no custom strategy is provided via setStrategy().

Public Functions Documentation

function adjust

virtual AnimationDescriptor adjust(
    constAnimationDescriptor & descriptor,
    QWidget * widget
) override

Returns the descriptor unchanged.

Parameters:

  • descriptor The animation descriptor.
  • widget The target widget (unused).

Exceptions:

  • None

Return: The original descriptor, unmodified.

Since: 0.1

Note: None

Warning: None

Reimplements: cf::ui::components::material::AnimationStrategy::adjust


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