AppleWin/source/frontends/ncurses/nframe.h

30 lines
417 B
C
Raw Normal View History

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