flo_ui 0.1.0

Implementation-free user interface description library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::Image;
use super::static_data::*;

use std::sync::*;

///
/// Returns a PNG image built from static data
///
pub fn png_static(data: &'static [u8]) -> Image {
    Image::Png(Arc::new(StaticImageData::new(data)))
}

///
/// Return a SVG image built from static data
///
pub fn svg_static(data: &'static [u8]) -> Image {
    Image::Svg(Arc::new(StaticImageData::new(data)))
}