package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Icon_paintable/index.html
Module Wrappers.Icon_paintable
type t = [ `icon_paintable | `object_ ] Gobject.objval new_for_file : Ocgtk_gio.Gio.Wrappers.File.t -> int -> int -> tCreate a new IconPaintable
val is_symbolic : t -> boolChecks if the icon is symbolic or not.
This currently uses only the file name and not the file contents for determining this. This behaviour may change in the future.
Note that to render a symbolic `GtkIconPaintable` properly (with recoloring), you have to set its icon name on a `GtkImage`.
val get_icon_name : t -> string optionGet the icon name being used for this icon.
When an icon looked up in the icon theme was not available, the icon theme may use fallback icons - either those specified to gtk_icon_theme_lookup_icon() or the always-available "image-missing". The icon chosen is returned by this function.
If the icon was created without an icon theme, this function returns %NULL.
val get_file : t -> Ocgtk_gio.Gio.Wrappers.File.t optionGets the `GFile` that was used to load the icon.
Returns %NULL if the icon was not loaded from a file.