Texts » History » Revision 5
« Previous |
Revision 5/31
(diff)
| Next »
iri, 03/14/2011 10:06 PM
- Table of contents
- Texts
Texts¶
Widget that displays a text string, typically on multi lines.
A text object can be seen as a container. Each text object has a buffer object. The buffer object stores the content (the string). You can change buffer object to a same text object.
_gtkTextView¶
Create a new text object.
Prototype : fun [Chn ObjGtkWidget S] [ObjGtkWidgetObjGtkWidget]
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.
_gtkTextGetBuffer¶
Return the current buffer object.
Prototype : fun [ObjGtkWidget] ObjGtkWidget
Text object -> buffer object.
_gtkTextGetEditable¶
Return if a text object is editable or not.
Prototype : fun [ObjGtkWidget] I
Return : I : 1 if editable, else 0. Nil if error (object is nil).
Return Api
Updated by iri almost 14 years ago · 5 revisions