Loading files
use drawing::drawables;
use geometry;
use geometry::schema_elements::*;
pub fn load_text(
position: &geometry::Point2D,
content: &String,
dimension: f32,
orientation: &TextOrientation,
hjustify: Justify,
vjustify: Justify
) -> drawables::TextDrawable {
drawables::TextDrawable {
position: position.clone(),
content: content.clone(),
dimension: dimension,
orientation: orientation.clone(),
hjustify: hjustify,
vjustify: vjustify
}
}15ff55eebThis file is pinned to the selected release. Download the original to open it in your design tool.