ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::platform::{IGeometryContext, IGeometryImpl};
use std::sync::Arc;

/// Builds a geometry using drawing commands.
pub trait IStreamGeometryBuilder: IGeometryContext {
    /// Creates the geometry described by the commands issued so far.
    ///
    /// Returns the resulting geometry, which is immutable.
    ///
    /// This method can only be called once: the context can't be used
    /// afterwards, except to be disposed.
    fn to_geometry(&mut self) -> Arc<dyn IGeometryImpl>;
}