Package: gtk
Class gtk:icon-theme
Superclassesgobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk:icon-theme class provides a facility for looking up icons
by name and size.
The main reason for using a name rather than simply providing a filename is
to allow different icons to be used depending on what icon theme is selected
by the user. The operation of icon themes on Linux and Unix follows the Icon
Theme Specification. There is a default icon theme, named Hicolor where
applications should install their icons, but more additional application
themes can be installed as operating system vendors and users choose. In many cases, named themes are used indirectly, via the gtk:image widget rather than directly, but looking up icons directly is also simple. The gtk:icon-theme object acts as a database of all the icons in the current theme. You can create new gtk:icon-theme objects, but it is much more efficient to use the standard icon theme of the gtk:widget widget so that the icon information is shared with other people looking up icons. Examples(let* ((theme (gtk:icon-theme-for-display (gdk:display-default))) (paintable (gtk:icon-theme-lookup-icon theme "gtk-ok" ; icon name nil ; fallbacks 48 ; size 1 ; scale :none))) ; no flags ... ) Signal DetailsThe "changed" signallambda (theme) :run-last
| Slot Access Functions
Inherited Slot Access FunctionsSee also |
2023-8-30