Skip to main content

Ctrl

Trait Ctrl 

Source
pub trait Ctrl: VertexSource {
    // Required methods
    fn num_paths(&self) -> u32;
    fn color(&self, path_id: u32) -> Rgba8;
}
Expand description

Trait for AGG controls that can be rendered as multi-path vertex sources.

Required Methods§

Source

fn num_paths(&self) -> u32

Source

fn color(&self, path_id: u32) -> Rgba8

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§