ChatInput


Object Hierarchy:

Object hierarchy for ChatInput

Description:

public class ChatInput : Box

Chat composer: one expanding TextView with play on the right when single-line; play moves to ChatBar when text needs a second line.

Height is owned by scrolled (TextView buffer.changed → content_height, capped by ScrolledView.max_height). Compact vs expanded chrome follows ScrolledView.lines_changed. ChatWidget wires send and footer play visibility via expanded_changed.

Usage Examples

Wire send and footer play

  var input = new OLLMchatGtk.ChatInput();
input.send_clicked.connect((text) => { … });
input.expanded_changed.connect((expanded) => {
chat_bar.composer_expanded = expanded;
chat_bar.action_button.visible = streaming || expanded;
});

Since:

1.0


Namespace: OLLMchatGtk
Package: ollmchat

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Box
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.Orientable