-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtext_view.h
30 lines (26 loc) · 945 Bytes
/
text_view.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _TEXT_VIEW_H_
#define _TEXT_VIEW_H_
#include <view.h>
#include <text.h>
#include <screen.h>
class MyScreen;
class MyTextView:private MyView, public MyText {
MyText mText;
MyScreen mScreen;
public:
void onLayout(int changed, int l, int r, int t, int b);
int addViewOnScreen(MyScreen &);
void show();
void showSuperField();
void showPosition();
void displayLayout(int l, int r, int t, int b);
MyTextView():MyView(0,0,0,0), MyText(), mScreen(), mText(){
std::cout << "[MyTextView::MyTextView()]: >>> id:" << id << ", text:" << text << std::endl;
};
MyTextView(char *src, int l, int r, int t, int b):MyView(l, r, t, b), MyText(src), mScreen(), mText(src){
//MyTextView(char *src, int l, int r, int t, int b):MyView(l, r, t, b), MyText(src){
std::cout << "[MyTextView::MyTextView(char, int, int, int, int)]: >>> id:" << id << ", text:" << text << std::endl;
};
~MyTextView();
};
#endif