Project

General

Profile

Texts » History » Version 4

iri, 03/14/2011 09:27 PM

1 1 iri
h1. Texts
2
3
Widget that displays a text string, typically on multi lines.
4
!>http://library.gnome.org/devel/gtk/2.21/multiline-text.png!
5 4 iri
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.
6
7
{{toc}}
8 1 iri
9
h2. _gtkTextView
10
11
Create a new text object.
12
13
Prototype : *fun [Chn ObjGtkWidget S] [ObjGtkWidgetObjGtkWidget]*
14
15
table.
16
|*channel*|Chn|a channel. Can not be nil|
17
|*buffer*|ObjGtkWidget|a text buffer object. It can be nil; in this case, a default buffer will be created|
18
|*content*|S|an initial content. It can be nil|
19
20
+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.
21 2 iri
22 3 iri
h2. _gtkTextGetBuffer
23
24
Return the current buffer object.
25
26
Prototype : *fun [ObjGtkWidget] ObjGtkWidget*
27
Text object -> buffer object.
28
29 2 iri
Return [[Api]]