ianjuta-editor

ianjuta-editor —

Synopsis




enum        IAnjutaEditorError;
#define     IANJUTA_EDITOR_ERROR
            IAnjutaEditor;
            IAnjutaEditorIface;
GQuark      ianjuta_editor_error_quark      (void);
gchar*      ianjuta_editor_get_attributes   (IAnjutaEditor *obj,
                                             gint start,
                                             gint end,
                                             GError **err);
gchar*      ianjuta_editor_get_selection    (IAnjutaEditor *obj,
                                             GError **err);
gchar*      ianjuta_editor_get_text         (IAnjutaEditor *obj,
                                             gint start,
                                             gint end,
                                             GError **err);
gint        ianjuta_editor_get_lineno       (IAnjutaEditor *obj,
                                             GError **err);
gint        ianjuta_editor_get_length       (IAnjutaEditor *obj,
                                             GError **err);
gint        ianjuta_editor_get_position     (IAnjutaEditor *obj,
                                             GError **err);
gchar*      ianjuta_editor_get_current_word (IAnjutaEditor *obj,
                                             GError **err);
const gchar* ianjuta_editor_get_filename    (IAnjutaEditor *obj,
                                             GError **err);
void        ianjuta_editor_goto_line        (IAnjutaEditor *obj,
                                             gint lineno,
                                             GError **err);
void        ianjuta_editor_goto_position    (IAnjutaEditor *obj,
                                             gint position,
                                             GError **err);
void        ianjuta_editor_insert           (IAnjutaEditor *obj,
                                             int position,
                                             const gchar *text,
                                             gint length,
                                             GError **err);

Object Hierarchy


  GInterface
   +----IAnjutaEditor

Prerequisites

IAnjutaEditor requires GObject.

Description

Details

enum IAnjutaEditorError

typedef enum {
	IANJUTA_EDITOR_DOESNT_EXIST
} IAnjutaEditorError;


IANJUTA_EDITOR_ERROR

#define IANJUTA_EDITOR_ERROR ianjuta_editor_error_quark()


IAnjutaEditor

typedef struct _IAnjutaEditor IAnjutaEditor;


IAnjutaEditorIface

typedef struct {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*char_added) (IAnjutaEditor *obj, gint position, gchar ch);
	/* Signal */
	void (*update_ui) (IAnjutaEditor *obj);

	void (*append) (IAnjutaEditor *obj, const gchar *text, gint length, GError **err);
	void (*erase_all) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_attributes) (IAnjutaEditor *obj, gint start, gint end, GError **err);
	gchar* (*get_current_word) (IAnjutaEditor *obj, GError **err);
	const gchar* (*get_filename) (IAnjutaEditor *obj, GError **err);
	gint (*get_length) (IAnjutaEditor *obj, GError **err);
	gint (*get_lineno) (IAnjutaEditor *obj, GError **err);
	gint (*get_position) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_selection) (IAnjutaEditor *obj, GError **err);
	gchar* (*get_text) (IAnjutaEditor *obj, gint start, gint end, GError **err);
	void (*goto_line) (IAnjutaEditor *obj, gint lineno, GError **err);
	void (*goto_position) (IAnjutaEditor *obj, gint position, GError **err);
	void (*insert) (IAnjutaEditor *obj, int position, const gchar *text, gint length, GError **err);
	void (*replace_selection) (IAnjutaEditor *obj, const gchar *text, gint length, GError **err);
} IAnjutaEditorIface;


ianjuta_editor_error_quark ()

GQuark      ianjuta_editor_error_quark      (void);

Returns :

ianjuta_editor_get_attributes ()

gchar*      ianjuta_editor_get_attributes   (IAnjutaEditor *obj,
                                             gint start,
                                             gint end,
                                             GError **err);

obj :
start :
end :
err :
Returns :

ianjuta_editor_get_selection ()

gchar*      ianjuta_editor_get_selection    (IAnjutaEditor *obj,
                                             GError **err);

obj :
err :
Returns :

ianjuta_editor_get_text ()

gchar*      ianjuta_editor_get_text         (IAnjutaEditor *obj,
                                             gint start,
                                             gint end,
                                             GError **err);

obj :
start :
end :
err :
Returns :

ianjuta_editor_get_lineno ()

gint        ianjuta_editor_get_lineno       (IAnjutaEditor *obj,
                                             GError **err);

Obtains number of the current line in the editor.

obj : Self
err : Error propagation and reporting
Returns : Line number.

ianjuta_editor_get_length ()

gint        ianjuta_editor_get_length       (IAnjutaEditor *obj,
                                             GError **err);

obj :
err :
Returns :

ianjuta_editor_get_position ()

gint        ianjuta_editor_get_position     (IAnjutaEditor *obj,
                                             GError **err);

obj :
err :
Returns :

ianjuta_editor_get_current_word ()

gchar*      ianjuta_editor_get_current_word (IAnjutaEditor *obj,
                                             GError **err);

obj :
err :
Returns :

ianjuta_editor_get_filename ()

const gchar* ianjuta_editor_get_filename    (IAnjutaEditor *obj,
                                             GError **err);

Allows obtaining of the filename the editor was loaded from.

obj : Self
err : Error propagation and reporting
Returns : The name of the file. Not to be freed by caller.

ianjuta_editor_goto_line ()

void        ianjuta_editor_goto_line        (IAnjutaEditor *obj,
                                             gint lineno,
                                             GError **err);

obj :
lineno :
err :

ianjuta_editor_goto_position ()

void        ianjuta_editor_goto_position    (IAnjutaEditor *obj,
                                             gint position,
                                             GError **err);

obj :
position :
err :

ianjuta_editor_insert ()

void        ianjuta_editor_insert           (IAnjutaEditor *obj,
                                             int position,
                                             const gchar *text,
                                             gint length,
                                             GError **err);

obj :
position :
text :
length :
err :