pub trait SnapshotExtManual:
Sealed
+ IsA<Snapshot>
+ 'static {
// Provided methods
fn append_border(
&self,
outline: &RoundedRect,
border_width: &[f32; 4],
border_color: &[RGBA; 4],
) { ... }
fn push_debug(&self, message: impl IntoGStr) { ... }
}
Provided 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: impl IntoGStr)
fn push_debug(&self, message: impl IntoGStr)
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
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.