module Icon:sig..end
Some generic icon management tools.
type kind =
| |
Frama_C |
|||
| |
Unmark |
|||
| |
Fold |
|||
| |
Unfold |
|||
| |
Custom of |
|||
| |
Feedback of |
(* | Generic icons available in every proper install of Frama-C.
To be able to use | *) |
val register : name:string -> file:string -> unitregister ~name ~file registers the kind Custom name associated
to the filename file.
$FRAMAC_SHARE/f should point to an existing file containing
an image loadable by GdkPixbuf.
val get : kind -> GdkPixbuf.pixbufCustom s and no one ever called
register ~name:s ~file where file is such that
$(FRAMAC_SHARE)/f is not a real image file loadable by GdkPixbuf,
a generic icon placeholder is returned.val default : unit -> GdkPixbuf.pixbuf
val clear : unit -> unitReloads the builtin icons from the theme specified in the configuration. Used when the theme is changed.