XedView

XedView

Functions

Signals

void drop-uris Action

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkTextView
                    ╰── GtkSourceView
                        ╰── XedView

Description

Functions

xed_view_new ()

GtkWidget *
xed_view_new (XedDocument *doc);

Creates a new XedView object displaying the doc document. doc cannot be NULL.

Parameters

doc

a XedDocument

 

Returns

a new XedView


xed_view_cut_clipboard ()

void
xed_view_cut_clipboard (XedView *view);

xed_view_copy_clipboard ()

void
xed_view_copy_clipboard (XedView *view);

xed_view_paste_clipboard ()

void
xed_view_paste_clipboard (XedView *view);

xed_view_delete_selection ()

void
xed_view_delete_selection (XedView *view);

Deletes the text currently selected in the GtkTextBuffer associated to the view and scroll to the cursor position.

Parameters

view

a XedView

 

xed_view_select_all ()

void
xed_view_select_all (XedView *view);

Selects all the text displayed in the view .

Parameters

view

a XedView

 

xed_view_scroll_to_cursor ()

void
xed_view_scroll_to_cursor (XedView *view);

Scrolls the view to the cursor position.

Parameters

view

a XedView

 

xed_view_set_font ()

void
xed_view_set_font (XedView *view,
                   gboolean def,
                   const gchar *font_name);

If def is TRUE, resets the font of the view to the default font otherwise sets it to font_name .

Parameters

view

a XedView

 

def

whether to reset the default font

 

font_name

the name of the font to use

 

xed_view_set_draw_whitespace ()

void
xed_view_set_draw_whitespace (XedView *view,
                              gboolean enable);

Enables or disables rendering of any whitespace. The locations and types of whitespace to render is set by xed_view_update_draw_whitespace_locations_and_types()

Parameters

view

a XedView

 

enable

whether whitespace should be drawn

 

xed_view_update_draw_whitespace_locations_and_types ()

void
xed_view_update_draw_whitespace_locations_and_types
                               (XedView *view);

Updates the view to render whitespace at the locations and for types set in the preferences

Parameters

view

a XedView

 

Signal Details

The “drop-uris” signal

void
user_function (XedView *xedview,
               GStrv    arg1,
               gpointer user_data)

Flags: Action