[][src]Struct webrender_api::DisplayListBuilder

pub struct DisplayListBuilder {
    pub data: Vec<u8>,
    pub pipeline_id: PipelineId,
    // some fields omitted
}

Fields

Methods

impl DisplayListBuilder
[src]

Return the content size for this display list

Saves the current display list state, so it may be restore()'d.

Conditions:

  • Doesn't support popping clips that were pushed before the save.
  • Doesn't support nested saves.
  • Must call clear_save() if the restore becomes unnecessary.

Restores the state of the builder to when save() was last called.

Discards the builder's save (indicating the attempted operation was successful).

Print the display items in the list to stderr. If the start parameter is specified, only display items starting at that index (inclusive) will be printed. If the end parameter is specified, only display items before that index (exclusive) will be printed. Calling this function with end <= start is allowed but is just a waste of CPU cycles. This function returns the total number of items in the display list, which allows the caller to subsequently invoke this function to only dump the newly-added items.

Add an item to the display list.

NOTE: It is usually preferable to use the specialized methods to push display items. Pushing unexpected or invalid items here may result in WebRender panicking or behaving in unexpected ways.

Push items from an iterator to the display list.

NOTE: Pushing unexpected or invalid items to the display list may result in panic and confusion.

Push a yuv image. All planar data in yuv image should use the same buffer type.

NOTE: gradients must be pushed in the order they're created because create_gradient stores the stops in anticipation.

NOTE: gradients must be pushed in the order they're created because create_gradient stores the stops in anticipation.

Pushes a linear gradient to be displayed.

The gradient itself is described in the gradient parameter. It is drawn on a "tile" with the dimensions from tile_size. These tiles are now repeated to the right and to the bottom infinitely. If tile_spacing is not zero spacers with the given dimensions are inserted between the tiles as seams.

The origin of the tiles is given in info.rect.origin. If the gradient should only be displayed once limit the info.rect.size to a single tile. The gradient is only visible within the local clip.

Pushes a radial gradient to be displayed.

See push_gradient for explanation.

Trait Implementations

impl Clone for DisplayListBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for DisplayListBuilder

impl Sync for DisplayListBuilder

Blanket Implementations

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

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

Mutably borrows from an owned value. Read more

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more