From 8693eef8febde4df90b7fbd1fb9ac813b132fa50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Mon, 20 Jul 2020 01:50:14 -0300 Subject: Wrap external functionality into classes --- src/client/cursor.cpp | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/client/cursor.cpp (limited to 'src/client/cursor.cpp') 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++; - } -}; -- cgit v1.2.3