Function gtk4::render_icon

source ·
pub fn render_icon(
    context: &impl IsA<StyleContext>,
    cr: &Context,
    texture: &impl IsA<Texture>,
    x: f64,
    y: f64
👎Deprecated: Since 4.10
Expand description

Renders the icon in @texture at the specified @x and @y coordinates.

This function will render the icon in @texture at exactly its size, regardless of scaling factors, which may not be appropriate when drawing on displays with high pixel densities.

§Deprecated since 4.10


a StyleContext


a cairo::Context


a gdk::Texture containing the icon to draw


X position for the @texture


Y position for the @texture