euv-example 0.3.12

An example application demonstrating the euv UI framework with reactive signals, custom components, and WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::*;

/// Reactive state for a progress bar feature.
#[derive(Clone, Copy, Data, New)]
pub struct UseProgress {
    /// The progress value (0-100).
    #[get(pub, type(copy))]
    #[set(pub)]
    pub value: Signal<i32>,
    /// Whether the progress is currently running.
    #[get(pub, type(copy))]
    #[set(pub)]
    pub running: Signal<bool>,
    /// The active interval handle, if any.
    #[get(pub, type(copy))]
    #[set(pub)]
    pub handle: Signal<Option<IntervalHandle>>,
}