Struct fp_tui::BorderedFrameWidget
source · pub struct BorderedFrameWidget { /* private fields */ }Expand description
§Description
A frame widget that has a border.
Implementations§
source§impl BorderedFrameWidget
impl BorderedFrameWidget
sourcepub fn new(
x: i32,
y: i32,
width: u32,
height: u32,
title: Option<&str>,
border_style: BorderStyle
) -> Rc<RefCell<Self>>
pub fn new( x: i32, y: i32, width: u32, height: u32, title: Option<&str>, border_style: BorderStyle ) -> Rc<RefCell<Self>>
§Description
Creates a bordered frame widget
§Arguments
x: u32 - The x position of the widgety: u32 - The y position of the widgetwidth: u32 - The width of the widgetheight: u32 - The height of the widgettitle: Option<&str> - The optional title of the widgetborder_style: BorderStyle - The border style for the widget
§Returns
Rc<RefCell<BorderedFrameWidget>> - A bordered frame widget with the specified attributes
Trait Implementations§
source§impl Widget for BorderedFrameWidget
impl Widget for BorderedFrameWidget
source§fn draw(
&mut self,
positioning_algorithm: &Box<dyn PositioningAlgorithm>,
display_buffer: &mut DisplayBuffer
)
fn draw( &mut self, positioning_algorithm: &Box<dyn PositioningAlgorithm>, display_buffer: &mut DisplayBuffer )
Description Read more
source§fn get_bounding_box(&self) -> BoundingBox
fn get_bounding_box(&self) -> BoundingBox
Description Read more
Auto Trait Implementations§
impl Freeze for BorderedFrameWidget
impl !RefUnwindSafe for BorderedFrameWidget
impl !Send for BorderedFrameWidget
impl !Sync for BorderedFrameWidget
impl Unpin for BorderedFrameWidget
impl !UnwindSafe for BorderedFrameWidget
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more