---
name: "GText"
section: "3o"
platform: "linux"
package: "liblablgtk2-ocaml-doc"
version: "2.4.0v0.2tv-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/GText"
---

# GText(3o)

The text widget and associated objects

## NAME

GText - The text widget and associated objects

## Module

Module   GText

## Documentation

Module **GText**\
  :  **sig end**

The text widget and associated objects

**=== The text widget and associated objects ===**

*type mark* =  **\[ \`INSERT \| \`MARK of Gtk.text\_mark \| \`NAME of string \| \`SEL\_BOUND \]**

*class child\_anchor :* **Gtk.text\_child\_anchor -\> object end**

*val child\_anchor* :  **unit -\> child\_anchor**

**===** **GtkTextTag** **===**

*type tag\_property* =  **\[ \`BACKGROUND of string** **\| \`BACKGROUND\_FULL\_HEIGHT of bool** **\| \`BACKGROUND\_FULL\_HEIGHT\_SET of bool** **\| \`BACKGROUND\_GDK of Gdk.color** **\| \`BACKGROUND\_SET of bool** **\| \`BACKGROUND\_STIPPLE of Gdk.bitmap** **\| \`BACKGROUND\_STIPPLE\_SET of bool** **\| \`DIRECTION of Gtk.Tags.text\_direction** **\| \`EDITABLE of bool** **\| \`EDITABLE\_SET of bool** **\| \`FAMILY of string** **\| \`FAMILY\_SET of bool** **\| \`FONT of string** **\| \`FONT\_DESC of Pango.font\_description** **\| \`FOREGROUND of string** **\| \`FOREGROUND\_GDK of Gdk.color** **\| \`FOREGROUND\_SET of bool** **\| \`FOREGROUND\_STIPPLE of Gdk.bitmap** **\| \`FOREGROUND\_STIPPLE\_SET of bool** **\| \`INDENT of int** **\| \`INDENT\_SET of bool** **\| \`INVISIBLE of bool** **\| \`INVISIBLE\_SET of bool** **\| \`JUSTIFICATION of Gtk.Tags.justification** **\| \`JUSTIFICATION\_SET of bool** **\| \`LANGUAGE of string** **\| \`LANGUAGE\_SET of bool** **\| \`LEFT\_MARGIN of int** **\| \`LEFT\_MARGIN\_SET of bool** **\| \`PIXELS\_ABOVE\_LINES of int** **\| \`PIXELS\_ABOVE\_LINES\_SET of bool** **\| \`PIXELS\_BELOW\_LINES of int** **\| \`PIXELS\_BELOW\_LINES\_SET of bool** **\| \`PIXELS\_INSIDE\_WRAP of int** **\| \`PIXELS\_INSIDE\_WRAP\_SET of bool** **\| \`RIGHT\_MARGIN of int** **\| \`RIGHT\_MARGIN\_SET of bool** **\| \`RISE of int** **\| \`RISE\_SET of bool** **\| \`SCALE of Pango.Tags.scale** **\| \`SCALE\_SET of bool** **\| \`SIZE of int** **\| \`SIZE\_POINTS of float** **\| \`SIZE\_SET of bool** **\| \`STRETCH of Pango.Tags.stretch** **\| \`STRETCH\_SET of bool** **\| \`STRIKETHROUGH of bool** **\| \`STRIKETHROUGH\_SET of bool** **\| \`STYLE of Pango.Tags.style** **\| \`STYLE\_SET of bool** **\| \`TABS\_SET of bool** **\| \`UNDERLINE of Pango.Tags.underline** **\| \`UNDERLINE\_SET of bool** **\| \`VARIANT of Pango.Tags.variant** **\| \`VARIANT\_SET of bool** **\| \`WEIGHT of Pango.Tags.weight** **\| \`WEIGHT\_SET of bool** **\| \`WRAP\_MODE of Gtk.Tags.wrap\_mode** **\| \`WRAP\_MODE\_SET of bool \]**

*class tag\_signals :* **\[\> \`texttag \] Gtk.obj -\> object end**

*class tag :* **Gtk.text\_tag -\> object end**

A tag that can be applied to text in a  **GText.buffer**

*val tag* :  **?name:string -\> unit -\> tag**

**===** **Text buffer iterator** **===**

*type contents* =  **\[ \`CHAR of Glib.unichar** **\| \`CHILD of child\_anchor** **\| \`PIXBUF of GdkPixbuf.pixbuf** **\| \`UNKNOWN \]**

**=== Movement functions returning an iter are truly functional i.e. the** **returned iter shares nothing with the originale one.** **If you need to move some iter in an imperative way use** **#nocopy#.... ===** *class nocopy\_iter :* **Gtk.text\_iter -\> object end**

*class iter :* **Gtk.text\_iter -\> object end**

*val as\_iter* :  **iter -\> Gtk.text\_iter**

**===** **GtkTextTagTable** **===**

*class tag\_table\_signals :* **\[\> \`texttagtable \] Gtk.obj -\> object end**

*class tag\_table :* **Gtk.text\_tag\_table -\> object end**

Collection of tags that can be used together

*val tag\_table* :  **unit -\> tag\_table**

**===** **GtkTextBuffer** **===**

*class buffer\_signals :* **\[\> \`textbuffer \] Gtk.obj -\> object end**

*exception No\_such\_mark* **of** **string**

*type position* =  **\[ \`END** **\| \`INSERT** **\| \`ITER of iter** **\| \`LINE of int** **\| \`LINEBYTE of int \* int** **\| \`LINECHAR of int \* int** **\| \`MARK of Gtk.text\_mark** **\| \`NAME of string** **\| \`OFFSET of int** **\| \`SEL\_BOUND** **\| \`START \]**

*class buffer\_skel :* **\[\> \`textbuffer \] Gtk.obj -\> object end**

Stores attributed text for display in a  **GText.view**

*class buffer :* **\[\> \`textbuffer \] Gtk.obj -\> object end**

*val buffer* :  **?tag\_table:tag\_table -\> ?text:string -\> unit -\> buffer**

**===** **GtkTextView** **===**

*class view\_signals :* **\[\> Gtk.text\_view \] Gtk.obj -\> object end**

*class view\_skel :* **\[\> Gtk.text\_view \] Gtk.obj -\> object end**

Widget that displays a  **GText.buffer**

*class view :* **\[\> Gtk.text\_view \] Gtk.obj -\> object end**

*val view* :  **?buffer:buffer -\>** **?editable:bool -\>** **?cursor\_visible:bool -\>** **?justification:Gtk.Tags.justification -\>** **?wrap\_mode:Gtk.Tags.wrap\_mode -\>** **?border\_width:int -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> view**
