Struct egui_modal::DialogBuilder
source · pub struct DialogBuilder { /* private fields */ }Expand description
Used for constructing and opening a modal dialog. This can be used
to both set the title/body/icon of the modal and open it as a one-time call
(as opposed to a continous call in the update loop) at the same time.
Make sure to call DialogBuilder::open to actually open the dialog.
Implementations§
source§impl DialogBuilder
impl DialogBuilder
sourcepub fn with_title(self, title: impl Display) -> Self
pub fn with_title(self, title: impl Display) -> Self
Construct this dialog with the given title.
Auto Trait Implementations§
impl !RefUnwindSafe for DialogBuilder
impl Send for DialogBuilder
impl Sync for DialogBuilder
impl Unpin for DialogBuilder
impl !UnwindSafe for DialogBuilder
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