Skip to main content

IServerCompositionGeometry

Trait IServerCompositionGeometry 

Source
pub trait IServerCompositionGeometry {
    // Required methods
    fn platform_geometry(&self) -> Option<Arc<dyn IGeometryImpl>>;
    fn geometry_props(&self) -> &ServerCompositionGeometryProps;
}
Expand description

What the shapes and clips need from a server-side geometry.

Required Methods§

Source

fn platform_geometry(&self) -> Option<Arc<dyn IGeometryImpl>>

The platform geometry with the trimming applied, cached until a member of the geometry changes. None when there is nothing to draw (no path, or a trim that leaves nothing) or when the compositor has no render interface.

Source

fn geometry_props(&self) -> &ServerCompositionGeometryProps

The properties of CompositionGeometry (the trimming).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§