Struct 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
                           
                    Methods
impl DisplayListBuilder[src]
pub fn new(pipeline_id: PipelineId, content_size: LayoutSize) -> Self[src]
pub fn with_capacity(
    pipeline_id: PipelineId, 
    content_size: LayoutSize, 
    capacity: usize
) -> Self[src]
pipeline_id: PipelineId,
content_size: LayoutSize,
capacity: usize
) -> Self
pub fn content_size(&self) -> LayoutSize[src]
Return the content size for this display list
pub fn save(&mut self)[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.
pub fn restore(&mut self)[src]
Restores the state of the builder to when save() was last called.
pub fn clear_save(&mut self)[src]
Discards the builder's save (indicating the attempted operation was sucessful).
pub fn print_display_list(&mut self)[src]
pub fn push_rect(&mut self, info: &LayoutPrimitiveInfo, color: ColorF)[src]
pub fn push_clear_rect(&mut self, info: &LayoutPrimitiveInfo)[src]
pub fn push_line(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    wavy_line_thickness: f32, 
    orientation: LineOrientation, 
    color: &ColorF, 
    style: LineStyle
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
wavy_line_thickness: f32,
orientation: LineOrientation,
color: &ColorF,
style: LineStyle
)
pub fn push_image(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    stretch_size: LayoutSize, 
    tile_spacing: LayoutSize, 
    image_rendering: ImageRendering, 
    key: ImageKey
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
stretch_size: LayoutSize,
tile_spacing: LayoutSize,
image_rendering: ImageRendering,
key: ImageKey
)
pub fn push_yuv_image(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    yuv_data: YuvData, 
    color_space: YuvColorSpace, 
    image_rendering: ImageRendering
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
yuv_data: YuvData,
color_space: YuvColorSpace,
image_rendering: ImageRendering
)
Push a yuv image. All planar data in yuv image should use the same buffer type.
pub fn push_text(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    glyphs: &[GlyphInstance], 
    font_key: FontInstanceKey, 
    color: ColorF, 
    glyph_options: Option<GlyphOptions>
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
glyphs: &[GlyphInstance],
font_key: FontInstanceKey,
color: ColorF,
glyph_options: Option<GlyphOptions>
)
pub fn create_gradient(
    &mut self, 
    start_point: LayoutPoint, 
    end_point: LayoutPoint, 
    stops: Vec<GradientStop>, 
    extend_mode: ExtendMode
) -> Gradient[src]
&mut self,
start_point: LayoutPoint,
end_point: LayoutPoint,
stops: Vec<GradientStop>,
extend_mode: ExtendMode
) -> Gradient
pub fn create_radial_gradient(
    &mut self, 
    center: LayoutPoint, 
    radius: LayoutSize, 
    stops: Vec<GradientStop>, 
    extend_mode: ExtendMode
) -> RadialGradient[src]
&mut self,
center: LayoutPoint,
radius: LayoutSize,
stops: Vec<GradientStop>,
extend_mode: ExtendMode
) -> RadialGradient
pub fn create_complex_radial_gradient(
    &mut self, 
    start_center: LayoutPoint, 
    start_radius: f32, 
    end_center: LayoutPoint, 
    end_radius: f32, 
    ratio_xy: f32, 
    stops: Vec<GradientStop>, 
    extend_mode: ExtendMode
) -> RadialGradient[src]
&mut self,
start_center: LayoutPoint,
start_radius: f32,
end_center: LayoutPoint,
end_radius: f32,
ratio_xy: f32,
stops: Vec<GradientStop>,
extend_mode: ExtendMode
) -> RadialGradient
pub fn push_border(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    widths: BorderWidths, 
    details: BorderDetails
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
widths: BorderWidths,
details: BorderDetails
)
pub fn push_box_shadow(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    box_bounds: LayoutRect, 
    offset: LayoutVector2D, 
    color: ColorF, 
    blur_radius: f32, 
    spread_radius: f32, 
    border_radius: BorderRadius, 
    clip_mode: BoxShadowClipMode
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
box_bounds: LayoutRect,
offset: LayoutVector2D,
color: ColorF,
blur_radius: f32,
spread_radius: f32,
border_radius: BorderRadius,
clip_mode: BoxShadowClipMode
)
pub fn push_gradient(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    gradient: Gradient, 
    tile_size: LayoutSize, 
    tile_spacing: LayoutSize
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
gradient: Gradient,
tile_size: LayoutSize,
tile_spacing: LayoutSize
)
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.
pub fn push_radial_gradient(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    gradient: RadialGradient, 
    tile_size: LayoutSize, 
    tile_spacing: LayoutSize
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
gradient: RadialGradient,
tile_size: LayoutSize,
tile_spacing: LayoutSize
)
Pushes a radial gradient to be displayed.
See push_gradient for explanation.
pub fn push_stacking_context(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    scroll_policy: ScrollPolicy, 
    transform: Option<PropertyBinding<LayoutTransform>>, 
    transform_style: TransformStyle, 
    perspective: Option<LayoutTransform>, 
    mix_blend_mode: MixBlendMode, 
    filters: Vec<FilterOp>
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
scroll_policy: ScrollPolicy,
transform: Option<PropertyBinding<LayoutTransform>>,
transform_style: TransformStyle,
perspective: Option<LayoutTransform>,
mix_blend_mode: MixBlendMode,
filters: Vec<FilterOp>
)
pub fn pop_stacking_context(&mut self)[src]
pub fn push_stops(&mut self, stops: &[GradientStop])[src]
pub fn define_scroll_frame<I>(
    &mut self, 
    id: Option<ClipId>, 
    content_rect: LayoutRect, 
    clip_rect: LayoutRect, 
    complex_clips: I, 
    image_mask: Option<ImageMask>, 
    scroll_sensitivity: ScrollSensitivity
) -> ClipId where
    I: IntoIterator<Item = ComplexClipRegion>,
    I::IntoIter: ExactSizeIterator + Clone, [src]
&mut self,
id: Option<ClipId>,
content_rect: LayoutRect,
clip_rect: LayoutRect,
complex_clips: I,
image_mask: Option<ImageMask>,
scroll_sensitivity: ScrollSensitivity
) -> ClipId where
I: IntoIterator<Item = ComplexClipRegion>,
I::IntoIter: ExactSizeIterator + Clone,
pub fn define_scroll_frame_with_parent<I>(
    &mut self, 
    id: Option<ClipId>, 
    parent: ClipId, 
    content_rect: LayoutRect, 
    clip_rect: LayoutRect, 
    complex_clips: I, 
    image_mask: Option<ImageMask>, 
    scroll_sensitivity: ScrollSensitivity
) -> ClipId where
    I: IntoIterator<Item = ComplexClipRegion>,
    I::IntoIter: ExactSizeIterator + Clone, [src]
&mut self,
id: Option<ClipId>,
parent: ClipId,
content_rect: LayoutRect,
clip_rect: LayoutRect,
complex_clips: I,
image_mask: Option<ImageMask>,
scroll_sensitivity: ScrollSensitivity
) -> ClipId where
I: IntoIterator<Item = ComplexClipRegion>,
I::IntoIter: ExactSizeIterator + Clone,
pub fn define_clip<I>(
    &mut self, 
    id: Option<ClipId>, 
    clip_rect: LayoutRect, 
    complex_clips: I, 
    image_mask: Option<ImageMask>
) -> ClipId where
    I: IntoIterator<Item = ComplexClipRegion>,
    I::IntoIter: ExactSizeIterator + Clone, [src]
&mut self,
id: Option<ClipId>,
clip_rect: LayoutRect,
complex_clips: I,
image_mask: Option<ImageMask>
) -> ClipId where
I: IntoIterator<Item = ComplexClipRegion>,
I::IntoIter: ExactSizeIterator + Clone,
pub fn define_clip_with_parent<I>(
    &mut self, 
    id: Option<ClipId>, 
    parent: ClipId, 
    clip_rect: LayoutRect, 
    complex_clips: I, 
    image_mask: Option<ImageMask>
) -> ClipId where
    I: IntoIterator<Item = ComplexClipRegion>,
    I::IntoIter: ExactSizeIterator + Clone, [src]
&mut self,
id: Option<ClipId>,
parent: ClipId,
clip_rect: LayoutRect,
complex_clips: I,
image_mask: Option<ImageMask>
) -> ClipId where
I: IntoIterator<Item = ComplexClipRegion>,
I::IntoIter: ExactSizeIterator + Clone,
pub fn define_sticky_frame(
    &mut self, 
    id: Option<ClipId>, 
    frame_rect: LayoutRect, 
    margins: SideOffsets2D<Option<f32>>, 
    vertical_offset_bounds: StickyOffsetBounds, 
    horizontal_offset_bounds: StickyOffsetBounds, 
    previously_applied_offset: LayoutVector2D
) -> ClipId[src]
&mut self,
id: Option<ClipId>,
frame_rect: LayoutRect,
margins: SideOffsets2D<Option<f32>>,
vertical_offset_bounds: StickyOffsetBounds,
horizontal_offset_bounds: StickyOffsetBounds,
previously_applied_offset: LayoutVector2D
) -> ClipId
pub fn push_clip_id(&mut self, id: ClipId)[src]
pub fn push_clip_and_scroll_info(&mut self, info: ClipAndScrollInfo)[src]
pub fn pop_clip_id(&mut self)[src]
pub fn push_iframe(
    &mut self, 
    info: &LayoutPrimitiveInfo, 
    pipeline_id: PipelineId
)[src]
&mut self,
info: &LayoutPrimitiveInfo,
pipeline_id: PipelineId
)
pub fn push_shadow(&mut self, info: &LayoutPrimitiveInfo, shadow: Shadow)[src]
pub fn pop_all_shadows(&mut self)[src]
pub fn finalize(self) -> (PipelineId, LayoutSize, BuiltDisplayList)[src]
Trait Implementations
impl Clone for DisplayListBuilder[src]
fn clone(&self) -> DisplayListBuilder[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more