GnomeCanvasRichText

GnomeCanvasRichText

Functions

Properties

GtkAnchorType anchor Read / Write
gboolean cursor-blink Read / Write
gboolean cursor-visible Read / Write
GtkDirectionType direction Read / Write
gboolean editable Read / Write
gboolean grow-height Read / Write
gdouble height Read / Write
gint indent Read / Write
GtkJustification justification Read / Write
gint left-margin Read / Write
gint pixels-above-lines Read / Write
gint pixels-below-lines Read / Write
gint pixels-inside-wrap Read / Write
gint right-margin Read / Write
gchar * text Read / Write
gboolean visible Read / Write
gdouble width Read / Write
GtkWrapMode wrap-mode Read / Write
gdouble x Read / Write
gdouble y Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GnomeCanvasItem
                ╰── GnomeCanvasRichText

Includes

#include <libgnomecanvas/libgnomecanvas.h>

Description

Functions

gnome_canvas_rich_text_cut_clipboard ()

void
gnome_canvas_rich_text_cut_clipboard (GnomeCanvasRichText *text);

Copies the currently selected text to clipboard, then deletes said text if it's editable.

Parameters

text

a GnomeCanvasRichText.

 

gnome_canvas_rich_text_copy_clipboard ()

void
gnome_canvas_rich_text_copy_clipboard (GnomeCanvasRichText *text);

Copies the currently selected text to clipboard.

Parameters

text

a GnomeCanvasRichText.

 

gnome_canvas_rich_text_paste_clipboard ()

void
gnome_canvas_rich_text_paste_clipboard
                               (GnomeCanvasRichText *text);

Pastes the contents of the clipboard at the insertion point.

Parameters

text

a GnomeCanvasRichText.

 

gnome_canvas_rich_text_set_buffer ()

void
gnome_canvas_rich_text_set_buffer (GnomeCanvasRichText *text,
                                   GtkTextBuffer *buffer);

Sets the buffer field of the text to buffer .

Parameters

text

a GnomeCanvasRichText.

 

buffer

a GtkTextBuffer.

 

gnome_canvas_rich_text_get_buffer ()

GtkTextBuffer *
gnome_canvas_rich_text_get_buffer (GnomeCanvasRichText *text);

Returns a GtkTextBuffer associated with the GnomeCanvasRichText. This function creates a new GtkTextBuffer if the text buffer is NULL.

Parameters

text

a GnomeCanvasRichText.

 

Returns

the GtkTextBuffer.


gnome_canvas_rich_text_get_iter_location ()

void
gnome_canvas_rich_text_get_iter_location
                               (GnomeCanvasRichText *text,
                                const GtkTextIter *iter,
                                GdkRectangle *location);

Gets a rectangle which roughly contains the character at iter .

Parameters

text

a GnomeCanvasRichText.

 

iter

a GtkTextIter.

 

location

a GdkRectangle containing the bounds of the character at iter .

 

gnome_canvas_rich_text_get_iter_at_location ()

void
gnome_canvas_rich_text_get_iter_at_location
                               (GnomeCanvasRichText *text,
                                GtkTextIter *iter,
                                gint x,
                                gint y);

Retrieves the iterator at the buffer coordinates x and y.

Parameters

text

a GnomeCanvasRichText.

 

iter

a GtkTextIter.

 

x

x position, in buffer coordinates.

 

y

y position, in buffer coordinates.

 

Types and Values

struct GnomeCanvasRichText

struct GnomeCanvasRichText;

Property Details

The “anchor” property

  “anchor”                   GtkAnchorType

Anchor point for text.

Flags: Read / Write

Default value: GTK_ANCHOR_NORTH_WEST


The “cursor-blink” property

  “cursor-blink”             gboolean

Does the cursor blink in this rich text item?.

Flags: Read / Write

Default value: TRUE


The “cursor-visible” property

  “cursor-visible”           gboolean

Is the cursor visible in this rich text item?.

Flags: Read / Write

Default value: TRUE


The “direction” property

  “direction”                GtkDirectionType

Text direction.

Flags: Read / Write

Default value: GTK_DIR_TAB_BACKWARD


The “editable” property

  “editable”                 gboolean

Is this rich text item editable?.

Flags: Read / Write

Default value: TRUE


The “grow-height” property

  “grow-height”              gboolean

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

Flags: Read / Write

Default value: FALSE


The “height” property

  “height”                   gdouble

Height for text box.

Flags: Read / Write

Default value: 0


The “indent” property

  “indent”                   gint

Number of pixels for indentation.

Flags: Read / Write

Default value: 0


The “justification” property

  “justification”            GtkJustification

Justification mode.

Flags: Read / Write

Default value: GTK_JUSTIFY_LEFT


The “left-margin” property

  “left-margin”              gint

Number of pixels in the left margin.

Flags: Read / Write

Default value: 0


The “pixels-above-lines” property

  “pixels-above-lines”       gint

Number of pixels to put above lines.

Flags: Read / Write

Default value: 0


The “pixels-below-lines” property

  “pixels-below-lines”       gint

Number of pixels to put below lines.

Flags: Read / Write

Default value: 0


The “pixels-inside-wrap” property

  “pixels-inside-wrap”       gint

Number of pixels to put inside the wrap.

Flags: Read / Write

Default value: 0


The “right-margin” property

  “right-margin”             gint

Number of pixels in the right margin.

Flags: Read / Write

Default value: 0


The “text” property

  “text”                     gchar *

Text to display.

Flags: Read / Write

Default value: NULL


The “visible” property

  “visible”                  gboolean

Is this rich text item visible?.

Flags: Read / Write

Default value: TRUE


The “width” property

  “width”                    gdouble

Width for text box.

Flags: Read / Write

Default value: 0


The “wrap-mode” property

  “wrap-mode”                GtkWrapMode

Wrap mode for multiline text.

Flags: Read / Write

Default value: GTK_WRAP_WORD


The “x” property

  “x”                        gdouble

X position.

Flags: Read / Write

Default value: 0


The “y” property

  “y”                        gdouble

Y position.

Flags: Read / Write

Default value: 0

Signal Details

The “tag-changed” signal

void
user_function (GnomeCanvasRichText *canvasrichtext,
               GObject             *arg1,
               gpointer             user_data)

Flags: Run Last