Trait gtk4::prelude::SnapshotExtManual

source ·
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§

source

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.

source

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

Object Safety§

This trait is not object safe.

Implementors§