30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
#ifndef MOO_EDIT_SCRIPT_H
|
|
#define MOO_EDIT_SCRIPT_H
|
|
|
|
#include <mooedit/mooedit.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
char **moo_edit_get_selected_lines (MooEdit *doc);
|
|
void moo_edit_replace_selected_lines (MooEdit *doc,
|
|
char **replacement);
|
|
|
|
char *moo_edit_get_text (MooEdit *doc);
|
|
|
|
char *moo_edit_get_selected_text (MooEdit *doc);
|
|
void moo_edit_replace_selected_text (MooEdit *doc,
|
|
const char *replacement);
|
|
|
|
gboolean moo_edit_has_selection (MooEdit *doc);
|
|
void moo_edit_set_selection (MooEdit *doc,
|
|
int pos_start,
|
|
int pos_end);
|
|
|
|
int moo_edit_get_cursor_pos (MooEdit *doc);
|
|
void moo_edit_insert_text (MooEdit *doc,
|
|
const char *text);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* MOO_EDIT_SCRIPT_H */
|