dardan_ui 0.1.1

A simple GUI Toolkit based on SDL2. The goal is for it to be easy to use and be similar to GUI Toolkits for OO languages.
Documentation
1
2
3
4
5
6
7
use std::sync::{Arc, RwLock};

pub type UiCell<T> = Arc<RwLock<T>>;

pub fn new_ui_cell<T>(val: T) -> UiCell<T> {
    Arc::new(RwLock::new(val))
}