pub struct PanelTitle<'a> { /* private fields */ }Expand description
One title added via Panel::add_title: its text, which edge it’s drawn on, and its
alignment.
Not constructed directly; built up through Panel::add_title’s arguments instead, the same
as Panel::title/Panel::title_align build the single implicit top title.
Implementations§
Source§impl<'a> PanelTitle<'a>
impl<'a> PanelTitle<'a>
Sourcepub const fn new(text: &'a str, position: TitlePosition, align: Align) -> Self
pub const fn new(text: &'a str, position: TitlePosition, align: Align) -> Self
Build a title for Modal::titles, the Modal
equivalent of a Panel::add_title call. Panel itself never needs this constructor
directly: Panel::add_title builds one from its own arguments.
Trait Implementations§
Source§impl<'a> Clone for PanelTitle<'a>
impl<'a> Clone for PanelTitle<'a>
impl<'a> Copy for PanelTitle<'a>
Auto Trait Implementations§
impl<'a> Freeze for PanelTitle<'a>
impl<'a> RefUnwindSafe for PanelTitle<'a>
impl<'a> Send for PanelTitle<'a>
impl<'a> Sync for PanelTitle<'a>
impl<'a> Unpin for PanelTitle<'a>
impl<'a> UnsafeUnpin for PanelTitle<'a>
impl<'a> UnwindSafe for PanelTitle<'a>
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