AppleWin/source/frontends/ncurses/nframe.h
Andrea Odetti ba6aaf6775 applen: make --headless really skip ncurses initialisation.
Stop with Ctrl-C.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-19 15:40:16 +00:00

35 lines
524 B
C++

#pragma once
#include <memory>
#include <ncurses.h>
class GraphicsColors;
class Frame
{
public:
Frame();
WINDOW * getWindow();
WINDOW * getStatus();
void init(int rows, int columns);
int getColumns() const;
static GraphicsColors & getColors();
static void unInitialise();
private:
int myRows;
int myColumns;
std::shared_ptr<WINDOW> myFrame;
std::shared_ptr<WINDOW> myStatus;
static std::shared_ptr<GraphicsColors> ourColors;
static bool ourInitialised;
static void initialise();
};