git-svn-id: svn://db.shs.com.ru/pip@249 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-09-01 15:03:56 +00:00
parent bae0456042
commit 5d296fa5a5
14 changed files with 352 additions and 99 deletions

View File

@@ -31,9 +31,9 @@ public:
T dot(VC<N, T> a) {T res = T(); for (uint i=0; i<N; i++) res += v[i] * a.v[N - i - 1]; return res;}
};
class TerminalTile: public PIScreenTile {
class TileTerminal: public PIScreenTile {
public:
TerminalTile(PITerminal * t = 0): term(t) {
TileTerminal(PITerminal * t = 0): term(t) {
focus_flags = PIScreenTypes::CanHasFocus;
}
@@ -42,7 +42,7 @@ private:
//piCout << "draw" << visible;
if (!term) return;
PIVector<PIVector<PIScreenTypes::Cell> > c = term->content();
d->fillRect(x, y, x + width, y + height, c);
d->fillRect(x_, y_, x_ + width_, y_ + height_, c);
}
bool keyEvent(PIKbdListener::KeyEvent key) {
//piCout << "key";
@@ -67,7 +67,7 @@ private:
int main (int argc, char * argv[]) {
PIScreen screen;
PITerminal term;
TerminalTile tt(&term);
TileTerminal tt(&term);
screen.rootTile()->addTile(&tt);
tt.setFocus();
screen.enableExitCapture();