pub enum DialogItem {
Inner,
Content,
Buttons,
Button(usize),
}Expand description
Index type for the items returned by layout_dialog.
See layout_dialog returns a StructuredLayout that can be indexed with this.
Variants§
Inner
Area inside the border.
Content
Area where dialog content can be rendered.
Buttons
All buttons area.
Button(usize)
Area for the nth button.
Trait Implementations§
Source§impl Debug for DialogItem
impl Debug for DialogItem
Source§impl Index<DialogItem> for StructuredLayout
impl Index<DialogItem> for StructuredLayout
Source§impl IndexMut<DialogItem> for StructuredLayout
impl IndexMut<DialogItem> for StructuredLayout
Auto Trait Implementations§
impl Freeze for DialogItem
impl RefUnwindSafe for DialogItem
impl Send for DialogItem
impl Sync for DialogItem
impl Unpin for DialogItem
impl UnwindSafe for DialogItem
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> 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