Trait gtk4::prelude::SnapshotExt

source ·
pub trait SnapshotExt: 'static {
Show 42 methods // Required 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_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_texture(&self, texture: &impl IsA<Texture>, bounds: &Rect); 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_cross_fade(&self, progress: f64); fn push_gl_shader(&self, shader: &GLShader, bounds: &Rect, take_args: Bytes); 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 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 to_node(self) -> Option<RenderNode>; fn to_paintable(self, size: Option<&Size>) -> Option<Paintable>; fn transform(&self, transform: Option<&Transform>); fn transform_matrix(&self, matrix: &Matrix); fn translate(&self, point: &Point); fn translate_3d(&self, point: &Point3D);
}

Required 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_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_texture(&self, texture: &impl IsA<Texture>, bounds: &Rect)

source

fn gl_shader_pop_texture(&self)

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_cross_fade(&self, progress: f64)

source

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

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 render_background( &self, context: &impl IsA<StyleContext>, x: f64, y: f64, width: f64, height: f64 )

source

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

source

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

source

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

source

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

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 to_node(self) -> Option<RenderNode>

source

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

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)

Implementors§