_gtkTextBufferGet

Get the text into a ObjGtkTextBuffer, between deux positions.

Définit le contenu d'un ObjGtkTextBuffer.

Type :

fun [ObjGtkTextBuffer [I I] I] S

_textbuffer_ : ObjGtk : any textbuffer already created.

_tuple_ : [I I] : range : the position of the start and the position of the end.

_unhidden_ : I : if 1 then include invisible text (special character, etc).

Return : S : the content or nil if error.

Example :

	typeof texte = ObjGtk;;
	typeof buffer = ObjGtkTextBuffer;;
	...
	fun main()=
		_showconsole;
		...
		set buffer = _gtkTextBufferNew _channel;
		set texte = _gtkTextNew _channel buffer;
		_gtkTextSet texte "The Scol language is a GREAT language !" nil;
	
		_fooS strcat "buffer content : " _gtkTextBufferGet buffer [23 28] 0;
		_fooS strcat "text content : " _gtkTextGet texte 0;
		...

Display to console :

	buffer content : GREAT
	text content : The Scol language is a GREAT language !

Back