Wpalette.toolSourceConfigurable palette-tool. Each tool is a widget that consists of three components:
The action button is only displayed when associated with a callback. Clicking the label toggles the configuration panel, if the tool is active.
inherit Frama_c_gui.Widget.widgetmethod tool : toolSelf cast
method set_status : Frama_c_gui.Widget.icon -> unitmethod set_action : ?icon:Frama_c_gui.Widget.icon ->
?tooltip:string ->
?callback:(unit -> unit) ->
unit ->
unitMakes the action button visible.
method set_content : Frama_c_gui.Widget.widget -> unitShall be used at most once, and before #coerce or #widget.