|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
One element's motion state. More...
#include <element_motion.h>
Data Fields | |
| rmgui_motion_spring_t | hover |
| rmgui_motion_spring_t | press |
| rmgui_motion_spring_t | lift |
| rmgui_motion_tween_t | shake |
| rmgui_motion_tween_t | refusal |
| uint32_t | shake_ms |
| uint32_t | refusal_ms |
| uint32_t | refusal_seed |
| unsigned | levels |
One element's motion state.
Members are private: the host reads and writes it only through the functions below, and may copy it by value.
rmgui_element_motion_t.hover, rmgui_element_motion_t.press, rmgui_element_motion_t.lift
progress on a scaled target
rmgui_element_motion_t.shake, rmgui_element_motion_t.refusal
decay envelope of each shake
rmgui_element_motion_t.shake_ms, rmgui_element_motion_t.refusal_ms
wave phase: ms since the trigger
| rmgui_motion_spring_t rmgui_element_motion_t::hover |
| rmgui_motion_spring_t rmgui_element_motion_t::press |
| rmgui_motion_spring_t rmgui_element_motion_t::lift |
| rmgui_motion_tween_t rmgui_element_motion_t::shake |
| rmgui_motion_tween_t rmgui_element_motion_t::refusal |
| uint32_t rmgui_element_motion_t::shake_ms |
| uint32_t rmgui_element_motion_t::refusal_ms |
| uint32_t rmgui_element_motion_t::refusal_seed |
| unsigned rmgui_element_motion_t::levels |