diff options
author | Blaž Hrastnik | 2021-03-16 14:09:04 +0000 |
---|---|---|
committer | GitHub | 2021-03-16 14:09:04 +0000 |
commit | 8dc0b18e35cdfdd76f435dcd43c1cfd5a3f0c7f7 (patch) | |
tree | a26c6025d45658b4d85d6917ea82489d6ba8fb2e /helix-term/test.rs | |
parent | d8599f3a140eca7cd14f47e9b64f1ae9d829a0eb (diff) | |
parent | e3ec5e31ec005e33da4c848b4272e81a6d21a5f0 (diff) |
Merge pull request #8 from helix-editor/gd
Goto
Diffstat (limited to 'helix-term/test.rs')
-rw-r--r-- | helix-term/test.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/helix-term/test.rs b/helix-term/test.rs deleted file mode 100644 index 713c23d0..00000000 --- a/helix-term/test.rs +++ /dev/null @@ -1,36 +0,0 @@ -pub struct TextArea { - properties: Properties, - frame: Rect, -} - -impl Component for TextArea { - type Message = (); - type Properties = Properties; - - fn create(properties: Self::Properties, frame: Rect, _link: ComponentLink<Self>) -> Self { - TextArea { properties, frame } - } - - fn change<'a>(&'a mut self, properties: Self::Properties) -> ShouldRender { - let a: &'static str = "ase"; - let q = 2u8; - let q = 2 as u16; - Some(0); - true; - self.properties = properties; - ShouldRender::Yes - } - - fn resize(&mut self, frame: Rect) -> ShouldRender { - println!("hello world! \" test"); - self.frame = frame; - ShouldRender::Yes - } - - fn view(&self) -> Layout { - let mut canvas = Canvas::new(self.frame.size); - canvas.clear(self.properties.theme.text); - self.draw_text(&mut canvas); - canvas.into() - } -} |