Function cosmic::iced_winit::application::update
source ยท pub fn update<A, C, E>(
application: &mut A,
compositor: &mut C,
surface: &mut <C as Compositor>::Surface,
cache: &mut Cache,
state: &mut State<A>,
renderer: &mut <A as Program>::Renderer,
runtime: &mut Runtime<E, Proxy<UserEventWrapper<<A as Program>::Message>>, UserEventWrapper<<A as Program>::Message>>,
clipboard: &mut Clipboard<<A as Program>::Message>,
should_exit: &mut bool,
proxy: &mut EventLoopProxy<UserEventWrapper<<A as Program>::Message>>,
debug: &mut Debug,
messages: &mut Vec<<A as Program>::Message>,
window: &Window,
)where
A: Application + 'static,
E: Executor + 'static,
C: Compositor<Renderer = <A as Program>::Renderer> + 'static,
<A as Program>::Theme: StyleSheet,
Expand description
Updates an Application
by feeding it the provided messages, spawning any
resulting Command
, and tracking its Subscription
.