#[repr(C)]pub struct Frame {
pub title: AzString,
pub flex_grow: f32,
pub content: Dom,
}Expand description
A titled border container widget, similar to an HTML <fieldset> or
a Windows group box. Displays a header with a centered title and a
bordered content area below.
Fields§
§title: AzString§flex_grow: f32§content: DomImplementations§
Source§impl Frame
impl Frame
Sourcepub fn create(title: AzString, content: Dom) -> Self
pub fn create(title: AzString, content: Dom) -> Self
Creates a new Frame with the given title and content DOM.
Sourcepub fn swap_with_default(&mut self) -> Self
pub fn swap_with_default(&mut self) -> Self
Replaces self with a default frame and returns the original.
Sourcepub fn set_flex_grow(&mut self, flex_grow: f32)
pub fn set_flex_grow(&mut self, flex_grow: f32)
Sets the flex-grow factor for the content area.
Sourcepub fn with_flex_grow(self, flex_grow: f32) -> Self
pub fn with_flex_grow(self, flex_grow: f32) -> Self
Builder-style setter for the flex-grow factor.
pub fn dom(self) -> Dom
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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<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