pub struct WelcomeLayout {}Expand description
Computed areas for the welcome screen layout.
Fields§
§logo: RectLogo area.
error: RectError / warning row.
Menu items area.
changelog: RectInfo slot below the menu (changelog / announcement).
tip: RectTip row.
prompt: RectPrompt input widget.
version: RectVersion badge row.
hero_box: RectOuter hero box border.
hero_logo: RectLogo inside the hero box.
hero_version: RectVersion inside the hero box.
hero_subtitle: RectSubtitle row inside the hero box.
hero_info: RectInfo slot inside the hero box.
Menu inside the hero box.
Implementations§
Source§impl WelcomeLayout
impl WelcomeLayout
Sourcepub fn has_hero_box(&self) -> bool
pub fn has_hero_box(&self) -> bool
Whether the hero box is active.
Sourcepub fn fixed_below(tip_height: u16) -> u16
pub fn fixed_below(tip_height: u16) -> u16
Fixed rows below the menu+tip+prompt+version block.
Sourcepub fn min_hero_box_height(
error_height: u16,
menu_height: u16,
tip_height: u16,
) -> u16
pub fn min_hero_box_height( error_height: u16, menu_height: u16, tip_height: u16, ) -> u16
Minimum content height for the hero-box layout.
Trait Implementations§
Source§impl Clone for WelcomeLayout
impl Clone for WelcomeLayout
Source§fn clone(&self) -> WelcomeLayout
fn clone(&self) -> WelcomeLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WelcomeLayout
Source§impl Debug for WelcomeLayout
impl Debug for WelcomeLayout
Source§impl Default for WelcomeLayout
impl Default for WelcomeLayout
Source§fn default() -> WelcomeLayout
fn default() -> WelcomeLayout
Returns the “default value” for a type. Read more
impl Eq for WelcomeLayout
Source§impl PartialEq for WelcomeLayout
impl PartialEq for WelcomeLayout
impl StructuralPartialEq for WelcomeLayout
Auto Trait Implementations§
impl Freeze for WelcomeLayout
impl RefUnwindSafe for WelcomeLayout
impl Send for WelcomeLayout
impl Sync for WelcomeLayout
impl Unpin for WelcomeLayout
impl UnsafeUnpin for WelcomeLayout
impl UnwindSafe for WelcomeLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more