Struct intuitive::components::Section
source · pub struct Section {
pub title: Spans,
pub border: Style,
pub children: Children<1>,
pub on_key: KeyHandler,
pub on_mouse: MouseHandler,
}
Expand description
A component with a border and a title.
Section
is used to wrap a component with a border and a title.
For example,
#[component(Root)]
fn render() {
render! {
Section(title: "Input Box") {
Text(text: "Hi there!")
}
}
}
Will render the following:
Section
also accepts a border Style
. This style will merge with any style applied to
the title.
Fields§
§title: Spans
§border: Style
§children: Children<1>
§on_key: KeyHandler
§on_mouse: MouseHandler
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl !UnwindSafe for Section
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