[][src]Enum azul_webrender_api::ApiMsg

pub enum ApiMsg {
    UpdateResources(Vec<ResourceUpdate>),
    GetGlyphDimensions(FontInstanceKeyVec<GlyphIndex>, Sender<Vec<Option<GlyphDimensions>>>),
    GetGlyphIndices(FontKeyStringSender<Vec<Option<u32>>>),
    CloneApi(Sender<IdNamespace>),
    CloneApiByClient(IdNamespace),
    AddDocument(DocumentIdDeviceIntSizeDocumentLayer),
    UpdateDocuments(Vec<DocumentId>, Vec<TransactionMsg>),
    DeleteDocument(DocumentId),
    ExternalEvent(ExternalEvent),
    ClearNamespace(IdNamespace),
    MemoryPressure,
    ReportMemory(Sender<Box<MemoryReport>>),
    DebugCommand(DebugCommand),
    WakeUp,
    WakeSceneBuilder,
    FlushSceneBuilder(Sender<()>),
    ShutDown(Option<Sender<()>>),
}

Message sent by the RenderApi to the render backend thread.

Variants

UpdateResources(Vec<ResourceUpdate>)

Add/remove/update images and fonts.

Gets the glyph dimensions

GetGlyphIndices(FontKeyStringSender<Vec<Option<u32>>>)

Gets the glyph indices from a string

CloneApi(Sender<IdNamespace>)

Adds a new document namespace.

CloneApiByClient(IdNamespace)

Adds a new document namespace.

Adds a new document with given initial size.

UpdateDocuments(Vec<DocumentId>, Vec<TransactionMsg>)

A message targeted at a particular document.

DeleteDocument(DocumentId)

Deletes an existing document.

ExternalEvent(ExternalEvent)

An opaque handle that must be passed to the render notifier. It is used by Gecko to forward gecko-specific messages to the render thread preserving the ordering within the other messages.

ClearNamespace(IdNamespace)

Removes all resources associated with a namespace.

MemoryPressure

Flush from the caches anything that isn't necessary, to free some memory.

ReportMemory(Sender<Box<MemoryReport>>)

Collects a memory report.

DebugCommand(DebugCommand)

Change debugging options.

WakeUp

Wakes the render backend's event loop up. Needed when an event is communicated through another channel.

WakeSceneBuilder

See RenderApi::wake_scene_builder.

FlushSceneBuilder(Sender<()>)

Block until a round-trip to the scene builder thread has completed. This ensures that any transactions (including ones deferred to the scene builder thread) have been processed.

ShutDown(Option<Sender<()>>)

Shut the WebRender instance down.

Trait Implementations

impl Clone for ApiMsg[src]

impl Debug for ApiMsg[src]

impl<'de> Deserialize<'de> for ApiMsg[src]

impl Serialize for ApiMsg[src]

Auto Trait Implementations

impl !RefUnwindSafe for ApiMsg

impl Send for ApiMsg

impl !Sync for ApiMsg

impl Unpin for ApiMsg

impl !UnwindSafe for ApiMsg

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.