Struct webrender_api::DisplayListBuilder [] [src]

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

Fields

Methods

impl DisplayListBuilder
[src]

[src]

[src]

[src]

Return the content size for this display list

[src]

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.

[src]

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

[src]

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

[src]

[src]

[src]

[src]

[src]

[src]

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

[src]

[src]

[src]

[src]

[src]

[src]

[src]

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 infinitly. 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.

[src]

Pushes a radial gradient to be displayed.

See push_gradient for explanation.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Clone for DisplayListBuilder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more