waterui-ffi 0.3.0

FFI bindings for the WaterUI cross-platform UI framework
use waterui::component::progress::{ProgressConfig, ProgressStyle};

use crate::{WuiAnyView, reactive::WuiComputed};

into_ffi! {ProgressStyle, non_exhaustive,
    pub enum WuiProgressStyle {
        Linear,
        Circular,
        Loading,
    }
}

into_ffi! {
    ProgressConfig,
    pub struct WuiProgress {
        label: *mut WuiAnyView,
        value_label: *mut WuiAnyView,
        value: *mut WuiComputed<f64>,
        style: WuiProgressStyle,
        four_color: bool,
    }
}

ffi_view!(ProgressConfig, WuiProgress, progress);