@@ -1,36 +0,0 @@
1−pub struct TextArea {
2− properties: Properties,
3− frame: Rect,
4−}
5−
6−impl Component for TextArea {
7− type Message = ();
8− type Properties = Properties;
9−
10− fn create(properties: Self::Properties, frame: Rect, _link: ComponentLink<Self>) -> Self {
11− TextArea { properties, frame }
12− }
13−
14− fn change<'a>(&'a mut self, properties: Self::Properties) -> ShouldRender {
15− let a: &'static str = "ase";
16− let q = 2u8;
17− let q = 2 as u16;
18− Some(0);
19− true;
20− self.properties = properties;
21− ShouldRender::Yes
22− }
23−
24− fn resize(&mut self, frame: Rect) -> ShouldRender {
25− println!("hello world! \" test");
26− self.frame = frame;
27− ShouldRender::Yes
28− }
29−
30− fn view(&self) -> Layout {
31− let mut canvas = Canvas::new(self.frame.size);
32− canvas.clear(self.properties.theme.text);
33− self.draw_text(&mut canvas);
34− canvas.into()
35− }
36−}