Package: gtk
Function gtk-icon-theme-load-surface
Lambda Listgtk-icon-theme-load-surface (theme name size scale window flags) ArgumentsReturn ValueThe rendered icon as a cairo-surface-t instance. Details
Looks up an icon in an icon theme for a particular window scale, scales it
to the given size and renders it into a Cairo surface.
This is a convenience function. If more details about the icon are needed, use the gtk-icon-theme-lookup-icon function followed by the gtk-icon-info-load-surface function. Note that you probably want to listen for icon theme changes and update the icon. This is usually done by connecting to the "style-updated" signal. | See also |
2021-11-28