Struct penrose_ui::layout_viewer::LayoutViewer
source · pub struct LayoutViewer { /* private fields */ }
Expand description
A simple way to view the output of specific Layout implementations outside of a running window manager.
Implementations§
source§impl LayoutViewer
impl LayoutViewer
sourcepub fn new(
r: Rect,
bg: impl Into<Color>,
focused: impl Into<Color>,
unfocused: impl Into<Color>,
text: impl Into<Color>,
) -> Result<Self>
pub fn new( r: Rect, bg: impl Into<Color>, focused: impl Into<Color>, unfocused: impl Into<Color>, text: impl Into<Color>, ) -> Result<Self>
Construct a new LayoutViewer with a specified color scheme and window size.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LayoutViewer
impl RefUnwindSafe for LayoutViewer
impl !Send for LayoutViewer
impl !Sync for LayoutViewer
impl Unpin for LayoutViewer
impl UnwindSafe for LayoutViewer
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