AppleWin/source/frontends/ncurses/nframe.h
Andrea Odetti e68748a158 Allow to control of high resolution graphics.
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>
2017-10-14 19:18:44 +01:00

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;
};