-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathctextselect.h
More file actions
26 lines (20 loc) · 748 Bytes
/
ctextselect.h
File metadata and controls
26 lines (20 loc) · 748 Bytes
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
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct TextSelect TextSelect;
typedef const char* (*GetLineAtIdxFn)(size_t idx, void* userdata, size_t* out_len);
typedef size_t (*GetNumLinesFn)(void* userdata);
TextSelect* textselect_create(GetLineAtIdxFn getLineAtIdx,
GetNumLinesFn getNumLines,
void* userdata,
int enableWordWrap);
void textselect_destroy(TextSelect* ts);
int textselect_has_selection(const TextSelect* ts);
void textselect_copy(const TextSelect* ts);
void textselect_select_all(TextSelect* ts);
void textselect_update(TextSelect* ts);
void textselect_clear_selection(TextSelect* ts);
#ifdef __cplusplus
}
#endif