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

Immutable built-in recipe data, in order: hover glow, press pop, lift, attention sine, refusal noise, drag sway. More...

#include <element_motion.h>

Data Fields

const char * name
unsigned channel
rmgui_motion_map_t value
rmgui_motion_map_t alpha
rmgui_motion_map_t shadow_offset
uint16_t alpha_divisor
rmgui_motion_wave_t wave
rmgui_motion_ease_t ease
rmgui_motion_impulse_t impulse
uint16_t full_speed_px_s
uint16_t idle_ms

Detailed Description

Immutable built-in recipe data, in order: hover glow, press pop, lift, attention sine, refusal noise, drag sway.

channel is the existing query bit, or zero for sway. Maps divide the spring's raw Q16 position before mixing. Visual evaluation substitutes live style scale/colour endpoints; alpha.to multiplies the live colour alpha, then divides by alpha_divisor with nearest rounding and clamps to a byte. Shadow offset endpoints are logical pixels, scaled separately before mixing. Sway speed is logical pixels/second and idle is milliseconds. Zero fields are unused.

Field Documentation

◆ name

const char* rmgui_element_motion_recipe_t::name

◆ channel

unsigned rmgui_element_motion_recipe_t::channel

◆ value

rmgui_motion_map_t rmgui_element_motion_recipe_t::value

◆ alpha

rmgui_motion_map_t rmgui_element_motion_recipe_t::alpha

◆ shadow_offset

rmgui_motion_map_t rmgui_element_motion_recipe_t::shadow_offset

◆ alpha_divisor

uint16_t rmgui_element_motion_recipe_t::alpha_divisor

◆ wave

rmgui_motion_wave_t rmgui_element_motion_recipe_t::wave

◆ ease

rmgui_motion_ease_t rmgui_element_motion_recipe_t::ease

◆ impulse

rmgui_motion_impulse_t rmgui_element_motion_recipe_t::impulse

◆ full_speed_px_s

uint16_t rmgui_element_motion_recipe_t::full_speed_px_s

◆ idle_ms

uint16_t rmgui_element_motion_recipe_t::idle_ms

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