Trait gtk4::prelude::SnapshotExtManual
source · pub trait SnapshotExtManual {
fn append_border(
&self,
outline: &RoundedRect,
border_width: &[f32; 4],
border_color: &[RGBA; 4]
);
fn push_debug(&self, message: &str);
}
Required Methods§
sourcefn append_border(
&self,
outline: &RoundedRect,
border_width: &[f32; 4],
border_color: &[RGBA; 4]
)
fn append_border(
&self,
outline: &RoundedRect,
border_width: &[f32; 4],
border_color: &[RGBA; 4]
)
Appends a stroked border rectangle inside the given @outline.
The four sides of the border can have different widths and colors.
outline
the outline of the border
border_width
the stroke width of the border on the top, right, bottom and left side respectively.
border_color
the color used on the top, right, bottom and left side.
sourcefn push_debug(&self, message: &str)
fn push_debug(&self, message: &str)
Inserts a debug node with a message.
Debug nodes don’t affect the rendering at all, but can be helpful in identifying parts of a render node tree dump, for example in the GTK inspector.
message
a printf-style format string