2017-05-20 21:31:17 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <ncurses.h>
|
|
|
|
|
2020-12-19 15:02:04 +00:00
|
|
|
class GraphicsColors;
|
|
|
|
|
2017-05-20 21:31:17 +01:00
|
|
|
class Frame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Frame();
|
|
|
|
|
|
|
|
WINDOW * getWindow();
|
2017-05-23 17:52:41 +01:00
|
|
|
WINDOW * getStatus();
|
2017-05-20 21:31:17 +01:00
|
|
|
|
2017-06-24 19:01:08 +01:00
|
|
|
void init(int rows, int columns);
|
2017-05-20 21:31:17 +01:00
|
|
|
int getColumns() const;
|
|
|
|
|
2020-12-19 15:02:04 +00:00
|
|
|
static GraphicsColors & getColors();
|
|
|
|
|
|
|
|
static void unInitialise();
|
|
|
|
|
2017-05-20 21:31:17 +01:00
|
|
|
private:
|
|
|
|
|
2017-06-24 19:01:08 +01:00
|
|
|
int myRows;
|
2017-05-20 21:31:17 +01:00
|
|
|
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
|
|
|
|
2020-12-19 15:02:04 +00:00
|
|
|
static std::shared_ptr<GraphicsColors> ourColors;
|
|
|
|
static bool ourInitialised;
|
|
|
|
static void initialise();
|
2017-05-20 21:31:17 +01:00
|
|
|
};
|