pub struct TemplatesButton;Expand description
Drawing template rows and save dialog.
Implementations§
Source§impl TemplatesButton
impl TemplatesButton
Render the templates dropdown rows.
Shows save template option, followed by existing templates that can be loaded.
Sourcepub fn show_name_dialog(
ui: &mut Ui,
sidebar_rect: Rect,
name_input: &mut String,
) -> Option<DrawingToolbarAction>
pub fn show_name_dialog( ui: &mut Ui, sidebar_rect: Rect, name_input: &mut String, ) -> Option<DrawingToolbarAction>
Render a standalone save-template name input dialog.
Returns a SaveTemplate action if the user confirms,
DrawingToolbarAction::None if they cancel with the Cancel button or Escape, which
also clears name_input, and None while they are still editing.
Auto Trait Implementations§
impl Freeze for TemplatesButton
impl RefUnwindSafe for TemplatesButton
impl Send for TemplatesButton
impl Sync for TemplatesButton
impl Unpin for TemplatesButton
impl UnsafeUnpin for TemplatesButton
impl UnwindSafe for TemplatesButton
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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