From 3e434c89de052c1909952746368e837fb68e0ae2 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 10 Jan 2017 10:13:17 +0100 Subject: Move downward --- buffer.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'buffer.h') 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 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; -- cgit v1.2.3-54-g00ecf