IconSet.renderIconSurface

Warning gtk_icon_set_render_icon_surface has been deprecated since version 3.10 and should not be used in newly-written code. Use GtkIconTheme instead. Renders an icon using gtk_render_icon_pixbuf() and converts it to a cairo surface. This function never returns NULL; if the icon can't be rendered (perhaps because an image file fails to load), a default "missing image" icon will be returned instead.

class IconSet
renderIconSurface

Parameters

context StyleContext

a GtkStyleContext

size GtkIconSize

icon size. A size of (GtkIconSize)-1 means render at the size of the source and don't scale. [type int]

scale int

the window scale to render for

forWindow Window

GdkWindow to optimize drawing for, or NULL. [allow-none]

Return Value

Type: Surface

a cairo_surface_t to be displayed. [transfer full] Since 3.10

Meta