UiWidgets


Object Hierarchy:

Object hierarchy for UiWidgets

Description:

public interface UiWidgets : Object

Optional chrome for a tool: toggle metadata, host view, and show request.

Implemented only by tools that need UI. view_widget is GLib.Object so OLLMchat stays GTK-free; the shell casts to Gtk.Widget. The shell / OLLMchatGtk.ChatBar owns the toggle button and visibility — the tool emits show_view when the user must see the host.

Example

public class MyTool : BaseTool, UiWidgets {
public string icon_name { get { return "web-browser-symbolic"; } }
public string tooltip_text { get { return "Browser"; } }
public GLib.Object view_widget { get { return this.host; } }

void on_challenge() {
this.show_view();
}
}

All known implementing classes:

Namespace: OLLMchat.Tool
Package: ollmchat

Content:

Properties:

Signals:

Inherited Members:

All known members inherited from class GLib.Object