Skip to content

Commit

Permalink
[libgui - Rust] TextInputView passes through Bordered calls to its un…
Browse files Browse the repository at this point in the history
…derlying TextView
  • Loading branch information
codyd51 committed Feb 13, 2024
1 parent 7d0072b commit d3a2ec2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rust_programs/libgui/src/text_input_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,4 +377,16 @@ impl Bordered for TextInputView {
self.view.draw_inner_content(outer_frame, onto);
self.draw_cursor()
}

fn draw_border_with_insets(&self, onto: &mut Box<dyn LikeLayerSlice>) -> Rect {
self.view.draw_border_with_insets(onto)
}

fn draw_border(&self) -> Rect {
self.view.draw_border()
}

fn draw(&self) -> Vec<Rect> {
Bordered::draw(&self.view as &TextView)
}
}

0 comments on commit d3a2ec2

Please sign in to comment.