CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
animations.cppm File Reference
#include <tracy/Tracy.hpp>
import cydui.interpolation;
import cydui.animations.complexity;
import cydui.components.base;
import fabric.wiring.signals;
import fabric.async;
import cydui.easing_functions;
import fabric.logging;
import std;
+ Include dependency graph for animations.cppm:

Go to the source code of this file.

Classes

struct  std::hash< cydui::property_id_t >
 
struct  cydui::property_timeline_t
 
class  cydui::keyframe
 
class  cydui::keyframe::properties_base_t
 
class  cydui::keyframe::properties_t< PropertiesType >
 
struct  cydui::animation_opts
 
class  cydui::animation_data
 
class  cydui::animation
 
struct  cydui::animation_state
 
class  cydui::AnimationSystem
 

Namespaces

namespace  cydui
 

Macros

#define ANONYMOUS_STRUCT(...)
 
#define KEYFRAME(POS, ...)
 
#define AUTO_KEYFRAME(POS, ...)
 

Typedefs

using cydui::property_id_t = std::pair<refl::type_id_t, std::string>
 
using cydui::property_timeline_map_t = std::unordered_map<property_id_t, property_timeline_t>
 
using cydui::keyframe_list = std::initializer_list<keyframe>
 

Functions

void cydui::animate (const components::component_base_t::sptr &component, animation &anim)
 

Macro Definition Documentation

◆ ANONYMOUS_STRUCT

#define ANONYMOUS_STRUCT ( ...)
Value:
decltype([&] { \
struct _anon_ __VA_ARGS__; \
return _anon_{}; \
}())

Definition at line 7 of file animations.cppm.

◆ AUTO_KEYFRAME

#define AUTO_KEYFRAME ( POS,
... )
Value:
{POS, keyframe::make(ANONYMOUS_STRUCT(__VA_ARGS__){})}
#define ANONYMOUS_STRUCT(...)

Definition at line 14 of file animations.cppm.

◆ KEYFRAME

#define KEYFRAME ( POS,
... )
Value:
{POS, keyframe::make(__VA_ARGS__)}

Definition at line 13 of file animations.cppm.