Files
pip/utils/system_daemon/terminal_tile.h
Бычков Андрей 3873f0b03b PIIODevice::bytesAvailible()
fix pistringlist pibinarystream write
pibinarystream::binaryStreamSize()
PIByteArray pibinarystream read with more size fix
pistring pibinarystream read optimization
fix bug in PIIOBinaryStream read and write if failed
workaround in PIIOString::readDevice
PISPI readDevice bug Fixed
2022-07-27 15:43:04 +03:00

31 lines
691 B
C++

#ifndef TERMINAL_TILE_H
#define TERMINAL_TILE_H
#include "piscreentile.h"
#include "pikbdlistener.h"
class TileTerminal: public PIScreenTile {
PIOBJECT_SUBCLASS(TileTerminal, PIScreenTile)
public:
TileTerminal(const PIString & n);
void setContent(const PIVector<PIVector<PIScreenTypes::Cell> > & c) {cells = c;}
EVENT(resizeRequest)
EVENT1(keyPressed, PIKbdListener::KeyEvent, k)
EVENT(closeRequest)
private:
void drawEvent(PIScreenDrawer * d) override;
bool keyEvent(PIKbdListener::KeyEvent key) override;
void resizeEvent(int w, int h) override;
PIVector<PIVector<PIScreenTypes::Cell> > cells;
char lastp[3];
};
#endif // TERMINAL_TILE_H