[][src]Enum webrender_api::ApiMsg

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

Variants

UpdateResources(Vec<ResourceUpdate>)

Add/remove/update images and fonts.

GetGlyphDimensions(FontInstanceKeyVec<GlyphIndex>, MsgSender<Vec<Option<GlyphDimensions>>>)

Gets the glyph dimensions

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

Gets the glyph indices from a string

CloneApi(MsgSender<IdNamespace>)

Adds a new document namespace.

CloneApiByClient(IdNamespace)

Adds a new document namespace.

AddDocument(DocumentIdDeviceIntSizeDocumentLayer)

Adds a new document with given initial size.

UpdateDocument(DocumentIdTransactionMsg)

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(MsgSender<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.

WakeSceneBuilderFlushSceneBuilder(MsgSender<()>)ShutDown

Trait Implementations

impl Clone for ApiMsg[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ApiMsg[src]

impl Serialize for ApiMsg[src]

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

Auto Trait Implementations

impl Send for ApiMsg

impl !Sync for ApiMsg

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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