class t :string ->object..end
For examples, buttons use the resources
"button.focused.foreground", "button.unfocused.bold", ... so
their resource class is "button".
method children : t listmethod parent : t optionmethod set_parent : t option -> unitLTerm_widget.t.queue_draw.method can_focus : boolmethod queue_draw : unitLTerm_widget.t.queue_draw method of the parent,
otherwise this does nothing.method set_queue_draw : (unit -> unit) -> unitset_queue_draw f sets the function called when the
LTerm_widget.t.queue_draw method is invoked, for this widget and all its
children.method draw : LTerm_draw.context -> t -> unitdraw ctx focused draws the widget on the given
context. focused is the focused widget.method cursor_position : LTerm_geom.coord optionmethod allocation : LTerm_geom.rectmethod set_allocation : LTerm_geom.rect -> unitmethod send_event : LTerm_event.t -> unitmethod on_event : ?switch:LTerm_widget_callbacks.switch -> (LTerm_event.t -> bool) -> uniton_event ?switch f calls f each time an event is
received. If f returns true, the event is not passed to
other callbacks.method size_request : LTerm_geom.sizemethod resources : LTerm_resources.tmethod set_resources : LTerm_resources.t -> unitmethod resource_class : stringmethod set_resource_class : string -> unitmethod update_resources : unit