AppleWin/source/frontends/ncurses/frame.h
Andrea Odetti 017dc307b2 Handle 80 columns mode.
ncurses windows handling move to a separate file.


Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00

26 lines
333 B
C++

#pragma once
#include <memory>
#include <ncurses.h>
class Frame
{
public:
Frame();
WINDOW * getWindow();
WINDOW * getBuffer();
void init(int columns);
int getColumns() const;
private:
int myColumns;
std::shared_ptr<WINDOW> myFrame;
std::shared_ptr<WINDOW> myBuffer;
std::shared_ptr<WINDOW> myBorders;
};