Horizontal resolution: x1 x2 x3 4 x5 x6 x7. Vertical: x1 x2 x4. Use Alt-arrows to change. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
29 lines
417 B
C++
29 lines
417 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include <ncurses.h>
|
|
|
|
class Frame
|
|
{
|
|
public:
|
|
Frame();
|
|
|
|
WINDOW * getWindow();
|
|
WINDOW * getBuffer();
|
|
WINDOW * getStatus();
|
|
|
|
void init(int rows, int columns);
|
|
int getColumns() const;
|
|
|
|
private:
|
|
|
|
int myRows;
|
|
int myColumns;
|
|
|
|
std::shared_ptr<WINDOW> myFrame;
|
|
std::shared_ptr<WINDOW> myStatus;
|
|
std::shared_ptr<WINDOW> myBuffer;
|
|
std::shared_ptr<WINDOW> myBorders;
|
|
|
|
};
|