mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 23:27:56 -05:00
tui: pass coordinates to Widget::new()
This commit is contained in:
@@ -14,8 +14,8 @@ pub struct Widget {
|
||||
}
|
||||
|
||||
impl Widget {
|
||||
pub fn new(title: String) -> Result<Widget> {
|
||||
Ok(Widget { width: 0, height: 0, x: 0, y: 0, title })
|
||||
pub fn new(width: usize, height: usize, x: usize, y: usize, title: String) -> Result<Widget> {
|
||||
Ok(Widget { width, height, x, y, title })
|
||||
}
|
||||
|
||||
pub fn print(
|
||||
|
||||
Reference in New Issue
Block a user