IAnjutaEditor

IAnjutaEditor — Text editor interface

Stability Level

Unstable, unless otherwise indicated

Synopsis

#include <libanjuta/interfaces/ianjuta-editor.h>

#define             IANJUTA_TYPE_EDITOR_ATTRIBUTE
#define             IANJUTA_TYPE_EDITOR_ERROR
#define             IANJUTA_EDITOR_ERROR
                    IAnjutaEditor;
                    IAnjutaEditorIface;
enum                IAnjutaEditorAttribute;
enum                IAnjutaEditorError;
GType               ianjuta_editor_error_get_type       (void);
GQuark              ianjuta_editor_error_quark          (void);
GType               ianjuta_editor_get_type             (void);
void                ianjuta_editor_append               (IAnjutaEditor *obj,
                                                         const gchar *text,
                                                         gint length,
                                                         GError **err);
void                ianjuta_editor_erase                (IAnjutaEditor *obj,
                                                         IAnjutaIterable *position_start,
                                                         IAnjutaIterable *position_end,
                                                         GError **err);
void                ianjuta_editor_erase_all            (IAnjutaEditor *obj,
                                                         GError **err);
gint                ianjuta_editor_get_column           (IAnjutaEditor *obj,
                                                         GError **err);
gchar*              ianjuta_editor_get_current_word     (IAnjutaEditor *obj,
                                                         GError **err);
IAnjutaIterable*    ianjuta_editor_get_end_position     (IAnjutaEditor *obj,
                                                         GError **err);
gint                ianjuta_editor_get_length           (IAnjutaEditor *obj,
                                                         GError **err);
IAnjutaIterable*    ianjuta_editor_get_line_begin_position
                                                        (IAnjutaEditor *obj,
                                                         gint line,
                                                         GError **err);
IAnjutaIterable *   ianjuta_editor_get_line_end_position
                                                        (IAnjutaEditor *obj,
                                                         gint line,
                                                         GError **err);
int                 ianjuta_editor_get_line_from_position
                                                        (IAnjutaEditor *obj,
                                                         IAnjutaIterable *position,
                                                         GError **err);
gint                ianjuta_editor_get_lineno           (IAnjutaEditor *obj,
                                                         GError **err);
gint                ianjuta_editor_get_offset           (IAnjutaEditor *obj,
                                                         GError **err);
gboolean            ianjuta_editor_get_overwrite        (IAnjutaEditor *obj,
                                                         GError **err);
IAnjutaIterable*    ianjuta_editor_get_position         (IAnjutaEditor *obj,
                                                         GError **err);
IAnjutaIterable*    ianjuta_editor_get_position_from_offset
                                                        (IAnjutaEditor *obj,
                                                         gint offset,
                                                         GError **err);
IAnjutaIterable*    ianjuta_editor_get_start_position   (IAnjutaEditor *obj,
                                                         GError **err);
gint                ianjuta_editor_get_tabsize          (IAnjutaEditor *obj,
                                                         GError **err);
gchar*              ianjuta_editor_get_text             (IAnjutaEditor *obj,
                                                         IAnjutaIterable *begin,
                                                         IAnjutaIterable *end,
                                                         GError **err);
gchar*              ianjuta_editor_get_text_all         (IAnjutaEditor *obj,
                                                         GError **err);
gboolean            ianjuta_editor_get_use_spaces       (IAnjutaEditor *obj,
                                                         GError **err);
void                ianjuta_editor_goto_end             (IAnjutaEditor *obj,
                                                         GError **err);
void                ianjuta_editor_goto_line            (IAnjutaEditor *obj,
                                                         gint lineno,
                                                         GError **err);
void                ianjuta_editor_goto_position        (IAnjutaEditor *obj,
                                                         IAnjutaIterable *position,
                                                         GError **err);
void                ianjuta_editor_goto_start           (IAnjutaEditor *obj,
                                                         GError **err);
void                ianjuta_editor_insert               (IAnjutaEditor *obj,
                                                         IAnjutaIterable *position,
                                                         const gchar *text,
                                                         gint length,
                                                         GError **err);
void                ianjuta_editor_set_auto_indent      (IAnjutaEditor *obj,
                                                         gboolean auto_indent,
                                                         GError **err);
void                ianjuta_editor_set_popup_menu       (IAnjutaEditor *obj,
                                                         GtkWidget *menu,
                                                         GError **err);
void                ianjuta_editor_set_tabsize          (IAnjutaEditor *obj,
                                                         gint tabsize,
                                                         GError **err);
void                ianjuta_editor_set_use_spaces       (IAnjutaEditor *obj,
                                                         gboolean use_spaces,
                                                         GError **err);

Object Hierarchy

  GInterface
   +----IAnjutaEditor

Prerequisites

IAnjutaEditor requires GObject.

Known Derived Interfaces

IAnjutaEditor is required by IAnjutaEditorAssist, IAnjutaEditorComment, IAnjutaEditorConvert, IAnjutaEditorFolds, IAnjutaEditorGoto, IAnjutaEditorHover, IAnjutaEditorLanguage, IAnjutaEditorLineMode, IAnjutaEditorSearch, IAnjutaEditorSelection, IAnjutaEditorTip, IAnjutaEditorView and IAnjutaEditorZoom.

Signals

  "backspace"                                      : Run Last
  "changed"                                        : Run Last
  "char-added"                                     : Run Last
  "cursor-moved"                                   : Run Last
  "line-marks-gutter-clicked"                      : Run Last

Description

Details

IANJUTA_TYPE_EDITOR_ATTRIBUTE

#define IANJUTA_TYPE_EDITOR_ATTRIBUTE (ianjuta_editor_attribute_get_type())


IANJUTA_TYPE_EDITOR_ERROR

#define IANJUTA_TYPE_EDITOR_ERROR (ianjuta_editor_error_get_type())


IANJUTA_EDITOR_ERROR

#define IANJUTA_EDITOR_ERROR ianjuta_editor_error_quark()


IAnjutaEditor

typedef struct _IAnjutaEditor IAnjutaEditor;


IAnjutaEditorIface

typedef struct {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*backspace) (IAnjutaEditor *obj);
	/* Signal */
	void (*changed) (IAnjutaEditor *obj, GObject *position,  gboolean added,  gint length,  gint lines,  const gchar *text);
	/* Signal */
	void (*char_added) (IAnjutaEditor *obj, GObject *position,  gchar ch);
	/* Signal */
	void (*cursor_moved) (IAnjutaEditor *obj);
	/* Signal */
	void (*line_marks_gutter_clicked) (IAnjutaEditor *obj, gint location);

	void (*append) (IAnjutaEditor *obj, const gchar *text,  gint length, GError **err);
	void (*erase) (IAnjutaEditor *obj, IAnjutaIterable *position_start,  IAnjutaIterable *position_end, GError **err);
	void (*erase_all) (IAnjutaEditor *obj, GError **err);
	gint (*get_column) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_current_word) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_end_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_length) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_line_begin_position) (IAnjutaEditor *obj, gint line, GError **err);
	IAnjutaIterable * (*get_line_end_position) (IAnjutaEditor *obj, gint line, GError **err);
	int (*get_line_from_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	gint (*get_lineno) (IAnjutaEditor *obj, GError **err);
	gint (*get_offset) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_overwrite) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position_from_offset) (IAnjutaEditor *obj, gint offset, GError **err);
	IAnjutaIterable* (*get_start_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_tabsize) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_text) (IAnjutaEditor *obj, IAnjutaIterable *begin,  IAnjutaIterable *end, GError **err);
	gchar* (*get_text_all) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_use_spaces) (IAnjutaEditor *obj, GError **err);
	void (*goto_end) (IAnjutaEditor *obj, GError **err);
	void (*goto_line) (IAnjutaEditor *obj, gint lineno, GError **err);
	void (*goto_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	void (*goto_start) (IAnjutaEditor *obj, GError **err);
	void (*insert) (IAnjutaEditor *obj, IAnjutaIterable *position,  const gchar *text,  gint length, GError **err);
	void (*set_auto_indent) (IAnjutaEditor *obj, gboolean auto_indent, GError **err);
	void (*set_popup_menu) (IAnjutaEditor *obj, GtkWidget *menu, GError **err);
	void (*set_tabsize) (IAnjutaEditor *obj, gint tabsize, GError **err);
	void (*set_use_spaces) (IAnjutaEditor *obj, gboolean use_spaces, GError **err);
} IAnjutaEditorIface;


enum IAnjutaEditorAttribute

typedef enum {
	IANJUTA_EDITOR_TEXT,
	IANJUTA_EDITOR_KEYWORD,
	IANJUTA_EDITOR_COMMENT,
	IANJUTA_EDITOR_STRING
} IAnjutaEditorAttribute;

This enumeration is used to specify the type of text. Note that not all editors implement this.

IANJUTA_EDITOR_TEXT

Normal text

IANJUTA_EDITOR_KEYWORD

A keyword of the programming language

IANJUTA_EDITOR_COMMENT

A comment

IANJUTA_EDITOR_STRING

A string

enum IAnjutaEditorError

typedef enum {
	IANJUTA_EDITOR_DOESNT_EXIST
} IAnjutaEditorError;


ianjuta_editor_error_get_type ()

GType               ianjuta_editor_error_get_type       (void);

Returns :


ianjuta_editor_error_quark ()

GQuark              ianjuta_editor_error_quark          (void);

Returns :


ianjuta_editor_get_type ()

GType               ianjuta_editor_get_type             (void);

Returns :


ianjuta_editor_append ()

void                ianjuta_editor_append               (IAnjutaEditor *obj,
                                                         const gchar *text,
                                                         gint length,
                                                         GError **err);

Appends length characters from text buffer at the end of editor buffer. If length is -1, the whole text is used. length is in bytes.

obj :

Self

text :

Text toass="refsect2" title="IANJUTA_TYPE_EDITOR_ERROR">

IANJUTA_TYPE_EDITOR_ERROR

#define IANJUTA_TYPE_EDITOR_ERROR (ianjuta_editor_error_get_type())


IANJUTA_EDITOR_ERROR

#define IANJUTA_EDITOR_ERROR ianjuta_editor_error_quark()


IAnjutaEditor

typedef struct _IAnjutaEditor IAnjutaEditor;


IAnjutaEditorIface

typedef struct {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*backspace) (IAnjutaEditor *obj);
	/* Signal */
	void (*changed) (IAnjutaEditor *obj, GObject *position,  gboolean added,  gint length,  gint lines,  const gchar *text);
	/* Signal */
	void (*char_added) (IAnjutaEditor *obj, GObject *position,  gchar ch);
	/* Signal */
	void (*cursor_moved) (IAnjutaEditor *obj);
	/* Signal */
	void (*line_marks_gutter_clicked) (IAnjutaEditor *obj, gint location);

	void (*append) (IAnjutaEditor *obj, const gchar *text,  gint length, GError **err);
	void (*erase) (IAnjutaEditor *obj, IAnjutaIterable *position_start,  IAnjutaIterable *position_end, GError **err);
	void (*erase_all) (IAnjutaEditor *obj, GError **err);
	gint (*get_column) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_current_word) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_end_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_length) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_line_begin_position) (IAnjutaEditor *obj, gint line, GError **err);
	IAnjutaIterable * (*get_line_end_position) (IAnjutaEditor *obj, gint line, GError **err);
	int (*get_line_from_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	gint (*get_lineno) (IAnjutaEditor *obj, GError **err);
	gint (*get_offset) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_overwrite) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position_from_offset) (IAnjutaEditor *obj, gint offset, GError **err);
	IAnjutaIterable* (*get_start_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_tabsize) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_text) (IAnjutaEditor *obj, IAnjutaIterable *begin,  IAnjutaIterable *end, GError **err);
	gchar* (*get_text_all) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_use_spaces) (IAnjutaEditor *obj, GError **err);
	void (*goto_end) (IAnjutaEditor *obj, GError **err);
	void (*goto_line) (IAnjutaEditor *obj, gint lineno, GError **err);
	void (*goto_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	void (*goto_start) (IAnjutaEditor *obj, GError **err);
	void (*insert) (IAnjutaEditor *obj, IAnjutaIterable *position,  const gchar *text,  gint length, GError **err);
	void (*set_auto_indent) (IAnjutaEditor *obj, gboolean auto_indent, GError **err);
	void (*set_popup_menu) (IAnjutaEditor *obj, GtkWidget *menu, GError **err);
	void (*set_tabsize) (IAnjutaEditor *obj, gint tabsize, GError **err);
	void (*set_use_spaces) (IAnjutaEditor *obj, gboolean use_spaces, GError **err);
} IAnjutaEditorIface;


enum IAnjutaEditorAttribute

typedef enum {
	IANJUTA_EDITOR_TEXT,
	IANJUTA_EDITOR_KEYWORD,
	IANJUTA_EDITOR_COMMENT,
	IANJUTA_EDITOR_STRING
} IAnjutaEditorAttribute;

This enumeration is used to specify the type of text. Note that not all editors implement this.

IANJUTA_EDITOR_TEXT

Normal text

IANJUTA_EDITOR_KEYWORD

A keyword of the programming language

IANJUTA_EDITOR_COMMENT

A comment

IANJUTA_EDITOR_STRING

A string

enum IAnjutaEditorError

typedef enum {
	IANJUTA_EDITOR_DOESNT_EXIST
} IAnjutaEditorError;


ianjuta_editor_error_get_type ()

GType               ianjuta_editor_error_get_type       (void);

Returns :


ianjuta_editor_error_quark ()

GQuark              ianjuta_editor_error_quark          (void);

Returns :


ianjuta_editor_get_type ()

GType               ianjuta_editor_get_type             (void);

Returns :


ianjuta_editor_append ()

void                ianjuta_editor_append               (IAnjutaEditor *obj,
                                                         const gchar *text,
                                                         gint length,
                                                         GError **err);

Appends length characters from text buffer at the end of editor buffer. If length is -1, the whole text is used. length is in bytes.

obj :

Self

text :

Text toass="refsect2" title="IANJUTA_TYPE_EDITOR_ERROR">

IANJUTA_TYPE_EDITOR_ERROR

#define IANJUTA_TYPE_EDITOR_ERROR (ianjuta_editor_error_get_type())


IANJUTA_EDITOR_ERROR

#define IANJUTA_EDITOR_ERROR ianjuta_editor_error_quark()


IAnjutaEditor

typedef struct _IAnjutaEditor IAnjutaEditor;


IAnjutaEditorIface

typedef struct {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*backspace) (IAnjutaEditor *obj);
	/* Signal */
	void (*changed) (IAnjutaEditor *obj, GObject *position,  gboolean added,  gint length,  gint lines,  const gchar *text);
	/* Signal */
	void (*char_added) (IAnjutaEditor *obj, GObject *position,  gchar ch);
	/* Signal */
	void (*cursor_moved) (IAnjutaEditor *obj);
	/* Signal */
	void (*line_marks_gutter_clicked) (IAnjutaEditor *obj, gint location);

	void (*append) (IAnjutaEditor *obj, const gchar *text,  gint length, GError **err);
	void (*erase) (IAnjutaEditor *obj, IAnjutaIterable *position_start,  IAnjutaIterable *position_end, GError **err);
	void (*erase_all) (IAnjutaEditor *obj, GError **err);
	gint (*get_column) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_current_word) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_end_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_length) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_line_begin_position) (IAnjutaEditor *obj, gint line, GError **err);
	IAnjutaIterable * (*get_line_end_position) (IAnjutaEditor *obj, gint line, GError **err);
	int (*get_line_from_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	gint (*get_lineno) (IAnjutaEditor *obj, GError **err);
	gint (*get_offset) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_overwrite) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position_from_offset) (IAnjutaEditor *obj, gint offset, GError **err);
	IAnjutaIterable* (*get_start_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_tabsize) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_text) (IAnjutaEditor *obj, IAnjutaIterable *begin,  IAnjutaIterable *end, GError **err);
	gchar* (*get_text_all) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_use_spaces) (IAnjutaEditor *obj, GError **err);
	void (*goto_end) (IAnjutaEditor *obj, GError **err);
	void (*goto_line) (IAnjutaEditor *obj, gint lineno, GError **err);
	void (*goto_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	void (*goto_start) (IAnjutaEditor *obj, GError **err);
	void (*insert) (IAnjutaEditor *obj, IAnjutaIterable *position,  const gchar *text,  gint length, GError **err);
	void (*set_auto_indent) (IAnjutaEditor *obj, gboolean auto_indent, GError **err);
	void (*set_popup_menu) (IAnjutaEditor *obj, GtkWidget *menu, GError **err);
	void (*set_tabsize) (IAnjutaEditor *obj, gint tabsize, GError **err);
	void (*set_use_spaces) (IAnjutaEditor *obj, gboolean use_spaces, GError **err);
} IAnjutaEditorIface;


enum IAnjutaEditorAttribute

typedef enum {
	IANJUTA_EDITOR_TEXT,
	IANJUTA_EDITOR_KEYWORD,
	IANJUTA_EDITOR_COMMENT,
	IANJUTA_EDITOR_STRING
} IAnjutaEditorAttribute;

This enumeration is used to specify the type of text. Note that not all editors implement this.

IANJUTA_EDITOR_TEXT

Normal text

IANJUTA_EDITOR_KEYWORD

A keyword of the programming language

IANJUTA_EDITOR_COMMENT

A comment

IANJUTA_EDITOR_STRING

A string

enum IAnjutaEditorError

typedef enum {
	IANJUTA_EDITOR_DOESNT_EXIST
} IAnjutaEditorError;


ianjuta_editor_error_get_type ()

GType               ianjuta_editor_error_get_type       (void);

Returns :


ianjuta_editor_error_quark ()

GQuark              ianjuta_editor_error_quark          (void);

Returns :


ianjuta_editor_get_type ()

GType               ianjuta_editor_get_type             (void);

Returns :


ianjuta_editor_append ()

void                ianjuta_editor_append               (IAnjutaEditor *obj,
                                                         const gchar *text,
                                                         gint length,
                                                         GError **err);

Appends length characters from text buffer at the end of editor buffer. If length is -1, the whole text is used. length is in bytes.

obj :

Self

text :

Text toass="refsect2" title="IANJUTA_TYPE_EDITOR_ERROR">

IANJUTA_TYPE_EDITOR_ERROR

#define IANJUTA_TYPE_EDITOR_ERROR (ianjuta_editor_error_get_type())


IANJUTA_EDITOR_ERROR

#define IANJUTA_EDITOR_ERROR ianjuta_editor_error_quark()


IAnjutaEditor

typedef struct _IAnjutaEditor IAnjutaEditor;


IAnjutaEditorIface

typedef struct {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*backspace) (IAnjutaEditor *obj);
	/* Signal */
	void (*changed) (IAnjutaEditor *obj, GObject *position,  gboolean added,  gint length,  gint lines,  const gchar *text);
	/* Signal */
	void (*char_added) (IAnjutaEditor *obj, GObject *position,  gchar ch);
	/* Signal */
	void (*cursor_moved) (IAnjutaEditor *obj);
	/* Signal */
	void (*line_marks_gutter_clicked) (IAnjutaEditor *obj, gint location);

	void (*append) (IAnjutaEditor *obj, const gchar *text,  gint length, GError **err);
	void (*erase) (IAnjutaEditor *obj, IAnjutaIterable *position_start,  IAnjutaIterable *position_end, GError **err);
	void (*erase_all) (IAnjutaEditor *obj, GError **err);
	gint (*get_column) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_current_word) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_end_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_length) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_line_begin_position) (IAnjutaEditor *obj, gint line, GError **err);
	IAnjutaIterable * (*get_line_end_position) (IAnjutaEditor *obj, gint line, GError **err);
	int (*get_line_from_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	gint (*get_lineno) (IAnjutaEditor *obj, GError **err);
	gint (*get_offset) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_overwrite) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position_from_offset) (IAnjutaEditor *obj, gint offset, GError **err);
	IAnjutaIterable* (*get_start_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_tabsize) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_text) (IAnjutaEditor *obj, IAnjutaIterable *begin,  IAnjutaIterable *end, GError **err);
	gchar* (*get_text_all) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_use_spaces) (IAnjutaEditor *obj, GError **err);
	void (*goto_end) (IAnjutaEditor *obj, GError **err);
	void (*goto_line) (IAnjutaEditor *obj, gint lineno, GError **err);
	void (*goto_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	void (*goto_start) (IAnjutaEditor *obj, GError **err);
	void (*insert) (IAnjutaEditor *obj, IAnjutaIterable *position,  const gchar *text,  gint length, GError **err);
	void (*set_auto_indent) (IAnjutaEditor *obj, gboolean auto_indent, GError **err);
	void (*set_popup_menu) (IAnjutaEditor *obj, GtkWidget *menu, GError **err);
	void (*set_tabsize) (IAnjutaEditor *obj, gint tabsize, GError **err);
	void (*set_use_spaces) (IAnjutaEditor *obj, gboolean use_spaces, GError **err);
} IAnjutaEditorIface;


enum IAnjutaEditorAttribute

typedef enum {
	IANJUTA_EDITOR_TEXT,
	IANJUTA_EDITOR_KEYWORD,
	IANJUTA_EDITOR_COMMENT,
	IANJUTA_EDITOR_STRING
} IAnjutaEditorAttribute;

This enumeration is used to specify the type of text. Note that not all editors implement this.

IANJUTA_EDITOR_TEXT

Normal text

IANJUTA_EDITOR_KEYWORD

A keyword of the programming language

IANJUTA_EDITOR_COMMENT

A comment

IANJUTA_EDITOR_STRING

A string

enum IAnjutaEditorError

typedef enum {
	IANJUTA_EDITOR_DOESNT_EXIST
} IAnjutaEditorError;


ianjuta_editor_error_get_type ()

GType               ianjuta_editor_error_get_type       (void);

Returns :


ianjuta_editor_error_quark ()

GQuark              ianjuta_editor_error_quark          (void);

Returns :


ianjuta_editor_get_type ()

GType               ianjuta_editor_get_type             (void);

Returns :


ianjuta_editor_append ()

void                ianjuta_editor_append               (IAnjutaEditor *obj,
                                                         const gchar *text,
                                                         gint length,
                                                         GError **err);

Appends length characters from text buffer at the end of editor buffer. If length is -1, the whole text is used. length is in bytes.

obj :

Self

text :

Text toass="refsect2" title="IANJUTA_TYPE_EDITOR_ERROR">

IANJUTA_TYPE_EDITOR_ERROR

#define IANJUTA_TYPE_EDITOR_ERROR (ianjuta_editor_error_get_type())


IANJUTA_EDITOR_ERROR

#define IANJUTA_EDITOR_ERROR ianjuta_editor_error_quark()


IAnjutaEditor

typedef struct _IAnjutaEditor IAnjutaEditor;


IAnjutaEditorIface

typedef struct {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*backspace) (IAnjutaEditor *obj);
	/* Signal */
	void (*changed) (IAnjutaEditor *obj, GObject *position,  gboolean added,  gint length,  gint lines,  const gchar *text);
	/* Signal */
	void (*char_added) (IAnjutaEditor *obj, GObject *position,  gchar ch);
	/* Signal */
	void (*cursor_moved) (IAnjutaEditor *obj);
	/* Signal */
	void (*line_marks_gutter_clicked) (IAnjutaEditor *obj, gint location);

	void (*append) (IAnjutaEditor *obj, const gchar *text,  gint length, GError **err);
	void (*erase) (IAnjutaEditor *obj, IAnjutaIterable *position_start,  IAnjutaIterable *position_end, GError **err);
	void (*erase_all) (IAnjutaEditor *obj, GError **err);
	gint (*get_column) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_current_word) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_end_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_length) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_line_begin_position) (IAnjutaEditor *obj, gint line, GError **err);
	IAnjutaIterable * (*get_line_end_position) (IAnjutaEditor *obj, gint line, GError **err);
	int (*get_line_from_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	gint (*get_lineno) (IAnjutaEditor *obj, GError **err);
	gint (*get_offset) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_overwrite) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position_from_offset) (IAnjutaEditor *obj, gint offset, GError **err);
	IAnjutaIterable* (*get_start_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_tabsize) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_text) (IAnjutaEditor *obj, IAnjutaIterable *begin,  IAnjutaIterable *end, GError **err);
	gchar* (*get_text_all) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_use_spaces) (IAnjutaEditor *obj, GError **err);
	void (*goto_end) (IAnjutaEditor *obj, GError **err);
	void (*goto_line) (IAnjutaEditor *obj, gint lineno, GError **err);
	void (*goto_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	void (*goto_start) (IAnjutaEditor *obj, GError **err);
	void (*insert) (IAnjutaEditor *obj, IAnjutaIterable *position,  const gchar *text,  gint length, GError **err);
	void (*set_auto_indent) (IAnjutaEditor *obj, gboolean auto_indent, GError **err);
	void (*set_popup_menu) (IAnjutaEditor *obj, GtkWidget *menu, GError **err);
	void (*set_tabsize) (IAnjutaEditor *obj, gint tabsize, GError **err);
	void (*set_use_spaces) (IAnjutaEditor *obj, gboolean use_spaces, GError **err);
} IAnjutaEditorIface;


enum IAnjutaEditorAttribute

typedef enum {
	IANJUTA_EDITOR_TEXT,
	IANJUTA_EDITOR_KEYWORD,
	IANJUTA_EDITOR_COMMENT,
	IANJUTA_EDITOR_STRING
} IAnjutaEditorAttribute;

This enumeration is used to specify the type of text. Note that not all editors implement this.

IANJUTA_EDITOR_TEXT

Normal text

IANJUTA_EDITOR_KEYWORD

A keyword of the programming language

IANJUTA_EDITOR_COMMENT

A comment

IANJUTA_EDITOR_STRING

A string

enum IAnjutaEditorError

typedef enum {
	IANJUTA_EDITOR_DOESNT_EXIST
} IAnjutaEditorError;


ianjuta_editor_error_get_type ()

GType               ianjuta_editor_error_get_type       (void);

Returns :


ianjuta_editor_error_quark ()

GQuark              ianjuta_editor_error_quark          (void);

Returns :


ianjuta_editor_get_type ()

GType               ianjuta_editor_get_type             (void);

Returns :


ianjuta_editor_append ()

void                ianjuta_editor_append               (IAnjutaEditor *obj,
                                                         const gchar *text,
                                                         gint length,
                                                         GError **err);

Appends length characters from text buffer at the end of editor buffer. If length is -1, the whole text is used. length is in bytes.

obj :

Self

text :

Text toass="refsect2" title="IANJUTA_TYPE_EDITOR_ERROR">

IANJUTA_TYPE_EDITOR_ERROR

#define IANJUTA_TYPE_EDITOR_ERROR (ianjuta_editor_error_get_type())


IANJUTA_EDITOR_ERROR

#define IANJUTA_EDITOR_ERROR ianjuta_editor_error_quark()


IAnjutaEditor

typedef struct _IAnjutaEditor IAnjutaEditor;


IAnjutaEditorIface

typedef struct {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*backspace) (IAnjutaEditor *obj);
	/* Signal */
	void (*changed) (IAnjutaEditor *obj, GObject *position,  gboolean added,  gint length,  gint lines,  const gchar *text);
	/* Signal */
	void (*char_added) (IAnjutaEditor *obj, GObject *position,  gchar ch);
	/* Signal */
	void (*cursor_moved) (IAnjutaEditor *obj);
	/* Signal */
	void (*line_marks_gutter_clicked) (IAnjutaEditor *obj, gint location);

	void (*append) (IAnjutaEditor *obj, const gchar *text,  gint length, GError **err);
	void (*erase) (IAnjutaEditor *obj, IAnjutaIterable *position_start,  IAnjutaIterable *position_end, GError **err);
	void (*erase_all) (IAnjutaEditor *obj, GError **err);
	gint (*get_column) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_current_word) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_end_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_length) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_line_begin_position) (IAnjutaEditor *obj, gint line, GError **err);
	IAnjutaIterable * (*get_line_end_position) (IAnjutaEditor *obj, gint line, GError **err);
	int (*get_line_from_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	gint (*get_lineno) (IAnjutaEditor *obj, GError **err);
	gint (*get_offset) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_overwrite) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position_from_offset) (IAnjutaEditor *obj, gint offset, GError **err);
	IAnjutaIterable* (*get_start_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_tabsize) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_text) (IAnjutaEditor *obj, IAnjutaIterable *begin,  IAnjutaIterable *end, GError **err);
	gchar* (*get_text_all) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_use_spaces) (IAnjutaEditor *obj, GError **err);
	void (*goto_end) (IAnjutaEditor *obj, GError **err);
	void (*goto_line) (IAnjutaEditor *obj, gint lineno, GError **err);
	void (*goto_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	void (*goto_start) (IAnjutaEditor *obj, GError **err);
	void (*insert) (IAnjutaEditor *obj, IAnjutaIterable *position,  const gchar *text,  gint length, GError **err);
	void (*set_auto_indent) (IAnjutaEditor *obj, gboolean auto_indent, GError **err);
	void (*set_popup_menu) (IAnjutaEditor *obj, GtkWidget *menu, GError **err);
	void (*set_tabsize) (IAnjutaEditor *obj, gint tabsize, GError **err);
	void (*set_use_spaces) (IAnjutaEditor *obj, gboolean use_spaces, GError **err);
} IAnjutaEditorIface;


enum IAnjutaEditorAttribute

typedef enum {
	IANJUTA_EDITOR_TEXT,
	IANJUTA_EDITOR_KEYWORD,
	IANJUTA_EDITOR_COMMENT,
	IANJUTA_EDITOR_STRING
} IAnjutaEditorAttribute;

This enumeration is used to specify the type of text. Note that not all editors implement this.

IANJUTA_EDITOR_TEXT

Normal text

IANJUTA_EDITOR_KEYWORD

A keyword of the programming language

IANJUTA_EDITOR_COMMENT

A comment

IANJUTA_EDITOR_STRING

A string

enum IAnjutaEditorError

typedef enum {
	IANJUTA_EDITOR_DOESNT_EXIST
} IAnjutaEditorError;


ianjuta_editor_error_get_type ()

GType               ianjuta_editor_error_get_type       (void);

Returns :


ianjuta_editor_error_quark ()

GQuark              ianjuta_editor_error_quark          (void);

Returns :


ianjuta_editor_get_type ()

GType               ianjuta_editor_get_type             (void);

Returns :


ianjuta_editor_append ()

void                ianjuta_editor_append               (IAnjutaEditor *obj,
                                                         const gchar *text,
                                                         gint length,
                                                         GError **err);

Appends length characters from text buffer at the end of editor buffer. If length is -1, the whole text is used. length is in bytes.

obj :

Self

text :

Text toass="refsect2" title="IANJUTA_TYPE_EDITOR_ERROR">

IANJUTA_TYPE_EDITOR_ERROR

#define IANJUTA_TYPE_EDITOR_ERROR (ianjuta_editor_error_get_type())


IANJUTA_EDITOR_ERROR

#define IANJUTA_EDITOR_ERROR ianjuta_editor_error_quark()


IAnjutaEditor

typedef struct _IAnjutaEditor IAnjutaEditor;


IAnjutaEditorIface

typedef struct {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*backspace) (IAnjutaEditor *obj);
	/* Signal */
	void (*changed) (IAnjutaEditor *obj, GObject *position,  gboolean added,  gint length,  gint lines,  const gchar *text);
	/* Signal */
	void (*char_added) (IAnjutaEditor *obj, GObject *position,  gchar ch);
	/* Signal */
	void (*cursor_moved) (IAnjutaEditor *obj);
	/* Signal */
	void (*line_marks_gutter_clicked) (IAnjutaEditor *obj, gint location);

	void (*append) (IAnjutaEditor *obj, const gchar *text,  gint length, GError **err);
	void (*erase) (IAnjutaEditor *obj, IAnjutaIterable *position_start,  IAnjutaIterable *position_end, GError **err);
	void (*erase_all) (IAnjutaEditor *obj, GError **err);
	gint (*get_column) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_current_word) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_end_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_length) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_line_begin_position) (IAnjutaEditor *obj, gint line, GError **err);
	IAnjutaIterable * (*get_line_end_position) (IAnjutaEditor *obj, gint line, GError **err);
	int (*get_line_from_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	gint (*get_lineno) (IAnjutaEditor *obj, GError **err);
	gint (*get_offset) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_overwrite) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position) (IAnjutaEditor *obj, GError **err);
	IAnjutaIterable* (*get_position_from_offset) (IAnjutaEditor *obj, gint offset, GError **err);
	IAnjutaIterable* (*get_start_position) (IAnjutaEditor *obj, GError **err);
	gint (*get_tabsize) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_text) (IAnjutaEditor *obj, IAnjutaIterable *begin,  IAnjutaIterable *end, GError **err);
	gchar* (*get_text_all) (IAnjutaEditor *obj, GError **err);
	gboolean (*get_use_spaces) (IAnjutaEditor *obj, GError **err);
	void (*goto_end) (IAnjutaEditor *obj, GError **err);
	void (*goto_line) (IAnjutaEditor *obj, gint lineno, GError **err);
	void (*goto_position) (IAnjutaEditor *obj, IAnjutaIterable *position, GError **err);
	void (*goto_start) (IAnjutaEditor *obj, GError **err);
	void (*insert) (IAnjutaEditor *obj, IAnjutaIterable *position,  const gchar *text,  gint length, GError **err);
	void (*set_auto_indent) (IAnjutaEditor *obj, gboolean auto_indent, GError **err);
	void (*set_popup_menu) (IAnjutaEditor *obj, GtkWidget *menu, GError **err);
	void (*set_tabsize) (IAnjutaEditor *obj, gint tabsize, GError **err);
	void (*set_use_spaces) (IAnjutaEditor *obj, gboolean use_spaces, GError **err);
} IAnjutaEditorIface;


enum IAnjutaEditorAttribute

typedef enum {
	IANJUTA_EDITOR_TEXT,
	IANJUTA_EDITOR_KEYWORD,
	IANJUTA_EDITOR_COMMENT,
	IANJUTA_EDITOR_STRING
} IAnjutaEditorAttribute;

This enumeration is used to specify the type of text. Note that not all editors implement this.

IANJUTA_EDITOR_TEXT

Normal text

IANJUTA_EDITOR_KEYWORD

A keyword of the programming language

IANJUTA_EDITOR_COMMENT

A comment

IANJUTA_EDITOR_STRING

A string

enum IAnjutaEditorError

typedef enum {
	IANJUTA_EDITOR_DOESNT_EXIST
} IAnjutaEditorError;


ianjuta_editor_error_get_type ()

GType               ianjuta_editor_error_get_type       (void);