Pike v8.0 release 1738

Class GTK1.Text

Inheritance graph
Description

The Text widget allows multiple lines of text to be displayed and edited. It supports both multi-colored and multi-font text, allowing them to be mixed in any way we wish. It also has a wide set of key based text editing commands, which are compatible with Emacs.

The text widget supports full cut-and-paste facilities, including the use of double- and triple-click to select a word and a whole line, respectively.

Bugs:<ul> <li> You cannot add text to the widget before it is realized.</li> </ul>

 GTK1.Text(GTK1.Adjustment(),GTK1.Adjustment())

 function_object(call_out(GTK1.Text(GTK1.Adjustment(),GTK1.Adjustment())->set_text, 0, "Some text")[0])

 function_object(call_out(GTK1.Text(GTK1.Adjustment(),GTK1.Adjustment())->insert, 0, "Some text", 0, GDK1.Color(255,255,0), GDK1.Color(0,0,0))[0])


Inherit Editable

inherit GTK1.Editable : Editable


Method create

GTK1.Text GTK1.Text(GTK1.Adjustment xadjustment, GTK1.Adjustment yadjustment)

Description

Creates a new GTK1.Text widget, initialized with the given Gtk.Adjustments. These pointers can be used to track the viewing position of the GTK1.Text widget. Passing NULL to either or both of them will make the text widget create it's own. You can set these later with the function gtk_text_set_adjustment()