Class

PlumaDocument

since: 1.0

Description

class Pluma.Document : GtkSource.Buffer
{
  /* No available fields */
}
No description available.

Available since: 1.0

Constructors

pluma_document_new
No description available.

since: 1.0

Functions

pluma_document_error_quark
No description available.

since: 1.0

Instance methods

pluma_document_get_can_search_again
No description available.

since: 1.0

pluma_document_get_content_type
No description available.

since: 1.0

pluma_document_get_deleted
No description available.

since: 1.0

pluma_document_get_enable_search_highlighting
No description available.

since: 1.0

pluma_document_get_encoding
No description available.

since: 1.0

pluma_document_get_language
No description available.

since: 1.0

pluma_document_get_last_replace_text
No description available.

since: 1.0

pluma_document_get_location
No description available.

since: 1.0

pluma_document_get_metadata

Gets the metadata assigned to key.

since: 1.0

pluma_document_get_newline_type
No description available.

since: 1.0

pluma_document_get_readonly
No description available.

since: 1.0

pluma_document_get_search_text
No description available.

since: 1.0

pluma_document_get_uri
No description available.

since: 1.0

pluma_document_goto_line
No description available.

since: 1.0

pluma_document_goto_line_offset
No description available.

since: 1.0

pluma_document_insert_file
No description available.

since: 1.0

pluma_document_is_local
No description available.

since: 1.0

pluma_document_is_untitled
No description available.

since: 1.0

pluma_document_is_untouched
No description available.

since: 1.0

pluma_document_load

Load a document. This results in the “load” signal to be emitted.

since: 1.0

pluma_document_load_cancel

Cancel load of a document.

since: 1.0

pluma_document_replace_all
No description available.

since: 1.0

pluma_document_save

Save the document to its previous location. This results in the “save” signal to be emitted.

since: 1.0

pluma_document_save_as

Save the document to a new location. This results in the “save” signal to be emitted.

since: 1.0

pluma_document_search_backward
No description available.

since: 1.0

pluma_document_search_forward
No description available.

since: 1.0

pluma_document_set_content_type
No description available.

since: 1.0

pluma_document_set_enable_search_highlighting
No description available.

since: 1.0

pluma_document_set_language
No description available.

since: 1.0

pluma_document_set_last_replace_text
No description available.

since: 1.0

pluma_document_set_metadata

Sets metadata on a document.

since: 1.0

pluma_document_set_newline_type
No description available.

since: 1.0

pluma_document_set_search_text
No description available.

since: 1.0

pluma_document_set_short_name_for_display
No description available.

since: 1.0

pluma_document_set_uri
No description available.

since: 1.0

Methods inherited from GtkSourceBuffer (35)

Please see GtkSourceBuffer for a full list of methods.

Methods inherited from GtkTextBuffer (73)

Please see GtkTextBuffer for a full list of methods.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Pluma.Document:can-search-again
No description available.

since: 1.0

Pluma.Document:content-type
No description available.

since: 1.0

Pluma.Document:enable-search-highlighting
No description available.

since: 1.0

Pluma.Document:encoding
No description available.

since: 1.0

Pluma.Document:mime-type
No description available.

since: 1.0

Pluma.Document:newline-type

The :newline-type property determines what is considered as a line ending when saving the document.

since: 1.0

Pluma.Document:read-only
No description available.

since: 1.0

Pluma.Document:shortname
No description available.

since: 1.0

Pluma.Document:uri
No description available.

since: 1.0

Properties inherited from GtkSourceBuffer (9)
GtkSource.Buffer:can-redo
No description available.

unstable since: 4

GtkSource.Buffer:can-undo
No description available.

unstable since: 4

GtkSource.Buffer:highlight-matching-brackets

Whether to highlight matching brackets in the buffer.

unstable since: 4

GtkSource.Buffer:highlight-syntax

Whether to highlight syntax in the buffer.

unstable since: 4

GtkSource.Buffer:implicit-trailing-newline

Whether the buffer has an implicit trailing newline. See gtk_source_buffer_set_implicit_trailing_newline().

unstable since: 3.14

GtkSource.Buffer:language
No description available.

unstable since: 4

GtkSource.Buffer:max-undo-levels

Number of undo levels for the buffer. -1 means no limit. This property will only affect the default undo manager.

unstable since: 4

GtkSource.Buffer:style-scheme

Style scheme. It contains styles for syntax highlighting, optionally foreground, background, cursor color, current line color, and matching brackets style.

unstable since: 4

GtkSource.Buffer:undo-manager
No description available.

unstable since: 4

Properties inherited from GtkTextBuffer (6)
Gtk.TextBuffer:copy-target-list

The list of targets this buffer supports for clipboard copying and as DND source.

unstable since: 2.10

Gtk.TextBuffer:cursor-position

The position of the insert mark (as offset from the beginning of the buffer). It is useful for getting notified when the cursor moves.

unstable since: 2.10

Gtk.TextBuffer:has-selection

Whether the buffer has some text currently selected.

unstable since: 2.10

Gtk.TextBuffer:paste-target-list

The list of targets this buffer supports for clipboard pasting and as DND destination.

unstable since: 2.10

Gtk.TextBuffer:tag-table
No description available.

unstable since: 3.0

Gtk.TextBuffer:text

The text content of the buffer. Without child widgets and images, see gtk_text_buffer_get_text() for more information.

unstable since: 2.8

Signals

Pluma.Document::cursor-moved
No description available.

since: 1.0

Pluma.Document::load

The “load” signal is emitted when a document is loaded.

since: 1.0

Pluma.Document::loaded
No description available.

since: 1.0

Pluma.Document::loading
No description available.

since: 1.0

Pluma.Document::save

The “save” signal is emitted when the document is saved.

since: 1.0

Pluma.Document::saved
No description available.

since: 1.0

Pluma.Document::saving
No description available.

since: 1.0

Pluma.Document::search-highlight-updated
No description available.

since: 1.0

Signals inherited from GtkSourceBuffer (5)
GtkSourceBuffer::bracket-matched

iter is set to a valid iterator pointing to the matching bracket if state is GTK_SOURCE_BRACKET_MATCH_FOUND. Otherwise iter is meaningless.

unstable since: 2.12

GtkSourceBuffer::highlight-updated

The ::highlight-updated signal is emitted when the syntax highlighting and [context classes][context-classes] are updated in a certain region of the buffer.

unstable since: 4

GtkSourceBuffer::redo

The ::redo signal is emitted to redo the last undo operation.

unstable since: 4

GtkSourceBuffer::source-mark-updated

The ::source-mark-updated signal is emitted each time a mark is added to, moved or removed from the buffer.

unstable since: 4

GtkSourceBuffer::undo

The ::undo signal is emitted to undo the last user action which modified the buffer.

unstable since: 4

Signals inherited from GtkTextBuffer (13)
GtkTextBuffer::apply-tag

The ::apply-tag signal is emitted to apply a tag to a range of text in a GtkTextBuffer. Applying actually occurs in the default handler.

unstable since: 3.0

GtkTextBuffer::begin-user-action

The ::begin-user-action signal is emitted at the beginning of a single user-visible operation on a GtkTextBuffer.

unstable since: 3.0

GtkTextBuffer::changed

The ::changed signal is emitted when the content of a GtkTextBuffer has changed.

unstable since: 3.0

GtkTextBuffer::delete-range

The ::delete-range signal is emitted to delete a range from a GtkTextBuffer.

unstable since: 3.0

GtkTextBuffer::end-user-action

The ::end-user-action signal is emitted at the end of a single user-visible operation on the GtkTextBuffer.

unstable since: 3.0

GtkTextBuffer::insert-child-anchor

The ::insert-child-anchor signal is emitted to insert a GtkTextChildAnchor in a GtkTextBuffer. Insertion actually occurs in the default handler.

unstable since: 3.0

GtkTextBuffer::insert-pixbuf

The ::insert-pixbuf signal is emitted to insert a GdkPixbuf in a GtkTextBuffer. Insertion actually occurs in the default handler.

unstable since: 3.0

GtkTextBuffer::insert-text

The ::insert-text signal is emitted to insert text in a GtkTextBuffer. Insertion actually occurs in the default handler.

unstable since: 3.0

GtkTextBuffer::mark-deleted

The ::mark-deleted signal is emitted as notification after a GtkTextMark is deleted.

unstable since: 3.0

GtkTextBuffer::mark-set

The ::mark-set signal is emitted as notification after a GtkTextMark is set.

unstable since: 3.0

GtkTextBuffer::modified-changed

The ::modified-changed signal is emitted when the modified bit of a GtkTextBuffer flips.

unstable since: 3.0

GtkTextBuffer::paste-done

The paste-done signal is emitted after paste operation has been completed. This is useful to properly scroll the view to the end of the pasted text. See gtk_text_buffer_paste_clipboard() for more details.

unstable since: 2.16

GtkTextBuffer::remove-tag

The ::remove-tag signal is emitted to remove all occurrences of tag from a range of text in a GtkTextBuffer. Removal actually occurs in the default handler.

unstable since: 3.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

unstable since: 2.0

Class structure

struct PlumaDocumentClass {
  GtkSourceBufferClass parent_class;
  void (* cursor_moved) (
    PlumaDocument* document
  );
  void (* load) (
    PlumaDocument* document,
    const gchar* uri,
    const PlumaEncoding* encoding,
    gint line_pos,
    gboolean create
  );
  void (* loading) (
    PlumaDocument* document,
    goffset size,
    goffset total_size
  );
  void (* loaded) (
    PlumaDocument* document,
    const GError* error
  );
  void (* save) (
    PlumaDocument* document,
    const gchar* uri,
    const PlumaEncoding* encoding,
    PlumaDocumentSaveFlags flags
  );
  void (* saving) (
    PlumaDocument* document,
    goffset size,
    goffset total_size
  );
  void (* saved) (
    PlumaDocument* document,
    const GError* error
  );
  void (* search_highlight_updated) (
    PlumaDocument* document,
    GtkTextIter* start,
    GtkTextIter* end
  );
  
}
No description available.
Class members
parent_class: GtkSourceBufferClass
No description available.
cursor_moved: void (* cursor_moved) ( PlumaDocument* document )
No description available.
load: void (* load) ( PlumaDocument* document, const gchar* uri, const PlumaEncoding* encoding, gint line_pos, gboolean create )
No description available.
loading: void (* loading) ( PlumaDocument* document, goffset size, goffset total_size )
No description available.
loaded: void (* loaded) ( PlumaDocument* document, const GError* error )
No description available.
save: void (* save) ( PlumaDocument* document, const gchar* uri, const PlumaEncoding* encoding, PlumaDocumentSaveFlags flags )
No description available.
saving: void (* saving) ( PlumaDocument* document, goffset size, goffset total_size )
No description available.
saved: void (* saved) ( PlumaDocument* document, const GError* error )
No description available.
search_highlight_updated: void (* search_highlight_updated) ( PlumaDocument* document, GtkTextIter* start, GtkTextIter* end )
No description available.

Virtual methods

Pluma.DocumentClass.cursor_moved
No description available.

since: 1.0

Pluma.DocumentClass.load

Load a document. This results in the “load” signal to be emitted.

since: 1.0

Pluma.DocumentClass.loaded
No description available.

since: 1.0

Pluma.DocumentClass.loading
No description available.

since: 1.0

Pluma.DocumentClass.save
No description available.

since: 1.0

Pluma.DocumentClass.saved
No description available.

since: 1.0

Pluma.DocumentClass.saving
No description available.

since: 1.0

Pluma.DocumentClass.search_highlight_updated
No description available.

since: 1.0