summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-10 10:13:17 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-10 10:13:17 +0100
commit3e434c89de052c1909952746368e837fb68e0ae2 (patch)
tree9084824b4ae06233be9ddf3ae30cda4624666ba8 /buffer.h
parent121baddb4cd919d98bf5dfea0ad78ca0bee58a2e (diff)
Move downward
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/buffer.h b/buffer.h
index fd9b062..4c15703 100644
--- a/buffer.h
+++ b/buffer.h
@@ -34,9 +34,18 @@ class Buffer{
};
Cursorpos cursor={0,0};
+ struct Screenpos{
+ i64 y,x;
+ };
+
vector<ScreenLine> layoutLine(const string &line,i64 linenum,i64 width);
void performInitialLayout(i64 width,i64 height);
void renewLayout(i64 topLine,i64 topPart,i64 width,i64 height);
+ void relayoutScreen();
+
+ Screenpos findCursorInScreen() const;
+
+ void handleCommand(const Command &cmd);
public:
string filename;