void buffer_char_insert(char c)
Definition buffer.c:95
int buffer_move_ln_down(struct AS_TextBuf *active_buffer)
Definition buffer.c:398
void buffer_char_del()
Definition buffer.c:232
int buffer_move_ln_up(struct AS_TextBuf *active_buffer)
Definition buffer.c:311
void destroy_buffer(struct AS_TextBuf *buffer)
Definition buffer.c:70
struct AS_TextBuf * new_buffer(int col_start, int col_end)
Definition buffer.c:52
Definition interface.h:89
struct AS_LLElement * prev
A pointer to the previous line, NULL if this is the first line.
Definition buffer.h:69
char * contents
Contains a single line of the open file (zero terminated, with no ' ' character).
Definition buffer.h:65
struct AS_LLElement * next
A pointer to the next line, NULL if this is the last line.
Definition buffer.h:67
struct AS_SyntaxPoint * syntax
A pointer to a linked list outlining how certain regions of contents is supposed to be colored.
Definition buffer.h:71
int length
The number of characters that are included within the region (minimum: 1)
Definition buffer.h:50
struct AS_SyntaxPoint * next
A pointer to the next syntax point, NULL if this is the last point.
Definition buffer.h:55
int x
Offset into AS_TextBuf->contents at which this applies.
Definition buffer.h:48
int color
The index of the color pair for this region.
Definition buffer.h:53
struct AS_LLElement * head
The first line in the buffer.
Definition buffer.h:93
struct AS_LLElement * virtual_head
The first line on screen.
Definition buffer.h:95
int col_start
The start index of the buffer's column.
Definition buffer.h:83
struct AS_LLElement * current_element
Pointer to the line at (cx, cy).
Definition buffer.h:97
int col_end
The end index of the buffer's column.
Definition buffer.h:85
struct AS_Bound selection_start
0-based coordinates of the selection's start.
Definition buffer.h:90
int cx
Cursor's X position in buffer.
Definition buffer.h:81
struct AS_LLElement * selection_start_line
Pointer to the line at (0, selection_start.y).
Definition buffer.h:99
uint8_t selection_enabled
Determines if selection is enabled for this buffer (1).
Definition buffer.h:88