apply_options_actions

Function apply_options_actions 

Source
pub(crate) fn apply_options_actions(
    engine: &mut MilkEngine,
    actions: &OptionsActions,
)
Expand description

Apply one frame’s worth of Options-panel changes to the live engine. Each field of OptionsActions is Some only when the user just moved that widget, so the function is a series of cheap no-ops on quiet frames.

Note: OptionsActions::vsync is handled by the caller because it needs the surface, not the engine.