Rich text canvas item
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.
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
<gnome-canvas-rich-text>
) (buffer <gtk-text-buffer>
)Sets the buffer field of the text to buffer.
- text
- a
<gnome-canvas-rich-text>
.- buffer
- a
<gtk-text-buffer>
.
<gnome-canvas-rich-text>
) ⇒ (ret <gtk-text-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>
.