package frama-c

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Some generic icon management tools.

  • since Carbon-20101201
type kind =
  1. | Frama_C
  2. | Unmark
  3. | Fold
  4. | Unfold
  5. | Custom of string
  6. | Feedback of Frama_c_kernel.Property_status.Feedback.t
    (*

    Generic icons available in every proper install of Frama-C. To be able to use Custom s you must have called register ~name:s ~file, otherwise you will get a generic icon placeholder.

    *)
val register : name:string -> file:string -> unit

register ~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.pixbuf
  • returns

    the pixbuf associated to the given kind. If the given kind is Custom 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 -> unit

Reloads the builtin icons from the theme specified in the configuration. Used when the theme is changed.

  • since Chlorine-20180501
OCaml

Innovation. Community. Security.