---
name: "Gnome2::Canvas::RichText"
section: "3pm"
platform: "linux"
package: "libgnome2-canvas-perl"
version: "1.002-4+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::Canvas::RichText"
---

# Gnome2::Canvas::RichText(3pm)

Rich text canvas item

## NAME

Gnome2::Canvas::RichText - Rich text canvas item

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gnome2::Canvas::Item
                 +----Gnome2::Canvas::RichText
```

## METHODS

### textbuffer = $text-\>get\_buffer

### $text-\>set\_buffer ($buffer)

- •

  `$buffer` (Gtk2::TextBuffer)

### $text-\>copy\_clipboard

### $text-\>cut\_clipboard

### textiter = $text-\>get\_iter\_at\_location ($x, $y)

- •

  `$x` (integer)

- •

  `$y` (integer)

### rectangle = $text-\>get\_iter\_location ($iter)

- •

  `$iter` (Gtk2::TextIter)

### $text-\>paste\_clipboard

## PROPERTIES

- 'anchor' (Gtk2::AnchorType : default "north-west" : readable / writable)

  Anchor point for text

- 'cursor-blink' (boolean : default true : readable / writable)

  Does the cursor blink in this rich text item?

- 'cursor-visible' (boolean : default true : readable / writable)

  Is the cursor visible in this rich text item?

- 'direction' (Gtk2::DirectionType : default "tab-backward" : readable / writable)

  Text direction

- 'editable' (boolean : default true : readable / writable)

  Is this rich text item editable?

- 'grow-height' (boolean : default false : readable / writable)

  Should the text box height grow if the text does not fit?

- 'height' (double : default 0 : readable / writable)

  Height for text box

- 'indent' (integer : default 0 : readable / writable)

  Number of pixels for indentation

- 'justification' (Gtk2::Justification : default "left" : readable / writable)

  Justification mode

- 'left-margin' (integer : default 0 : readable / writable)

  Number of pixels in the left margin

- 'pixels-above-lines' (integer : default 0 : readable / writable)

  Number of pixels to put above lines

- 'pixels-below-lines' (integer : default 0 : readable / writable)

  Number of pixels to put below lines

- 'pixels-inside-wrap' (integer : default 0 : readable / writable)

  Number of pixels to put inside the wrap

- 'right-margin' (integer : default 0 : readable / writable)

  Number of pixels in the right margin

- 'text' (string : default undef : readable / writable)

  Text to display

- 'visible' (boolean : default true : readable / writable)

  Is this rich text item visible?

- 'width' (double : default 0 : readable / writable)

  Width for text box

- 'wrap-mode' (Gtk2::WrapMode : default "word" : readable / writable)

  Wrap mode for multiline text

- 'x' (double : default 0 : readable / writable)

  X position

- 'y' (double : default 0 : readable / writable)

  Y position

## SIGNALS

- **tag-changed** (Gnome2::Canvas::RichText, Glib::Object)

  ## ENUMS AND FLAGS

### enum Gtk2::AnchorType

- •

  'center' / 'GTK\_ANCHOR\_CENTER'

- •

  'north' / 'GTK\_ANCHOR\_NORTH'

- •

  'north-west' / 'GTK\_ANCHOR\_NORTH\_WEST'

- •

  'north-east' / 'GTK\_ANCHOR\_NORTH\_EAST'

- •

  'south' / 'GTK\_ANCHOR\_SOUTH'

- •

  'south-west' / 'GTK\_ANCHOR\_SOUTH\_WEST'

- •

  'south-east' / 'GTK\_ANCHOR\_SOUTH\_EAST'

- •

  'west' / 'GTK\_ANCHOR\_WEST'

- •

  'east' / 'GTK\_ANCHOR\_EAST'

- •

  'n' / 'GTK\_ANCHOR\_N'

- •

  'nw' / 'GTK\_ANCHOR\_NW'

- •

  'ne' / 'GTK\_ANCHOR\_NE'

- •

  's' / 'GTK\_ANCHOR\_S'

- •

  'sw' / 'GTK\_ANCHOR\_SW'

- •

  'se' / 'GTK\_ANCHOR\_SE'

- •

  'w' / 'GTK\_ANCHOR\_W'

- •

  'e' / 'GTK\_ANCHOR\_E'

### enum Gtk2::DirectionType

- •

  'tab-forward' / 'GTK\_DIR\_TAB\_FORWARD'

- •

  'tab-backward' / 'GTK\_DIR\_TAB\_BACKWARD'

- •

  'up' / 'GTK\_DIR\_UP'

- •

  'down' / 'GTK\_DIR\_DOWN'

- •

  'left' / 'GTK\_DIR\_LEFT'

- •

  'right' / 'GTK\_DIR\_RIGHT'

### enum Gtk2::Justification

- •

  'left' / 'GTK\_JUSTIFY\_LEFT'

- •

  'right' / 'GTK\_JUSTIFY\_RIGHT'

- •

  'center' / 'GTK\_JUSTIFY\_CENTER'

- •

  'fill' / 'GTK\_JUSTIFY\_FILL'

### enum Gtk2::WrapMode

- •

  'none' / 'GTK\_WRAP\_NONE'

- •

  'char' / 'GTK\_WRAP\_CHAR'

- •

  'word' / 'GTK\_WRAP\_WORD'

- •

  'word-char' / 'GTK\_WRAP\_WORD\_CHAR'

## SEE ALSO

Gnome2::Canvas, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gnome2::Canvas::Item

## COPYRIGHT

Copyright (C) 2003-2004 by the Gtk2-Perl Team.

This software is licensed under the LGPL; see Gnome2::Canvas for a full notice.
