RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_motion_tween_t Struct Reference

A running curve. More...

#include <motion.h>

Data Fields

uint32_t elapsed_ms
uint32_t duration_ms
rmgui_motion_ease_t ease

Detailed Description

A running curve.

The host starts one by assignment, (rmgui_motion_tween_t){0, duration_ms, ease}, and reads its progress with rmgui_motion_ease(t.ease, t.elapsed_ms, t.duration_ms).

rmgui_motion_tween_t.elapsed_ms

advanced by rmgui_motion_tween_step, never past duration_ms

Field Documentation

◆ elapsed_ms

uint32_t rmgui_motion_tween_t::elapsed_ms

◆ duration_ms

uint32_t rmgui_motion_tween_t::duration_ms

◆ ease

rmgui_motion_ease_t rmgui_motion_tween_t::ease

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