MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / main

Function main

examples/src/animated_app.rs:16–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16fn main() {
17 let rust_native = RustUI::new();
18 let theme = create_dark_theme();
19
20 rust_native.run(|| {
21 let animation = animation::Animation::new(0.0, 1.0, Duration::from_secs(1))
22 .with_easing(animation::EasingFunction::EaseInOut);
23
24 let view = View::new()
25 .with_theme(theme)
26 .with_gesture_recognizer(|_recognizer| {})
27 .child(Text::new("Animated Text").with_animation(&animation));
28
29 Box::new(AnimatedApp { view })
30 });
31}

Callers

nothing calls this directly

Calls 4

create_dark_themeFunction · 0.85
with_easingMethod · 0.80
runMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected