24 unsigned int const i_len_x,
25 unsigned int const i_len_y);
43 unsigned char const __FAR*
69 operator=(
edit const&);
82 unsigned char const i_char,
110 unsigned char __FAR*& io_ptr,
112 int& io_pos_y)
const;
131 inline unsigned char const __FAR*
134 unsigned char const __FAR* l_ptr;
cursor_mode
mode of cursor such as overwrite or insert
Definition: cursor.h:23
size_t m_start
Definition: gapbuf.h:26
A dynamic text buffer implementing the gap buffer algorithm.
void cursor_block()
sets the cursor shape to a solid block
Definition: djgpp/cursor.c:60
void focus_enter()
handle entering focus
Definition: edit.cpp:678
manipulation of the screens cursor
void caret_set_position() const
moves the cursor to the current position (m_caret)
Definition: edit.cpp:48
size_t get_text_length() const
get the number of used bytes in the buffer
Definition: edit.hpp:142
virtual void draw() const
draws the widget
Definition: edit.cpp:739
size_t m_offset_x
Definition: edit.hpp:55
bool char_backspace()
backspace
Definition: edit.cpp:69
bool cursor_down()
move cursor down a line
Definition: edit.cpp:284
size_t m_end
Definition: gapbuf.h:27
virtual enum event_response event_key(struct event_key const &i_event)
handle key event
Definition: edit.cpp:841
bool cursor_left()
move cursor left
Definition: edit.cpp:472
bool cursor_end()
move cursor to end of line
Definition: edit.cpp:390
bool move_to_offset_x(unsigned char __FAR *&io_ptr, size_t &io_offset, int &io_pos_y) const
move to m_offset_x cursor position
Definition: edit.cpp:691
size_t m_caret_x
Definition: edit.hpp:51
Multi-line edit widget.
Definition: edit.hpp:16
void focus_leave()
handle leaving focus
Definition: edit.cpp:685
struct gapbuf m_gap
Definition: edit.hpp:59
void cursor_underline()
sets the cursor shape to underline
Definition: djgpp/cursor.c:47
size_t m_lines
Definition: edit.hpp:58
event_response
response
Definition: event.h:14
size_t m_line_top_offset
Definition: edit.hpp:57
size_t m_cursor
Definition: edit.hpp:54
bool char_delete()
delete character
Definition: edit.cpp:174
bool cursor_home()
move cursor to end of line
Definition: edit.cpp:444
size_t m_sticky_caret_x
Definition: edit.hpp:53
virtual ~edit()
destructor
Definition: edit.cpp:39
size_t m_block_size
Definition: gapbuf.h:25
size_t m_caret_y
Definition: edit.hpp:52
bool cursor_up()
move cursor up a line
Definition: edit.cpp:548
enum cursor_mode _cursor_mode
global to hold the mode of the cursor
Definition: djgpp/cursor.c:15
unsigned char const __FAR * get_text()
get the text buffer
Definition: edit.hpp:132
void cursor_show()
sets the cursor type/shape. Cursor shape depends on the state of the cursor (insert/overwrite) and wi...
Definition: edit.hpp:116
unsigned char const __FAR * gapbuf_text(struct gapbuf *const io_gap)
get the text buffer
Definition: gapbuf.c:403
bool char_insert_newline()
insert new line character
Definition: edit.cpp:247
bool char_insert(unsigned char const i_char, enum cursor_mode const i_cursor_mode)
insert character
Definition: edit.cpp:204
size_t m_line_top
Definition: edit.hpp:56
container for a keyboard event
Definition: event.h:23
bool cursor_right()
move cursor right
Definition: edit.cpp:506