2017-05-20 21:31:17 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <ncurses.h>
|
|
|
|
|
|
|
|
class Frame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Frame();
|
|
|
|
|
|
|
|
WINDOW * getWindow();
|
|
|
|
WINDOW * getBuffer();
|
2017-05-23 17:52:41 +01:00
|
|
|
WINDOW * getStatus();
|
2017-05-20 21:31:17 +01:00
|
|
|
|
|
|
|
void init(int columns);
|
|
|
|
int getColumns() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
int myColumns;
|
|
|
|
|
|
|
|
std::shared_ptr<WINDOW> myFrame;
|
2017-05-23 17:52:41 +01:00
|
|
|
std::shared_ptr<WINDOW> myStatus;
|
2017-05-20 21:31:17 +01:00
|
|
|
std::shared_ptr<WINDOW> myBuffer;
|
|
|
|
std::shared_ptr<WINDOW> myBorders;
|
|
|
|
|
|
|
|
};
|