[go: up one dir, main page]

SnapshotExt

Trait SnapshotExt 

Source
pub trait SnapshotExt: IsA<Snapshot> + 'static {
Show 49 methods // Provided methods fn append_cairo(&self, bounds: &Rect) -> Context { ... } fn append_color(&self, color: &RGBA, bounds: &Rect) { ... } fn append_conic_gradient( &self, bounds: &Rect, center: &Point, rotation: f32, stops: &[ColorStop], ) { ... } fn append_fill(&self, path: &Path, fill_rule: FillRule, color: &RGBA) { ... } fn append_inset_shadow( &self, outline: &RoundedRect, color: &RGBA, dx: f32, dy: f32, spread: f32, blur_radius: f32, ) { ... } fn append_layout(&self, layout: &Layout, color: &RGBA) { ... } fn append_linear_gradient( &self, bounds: &Rect, start_point: &Point, end_point: &Point, stops: &[ColorStop], ) { ... } fn append_node(&self, node: impl AsRef<RenderNode>) { ... } fn append_outset_shadow( &self, outline: &RoundedRect, color: &RGBA, dx: f32, dy: f32, spread: f32, blur_radius: f32, ) { ... } fn append_radial_gradient( &self, bounds: &Rect, center: &Point, hradius: f32, vradius: f32, start: f32, end: f32, stops: &[ColorStop], ) { ... } fn append_repeating_linear_gradient( &self, bounds: &Rect, start_point: &Point, end_point: &Point, stops: &[ColorStop], ) { ... } fn append_repeating_radial_gradient( &self, bounds: &Rect, center: &Point, hradius: f32, vradius: f32, start: f32, end: f32, stops: &[ColorStop], ) { ... } fn append_scaled_texture( &self, texture: &impl IsA<Texture>, filter: ScalingFilter, bounds: &Rect, ) { ... } fn append_stroke(&self, path: &Path, stroke: &Stroke, color: &RGBA) { ... } fn append_texture(&self, texture: &impl IsA<Texture>, bounds: &Rect) { ... } fn to_node(self) -> Option<RenderNode> { ... } fn to_paintable(self, size: Option<&Size>) -> Option<Paintable> { ... } fn gl_shader_pop_texture(&self) { ... } fn perspective(&self, depth: f32) { ... } fn pop(&self) { ... } fn push_blend(&self, blend_mode: BlendMode) { ... } fn push_blur(&self, radius: f64) { ... } fn push_clip(&self, bounds: &Rect) { ... } fn push_color_matrix(&self, color_matrix: &Matrix, color_offset: &Vec4) { ... } fn push_component_transfer( &self, red: &ComponentTransfer, green: &ComponentTransfer, blue: &ComponentTransfer, alpha: &ComponentTransfer, ) { ... } fn push_cross_fade(&self, progress: f64) { ... } fn push_fill(&self, path: &Path, fill_rule: FillRule) { ... } fn push_gl_shader(&self, shader: &GLShader, bounds: &Rect, take_args: Bytes) { ... } fn push_mask(&self, mask_mode: MaskMode) { ... } fn push_opacity(&self, opacity: f64) { ... } fn push_repeat(&self, bounds: &Rect, child_bounds: Option<&Rect>) { ... } fn push_rounded_clip(&self, bounds: &RoundedRect) { ... } fn push_shadow(&self, shadow: &[Shadow]) { ... } fn push_stroke(&self, path: &Path, stroke: &Stroke) { ... } fn render_background( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, width: f64, height: f64, ) { ... } fn render_focus( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, width: f64, height: f64, ) { ... } fn render_frame( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, width: f64, height: f64, ) { ... } fn render_insertion_cursor( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, layout: &Layout, index: i32, direction: Direction, ) { ... } fn render_layout( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, layout: &Layout, ) { ... } fn restore(&self) { ... } fn rotate(&self, angle: f32) { ... } fn rotate_3d(&self, angle: f32, axis: &Vec3) { ... } fn save(&self) { ... } fn scale(&self, factor_x: f32, factor_y: f32) { ... } fn scale_3d(&self, factor_x: f32, factor_y: f32, factor_z: f32) { ... } fn transform(&self, transform: Option<&Transform>) { ... } fn transform_matrix(&self, matrix: &Matrix) { ... } fn translate(&self, point: &Point) { ... } fn translate_3d(&self, point: &Point3D) { ... }
}

Provided Methodsยง

Source

fn append_cairo(&self, bounds: &Rect) -> Context

Source

fn append_color(&self, color: &RGBA, bounds: &Rect)

Source

fn append_conic_gradient( &self, bounds: &Rect, center: &Point, rotation: f32, stops: &[ColorStop], )

Source

fn append_fill(&self, path: &Path, fill_rule: FillRule, color: &RGBA)

Available on crate feature v4_14 only.
Source

fn append_inset_shadow( &self, outline: &RoundedRect, color: &RGBA, dx: f32, dy: f32, spread: f32, blur_radius: f32, )

Source

fn append_layout(&self, layout: &Layout, color: &RGBA)

Source

fn append_linear_gradient( &self, bounds: &Rect, start_point: &Point, end_point: &Point, stops: &[ColorStop], )

Source

fn append_node(&self, node: impl AsRef<RenderNode>)

Source

fn append_outset_shadow( &self, outline: &RoundedRect, color: &RGBA, dx: f32, dy: f32, spread: f32, blur_radius: f32, )

Source

fn append_radial_gradient( &self, bounds: &Rect, center: &Point, hradius: f32, vradius: f32, start: f32, end: f32, stops: &[ColorStop], )

Source

fn append_repeating_linear_gradient( &self, bounds: &Rect, start_point: &Point, end_point: &Point, stops: &[ColorStop], )

Source

fn append_repeating_radial_gradient( &self, bounds: &Rect, center: &Point, hradius: f32, vradius: f32, start: f32, end: f32, stops: &[ColorStop], )

Source

fn append_scaled_texture( &self, texture: &impl IsA<Texture>, filter: ScalingFilter, bounds: &Rect, )

Available on crate feature v4_10 only.
Source

fn append_stroke(&self, path: &Path, stroke: &Stroke, color: &RGBA)

Available on crate feature v4_14 only.
Source

fn append_texture(&self, texture: &impl IsA<Texture>, bounds: &Rect)

Source

fn to_node(self) -> Option<RenderNode>

Source

fn to_paintable(self, size: Option<&Size>) -> Option<Paintable>

Source

fn gl_shader_pop_texture(&self)

๐Ÿ‘ŽDeprecated: Since 4.16
Source

fn perspective(&self, depth: f32)

Source

fn pop(&self)

Source

fn push_blend(&self, blend_mode: BlendMode)

Source

fn push_blur(&self, radius: f64)

Source

fn push_clip(&self, bounds: &Rect)

Source

fn push_color_matrix(&self, color_matrix: &Matrix, color_offset: &Vec4)

Source

fn push_component_transfer( &self, red: &ComponentTransfer, green: &ComponentTransfer, blue: &ComponentTransfer, alpha: &ComponentTransfer, )

Available on crate feature v4_20 only.
Source

fn push_cross_fade(&self, progress: f64)

Source

fn push_fill(&self, path: &Path, fill_rule: FillRule)

Available on crate feature v4_14 only.
Source

fn push_gl_shader(&self, shader: &GLShader, bounds: &Rect, take_args: Bytes)

๐Ÿ‘ŽDeprecated: Since 4.16
Source

fn push_mask(&self, mask_mode: MaskMode)

Available on crate feature v4_10 only.
Source

fn push_opacity(&self, opacity: f64)

Source

fn push_repeat(&self, bounds: &Rect, child_bounds: Option<&Rect>)

Source

fn push_rounded_clip(&self, bounds: &RoundedRect)

Source

fn push_shadow(&self, shadow: &[Shadow])

Source

fn push_stroke(&self, path: &Path, stroke: &Stroke)

Available on crate feature v4_14 only.
Source

fn render_background( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, width: f64, height: f64, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn render_focus( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, width: f64, height: f64, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn render_frame( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, width: f64, height: f64, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn render_insertion_cursor( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, layout: &Layout, index: i32, direction: Direction, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn render_layout( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, layout: &Layout, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn restore(&self)

Source

fn rotate(&self, angle: f32)

Source

fn rotate_3d(&self, angle: f32, axis: &Vec3)

Source

fn save(&self)

Source

fn scale(&self, factor_x: f32, factor_y: f32)

Source

fn scale_3d(&self, factor_x: f32, factor_y: f32, factor_z: f32)

Source

fn transform(&self, transform: Option<&Transform>)

Source

fn transform_matrix(&self, matrix: &Matrix)

Source

fn translate(&self, point: &Point)

Source

fn translate_3d(&self, point: &Point3D)

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง