From 607753e4be57226902d08750833639bd0fdb04a9 Mon Sep 17 00:00:00 2001 From: Phillip Tennen Date: Tue, 13 Feb 2024 11:59:56 +0000 Subject: [PATCH] [libgui - Rust] Derived Bordered implementation forwards more trait methods to the underlying View --- rust_programs/libgui_derive/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rust_programs/libgui_derive/src/lib.rs b/rust_programs/libgui_derive/src/lib.rs index af6910cd..6fc6c679 100644 --- a/rust_programs/libgui_derive/src/lib.rs +++ b/rust_programs/libgui_derive/src/lib.rs @@ -88,6 +88,14 @@ fn impl_bordered_derive(ast: &syn::DeriveInput) -> TokenStream { fn draw_inner_content(&self, outer_frame: Rect, onto: &mut Box) { self.view.draw_inner_content(outer_frame, onto); } + + fn draw_border_with_insets(&self, onto: &mut Box) -> Rect { + self.view.draw_border_with_insets(onto) + } + + fn draw_border(&self) -> Rect { + self.view.draw_border() + } } }; gen.into()