rust_native 1.4.0

A modern, cross-platform UI framework for building native applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::style::{Style, Color};

mod default;
#[cfg(test)]
mod mock;

pub use default::DefaultRenderer;

pub trait Renderer {
    fn clear(&mut self, color: Color);
    fn begin_group(&mut self, style: &Style);
    fn end_group(&mut self);
    fn draw_text(&mut self, text: &str, style: &Style);
    fn translate(&mut self, x: f32, y: f32);
}