Struct widgetry::drawing::Prerender[][src]

pub struct Prerender {
    pub(crate) inner: PrerenderInnards,
    pub(crate) assets: Assets,
    pub(crate) num_uploads: Cell<usize>,
    pub(crate) scale_factor: f64,
}

Fields

inner: PrerenderInnardsassets: Assetsnum_uploads: Cell<usize>scale_factor: f64

Implementations

impl Prerender[src]

pub fn upload(&self, batch: GeomBatch) -> Drawable[src]

pub(crate) fn upload_temporary(&self, batch: GeomBatch) -> Drawable[src]

pub fn get_total_bytes_uploaded(&self) -> usize[src]

fn actually_upload(&self, permanent: bool, batch: GeomBatch) -> Drawable[src]

pub(crate) fn request_redraw(&self)[src]

pub(crate) fn get_scale_factor(&self) -> f64[src]

pub(crate) fn window_size(&self) -> ScreenDims[src]

pub(crate) fn window_resized(&self, new_size: ScreenDims)[src]

pub fn assets_base_url(&self) -> Option<&str>[src]

pub fn assets_are_gzipped(&self) -> bool[src]

Trait Implementations

impl AsRef<Assets> for Prerender[src]

impl AsRef<Prerender> for GfxCtx<'_>[src]

impl AsRef<Prerender> for EventCtx<'_>[src]

impl AsRef<Prerender> for Prerender[src]

Auto Trait Implementations

impl !RefUnwindSafe for Prerender

impl !Send for Prerender

impl !Sync for Prerender

impl Unpin for Prerender

impl !UnwindSafe for Prerender

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> Downcast for T where
    T: Any

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.