![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <libanjuta/interfaces/ianjuta-editor-view.h> #define IANJUTA_EDITOR_VIEW_ERROR struct IAnjutaEditorViewIface; GQuark ianjuta_editor_view_error_quark (void
); void ianjuta_editor_view_create (IAnjutaEditorView *obj
,GError **err
); gint ianjuta_editor_view_get_count (IAnjutaEditorView *obj
,GError **err
); void ianjuta_editor_view_remove_current (IAnjutaEditorView *obj
,GError **err
);
An editor view is a visual representation of the editor. An editor can have multiple views. All views of an editor show the same editor content (buffer). Consequently, any change done in one view is updated in all other views.
struct IAnjutaEditorViewIface { IAnjutaEditorIface g_iface; void (*create) (IAnjutaEditorView *obj, GError **err); gint (*get_count) (IAnjutaEditorView *obj, GError **err); void (*remove_current) (IAnjutaEditorView *obj, GError **err); };
void ianjuta_editor_view_create (IAnjutaEditorView *obj
,GError **err
);
Creates a new view for the editor. The newly created view gets the user focus and scrolls to the same location as last view.
|
Self |
|
Error propagation and reporting |
gint ianjuta_editor_view_get_count (IAnjutaEditorView *obj
,GError **err
);
Total number of views currently present. It will never be less than 1. Invalid return values are considered error condition.
|
Self |
|
Error propagation and reporting |
void ianjuta_editor_view_remove_current (IAnjutaEditorView *obj
,GError **err
);
Removes currently focused editor view. It does not remove the last view of the editor. That is, if currently there is only one view of the editor, this function does nothing.
|
Self |
|
Error propagation and reporting |