Texts » History » Revision 3
Revision 2 (iri, 03/13/2011 06:47 PM) → Revision 3/31 (iri, 03/14/2011 08:41 PM)
h1. Texts
Widget that displays a text string, typically on multi lines.
!>http://library.gnome.org/devel/gtk/2.21/multiline-text.png!
h2. _gtkTextView
Create a new text object.
Prototype : *fun [Chn ObjGtkWidget S] [ObjGtkWidgetObjGtkWidget]*
table.
|*channel*|Chn|a channel. Can not be nil|
|*buffer*|ObjGtkWidget|a text buffer object. It can be nil; in this case, a default buffer will be created|
|*content*|S|an initial content. It can be nil|
+Return+ : [ObjGtkWidget ObjGtkWidget] : the new text object and the buffer text object. If _buffer_ was not nil, this will be the same, otherwise, it will be a new buffer text object too.
h2. _gtkTextGetBuffer
Return the current buffer object.
Prototype : *fun [ObjGtkWidget] ObjGtkWidget*
Text object -> buffer object.
Return [[Api]]