[][src]Struct gled::Renderer

pub struct Renderer {
    pub config: Arc<RwLock<RendererConfig>>,
    pub hide_sidepanels: bool,
    pub running: Arc<AtomicBool>,
    pub frozen: Arc<AtomicBool>,
    pub image_svg: Arc<Mutex<Option<Image>>>,
    pub image_live: Arc<Mutex<Option<Image>>>,
    pub image_preview: Arc<Mutex<Option<Image>>>,
    pub live: Arc<Mutex<Option<Image>>>,
    pub preview: Arc<Mutex<Option<Image>>>,
    pub measurement_points: Arc<RwLock<Option<HashMap<String, Vec<MeasurementPoint>>>>>,
    pub palettes_cycle_last: Arc<Mutex<Instant>>,
    pub presets_cycle_last: Arc<Mutex<Instant>>,
    pub render_group_cycle_last: Arc<Mutex<Instant>>,
}

Fields

config: Arc<RwLock<RendererConfig>>hide_sidepanels: boolrunning: Arc<AtomicBool>frozen: Arc<AtomicBool>image_svg: Arc<Mutex<Option<Image>>>image_live: Arc<Mutex<Option<Image>>>image_preview: Arc<Mutex<Option<Image>>>live: Arc<Mutex<Option<Image>>>preview: Arc<Mutex<Option<Image>>>measurement_points: Arc<RwLock<Option<HashMap<String, Vec<MeasurementPoint>>>>>palettes_cycle_last: Arc<Mutex<Instant>>presets_cycle_last: Arc<Mutex<Instant>>render_group_cycle_last: Arc<Mutex<Instant>>

Implementations

impl Renderer[src]

pub fn start(&self)[src]

Start animation thread

pub fn stop(&self)[src]

Stop animation thread

pub fn render_on_context(&self, context: &Context, size: &Size, live: bool)[src]

Plit a rendererd animation onto a given context

pub fn configure(&self)[src]

(Re)Setup surfaces and SVG render.

Trait Implementations

impl Default for Renderer[src]

impl<'de> Deserialize<'de> for Renderer where
    Renderer: Default
[src]

impl Serialize for Renderer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,