1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
#ifndef FL_TEXT_BUFFER_GUARD
#define FL_TEXT_BUFFER_GUARD
typedef void* TEXTBUFFER;
extern "C" TEXTBUFFER new_fl_text_buffer(int rs, int pgs);
extern "C" void free_fl_text_buffer(TEXTBUFFER tb);
extern "C" void fl_text_buffer_add_modify_callback(TEXTBUFFER tb, void * cb, void * ud);
extern "C" void fl_text_buffer_add_predelete_callback(TEXTBUFFER tb, void * cb, void * ud);
extern "C" void fl_text_buffer_call_modify_callbacks(TEXTBUFFER tb);
extern "C" void fl_text_buffer_call_predelete_callbacks(TEXTBUFFER tb);
extern "C" int fl_text_buffer_loadfile(TEXTBUFFER tb, char * n, int b);
extern "C" int fl_text_buffer_appendfile(TEXTBUFFER tb, char * n, int b);
extern "C" int fl_text_buffer_insertfile(TEXTBUFFER tb, char * n, int p, int b);
extern "C" int fl_text_buffer_outputfile(TEXTBUFFER tb, char * n, int f, int t, int b);
extern "C" int fl_text_buffer_savefile(TEXTBUFFER tb, char * n, int b);
extern "C" void fl_text_buffer_insert(TEXTBUFFER tb, int p, const char * item);
extern "C" void fl_text_buffer_append(TEXTBUFFER tb, const char * item);
extern "C" void fl_text_buffer_replace(TEXTBUFFER tb, int s, int f, const char * text);
extern "C" void fl_text_buffer_remove(TEXTBUFFER tb, int s, int f);
extern "C" char * fl_text_buffer_get_text(TEXTBUFFER tb);
extern "C" void fl_text_buffer_set_text(TEXTBUFFER tb, char * t);
extern "C" char fl_text_buffer_byte_at(TEXTBUFFER tb, int p);
extern "C" unsigned int fl_text_buffer_char_at(TEXTBUFFER tb, int p);
extern "C" char * fl_text_buffer_text_range(TEXTBUFFER tb, int s, int f);
extern "C" int fl_text_buffer_next_char(TEXTBUFFER tb, int p);
extern "C" int fl_text_buffer_prev_char(TEXTBUFFER tb, int p);
extern "C" int fl_text_buffer_count_displayed_characters(TEXTBUFFER tb, int s, int f);
extern "C" int fl_text_buffer_count_lines(TEXTBUFFER tb, int s, int f);
extern "C" int fl_text_buffer_length(TEXTBUFFER tb);
extern "C" int fl_text_buffer_get_tab_distance(TEXTBUFFER tb);
extern "C" void fl_text_buffer_set_tab_distance(TEXTBUFFER tb, int t);
extern "C" int fl_text_buffer_selection_position(TEXTBUFFER tb, int * s, int * e);
extern "C" int fl_text_buffer_secondary_selection_position(TEXTBUFFER tb, int * s, int * e);
extern "C" void fl_text_buffer_select(TEXTBUFFER tb, int s, int e);
extern "C" void fl_text_buffer_secondary_select(TEXTBUFFER tb, int s, int e);
extern "C" int fl_text_buffer_selected(TEXTBUFFER tb);
extern "C" int fl_text_buffer_secondary_selected(TEXTBUFFER tb);
extern "C" char * fl_text_buffer_selection_text(TEXTBUFFER tb);
extern "C" char * fl_text_buffer_secondary_selection_text(TEXTBUFFER tb);
extern "C" void fl_text_buffer_replace_selection(TEXTBUFFER tb, char * t);
extern "C" void fl_text_buffer_replace_secondary_selection(TEXTBUFFER tb, char * t);
extern "C" void fl_text_buffer_remove_selection(TEXTBUFFER tb);
extern "C" void fl_text_buffer_remove_secondary_selection(TEXTBUFFER tb);
extern "C" void fl_text_buffer_unselect(TEXTBUFFER tb);
extern "C" void fl_text_buffer_secondary_unselect(TEXTBUFFER tb);
extern "C" void fl_text_buffer_highlight(TEXTBUFFER tb, int f, int t);
extern "C" char * fl_text_buffer_highlight_text(TEXTBUFFER tb);
extern "C" void fl_text_buffer_unhighlight(TEXTBUFFER tb);
extern "C" int fl_text_buffer_findchar_forward(TEXTBUFFER tb, int start, unsigned int item, int * found);
extern "C" int fl_text_buffer_findchar_backward(TEXTBUFFER tb, int start, unsigned int item, int * found);
extern "C" int fl_text_buffer_search_forward(TEXTBUFFER tb, int start, const char * item, int * found, int mcase);
extern "C" int fl_text_buffer_search_backward(TEXTBUFFER tb, int start, const char * item, int * found, int mcase);
extern "C" int fl_text_buffer_word_start(TEXTBUFFER tb, int p);
extern "C" int fl_text_buffer_word_end(TEXTBUFFER tb, int p);
extern "C" int fl_text_buffer_line_start(TEXTBUFFER tb, int p);
extern "C" int fl_text_buffer_line_end(TEXTBUFFER tb, int p);
extern "C" char * fl_text_buffer_line_text(TEXTBUFFER tb, int p);
extern "C" int fl_text_buffer_skip_lines(TEXTBUFFER tb, int s, int l);
extern "C" int fl_text_buffer_rewind_lines(TEXTBUFFER tb, int s, int l);
extern "C" int fl_text_buffer_skip_displayed_characters(TEXTBUFFER tb, int s, int n);
extern "C" void fl_text_buffer_canundo(TEXTBUFFER tb, char f);
extern "C" void fl_text_buffer_copy(TEXTBUFFER tb, TEXTBUFFER tb2, int s, int f, int i);
extern "C" int fl_text_buffer_utf8_align(TEXTBUFFER tb, int p);
#endif
|