mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
selection: combine enum selection_kind with selection_semantic
This commit is contained in:
parent
fcca3d3e55
commit
3a9172342f
6 changed files with 47 additions and 38 deletions
10
terminal.h
10
terminal.h
|
|
@ -180,8 +180,13 @@ enum mouse_reporting {
|
|||
|
||||
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
|
||||
|
||||
enum selection_kind { SELECTION_NONE, SELECTION_NORMAL, SELECTION_BLOCK };
|
||||
enum selection_semantic { SELECTION_SEMANTIC_NONE, SELECTION_SEMANTIC_WORD, SELECTION_SEMANTIC_ROW};
|
||||
enum selection_kind {
|
||||
SELECTION_NONE,
|
||||
SELECTION_CHAR_WISE,
|
||||
SELECTION_WORD_WISE,
|
||||
SELECTION_LINE_WISE,
|
||||
SELECTION_BLOCK
|
||||
};
|
||||
enum selection_direction {SELECTION_UNDIR, SELECTION_LEFT, SELECTION_RIGHT};
|
||||
enum selection_scroll_direction {SELECTION_SCROLL_NOT, SELECTION_SCROLL_UP, SELECTION_SCROLL_DOWN};
|
||||
|
||||
|
|
@ -360,7 +365,6 @@ struct terminal {
|
|||
|
||||
struct {
|
||||
enum selection_kind kind;
|
||||
enum selection_semantic semantic;
|
||||
enum selection_direction direction;
|
||||
struct coord start;
|
||||
struct coord end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue