fui_core 0.18.0

Core library of FUI MVVM UI Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use fui_drawing::{DrawingDisplayListBuilder, DrawingFonts};

pub struct FuiDrawingContext<'a> {
    // currently ViewModel's thread is different than GUI's thread
    // and cannot use DrawingContextGl from ViewModel's thread
    // TODO: maybe put here some proxy object to DrawingContextGl
    // to allow creating textures and fragment programs
    //pub context: &'a mut DrawingContextGl,
    pub fonts: &'a mut DrawingFonts,

    /// Here controls can draw it's content
    pub display: &'a mut DrawingDisplayListBuilder,
}