Report as well some measure of the ringing frequency of the speaker. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
28 lines
393 B
C++
28 lines
393 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include <ncurses.h>
|
|
|
|
class Frame
|
|
{
|
|
public:
|
|
Frame();
|
|
|
|
WINDOW * getWindow();
|
|
WINDOW * getBuffer();
|
|
WINDOW * getStatus();
|
|
|
|
void init(int columns);
|
|
int getColumns() const;
|
|
|
|
private:
|
|
|
|
int myColumns;
|
|
|
|
std::shared_ptr<WINDOW> myFrame;
|
|
std::shared_ptr<WINDOW> myStatus;
|
|
std::shared_ptr<WINDOW> myBuffer;
|
|
std::shared_ptr<WINDOW> myBorders;
|
|
|
|
};
|