slint/api/sixtyfps-rs/lib.rs
Simon Hausmann 23d3964a0d Add boilerplate for text items
Forward the text and color properties to the rendering backend, where
right now we just rendering all the glyphs into a dedicated texture.

Next steps are a glyph atlas texture, blending the specified color with
the alpha of the glyphs, configurable size and family, shaping with
Harfbuzz and may more things.
2020-05-18 19:04:12 +02:00

15 lines
598 B
Rust

pub use sixtyfps_rs_macro::sixtyfps;
/// internal re_exports used by the macro generated
pub mod re_exports {
pub use const_field_offset::{self, FieldOffsets};
pub use corelib::abi::datastructures::{Component, ComponentTO, ComponentVTable, ItemTreeNode};
pub use corelib::abi::primitives::{
Image, ImageVTable, Rectangle, RectangleVTable, Text, TextVTable,
};
pub use corelib::ComponentVTable_static;
pub use corelib::SharedString;
pub use gl::sixtyfps_runtime_run_component_with_gl_renderer;
pub use once_cell::sync::Lazy;
pub use vtable::{self, *};
}