Next: , Previous: GnomeCanvasRE, Up: Top


13 GnomeCanvasRichText

Rich text canvas item

13.1 Overview

A canvas item that displays a GtkTextBuffer which is a flexible text display and editing widget. Consult GtkTextBuffer info in the GTK+ Reference documentation for more details.

13.2 Usage

— Class: <gnome-canvas-rich-text>

Derives from <gnome-canvas-item>.

This class defines the following properties:

text
Text to display
x
X position
y
Y position
width
Width for text box
height
Height for text box
editable
Is this rich text item editable?
visible
Is this rich text item visible?
cursor-visible
Is the cursor visible in this rich text item?
cursor-blink
Does the cursor blink in this rich text item?
grow-height
Should the text box height grow if the text does not fit?
wrap-mode
Wrap mode for multiline text
justification
Justification mode
direction
Text direction
anchor
Anchor point for text
pixels-above-lines
Number of pixels to put above lines
pixels-below-lines
Number of pixels to put below lines
pixels-inside-wrap
Number of pixels to put inside the wrap
left-margin
Number of pixels in the left margin
right-margin
Number of pixels in the right margin
indent
Number of pixels for indentation
— Signal on <gnome-canvas-rich-text>: tag-changed (arg0 <gobject>)
— Function: gnome-canvas-rich-text-set-buffer (self <gnome-canvas-rich-text>) (buffer <gtk-text-buffer>)
— Method: set-buffer

Sets the buffer field of the text to buffer.

text
a <gnome-canvas-rich-text>.
buffer
a <gtk-text-buffer>.
— Function: gnome-canvas-rich-text-get-buffer (self <gnome-canvas-rich-text>) ⇒  (ret <gtk-text-buffer>)
— Method: get-buffer

Returns a <gtk-text-buffer> associated with the <gnome-canvas-rich-text>. This function creates a new <gtk-text-buffer> if the text buffer is NULL.

text
a <gnome-canvas-rich-text>.
ret
the <gtk-text-buffer>.