diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-20 01:50:14 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-20 01:50:14 -0300 |
commit | 8693eef8febde4df90b7fbd1fb9ac813b132fa50 (patch) | |
tree | 088258d6333d54a6b90f331d3b723ae824110679 /src/client/cursor.cpp | |
parent | 7620a0b1c080f7b6315e796d29e324bdca98484b (diff) | |
download | jet-8693eef8febde4df90b7fbd1fb9ac813b132fa50.tar.gz jet-8693eef8febde4df90b7fbd1fb9ac813b132fa50.zip |
Wrap external functionality into classes
Diffstat (limited to 'src/client/cursor.cpp')
-rw-r--r-- | src/client/cursor.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/client/cursor.cpp b/src/client/cursor.cpp deleted file mode 100644 index 4e76151..0000000 --- a/src/client/cursor.cpp +++ /dev/null @@ -1,13 +0,0 @@ -struct Cursor { - int x; - int y; - Window *w; - - void move_left() { - if (x > 0) x--; - } - - void move_right() { - if (x < w->width - 1 && w->pos(x + 1, y) != 0) x++; - } -}; |