plugin ins/outs

This commit is contained in:
🪞👃🪞 2024-06-27 10:18:10 +03:00
parent da1d3220f9
commit 9351887ae6
9 changed files with 187 additions and 64 deletions

View file

@ -34,7 +34,7 @@ impl Handle for FocusColumn {
impl Render for FocusColumn {
fn render (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
let (rect, rects) = Column::draw(buf, area, self.1.0.as_ref(), 0)?;
let (rect, _rects) = Column::draw(buf, area, self.1.0.as_ref(), 0)?;
//if i == self.focus {
//if self.focused {
//draw_box_styled(buf, result, Some(Style::default().white().not_dim()))
@ -99,7 +99,7 @@ impl Focus for FocusColumn {
_ => false
},
FocusEvent::Outward => match self.0 {
Some(i) => {
Some(_i) => {
self.0 = None;
true
},
@ -119,7 +119,7 @@ impl Handle for FocusRow {
impl Render for FocusRow {
fn render (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
let (rect, rects) = Row::draw(buf, area, &self.1.0, 0)?;
let (rect, _rects) = Row::draw(buf, area, &self.1.0, 0)?;
Ok(rect)
}
}
@ -177,7 +177,7 @@ impl Focus for FocusRow {
_ => false
},
FocusEvent::Outward => match self.0 {
Some(i) => {
Some(_i) => {
self.0 = None;
true
},