Struct azul_webrender_api::DisplayListBuilder[][src]

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

Fields

data: Vec<u8>pipeline_id: PipelineId

Implementations

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

Emits a debug representation of display items in the list, for debugging purposes. If the range’s start parameter is specified, only display items starting at that index (inclusive) will be printed. If the range’s 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. The function emits the debug representation of the selected display items, one per line, with the given indent, to the provided sink object. The return value is 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.

Print the display items in the list to stdout.

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.

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 layout.rect.origin. If the gradient should only be displayed once limit the layout.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.

Pushes a conic gradient to be displayed.

See push_gradient for explanation.

Helper for examples/ code.

Helper for examples/ code.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.