Function gtk4::render_icon
source · pub fn render_icon(
context: &impl IsA<StyleContext>,
cr: &Context,
texture: &impl IsA<Texture>,
x: f64,
y: f64
)
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
context
cr
texture
a gdk::Texture
containing the icon to draw
x
X position for the @texture
y
Y position for the @texture