017dc307b2
ncurses windows handling move to a separate file. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
26 lines
333 B
C++
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;
|
|
|
|
};
|