Package: gtk
Function gtk-icon-info-load-surface
Lambda Listgtk-icon-info-load-surface (info window) ArgumentsReturn ValueA cairo-surface-t instance with the rendered icon. Details
Renders an icon previously looked up in an icon theme using the gtk-icon-theme-lookup-icon function.
The size will be based on the size passed to the gtk-icon-theme-lookup-icon function. Note that the resulting Cairo
surface may not be exactly this size. An icon theme may have icons that
differ slightly from their nominal sizes, and in addition GTK will avoid
scaling icons that it considers sufficiently close to the requested size or
for which the source image would have to be scaled up too far. This maintains sharpness. This behaviour can be changed by passing the :force-size flag when obtaining the gtk-icon-info instance. If this flag has been
specified, the pixbuf returned by this function will be scaled to the exact
size. | See also |
2021-11-28