Skip to main content

ferroui_base/platform/
i_stream_geometry_builder.rs

1use crate::platform::{IGeometryContext, IGeometryImpl};
2use std::sync::Arc;
3
4/// Builds a geometry using drawing commands.
5pub trait IStreamGeometryBuilder: IGeometryContext {
6    /// Creates the geometry described by the commands issued so far.
7    ///
8    /// Returns the resulting geometry, which is immutable.
9    ///
10    /// This method can only be called once: the context can't be used
11    /// afterwards, except to be disposed.
12    fn to_geometry(&mut self) -> Arc<dyn IGeometryImpl>;
13}