psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::Motion Struct Reference

#include <Theme.hpp>

Public Member Functions

constexpr Timing quick () const
constexpr Timing moderate () const
constexpr Timing arrive () const
constexpr Timing enter () const
constexpr Timing leave () const

Public Attributes

std::chrono::milliseconds fast {100}
std::chrono::milliseconds medium {150}
std::chrono::milliseconds slow {240}
Ease standard {Ease::Standard}
Ease out {.x1 = 0.16f, .y1 = 1.0f, .x2 = 0.3f, .y2 = 1.0f}
Spring spring {.stiffness = 500.0f, .damping = 40.0f}

Detailed Description

How things move, by role: Pivotal's durations (--duration-fast, --duration-medium) and curve (--ease-out-quick), "quick and barely noticeable, or it reads as sluggish", and a spring for what is thrown or dragged. A window that reduces motion makes them all instant.


The documentation for this struct was generated from the following file: