pub struct MenuRoot {
pub menu_state: Arc<RwLock<MenuState>>,
pub id: Id,
}👎Deprecated: Use
egui::containers::menu insteadExpand description
Menu root associated with an Id from a Response
Fields§
👎Deprecated: Use
§egui::containers::menu insteadid: Id👎Deprecated: Use
egui::containers::menu insteadImplementations§
Source§impl MenuRoot
impl MenuRoot
pub fn new(position: Pos2, id: Id) -> Self
👎Deprecated: Use
egui::containers::menu insteadpub fn show<R>( &self, button: &Response, add_contents: impl FnOnce(&mut Ui) -> R, ) -> (MenuResponse, Option<InnerResponse<R>>)
👎Deprecated: Use
egui::containers::menu insteadSourcepub fn context_interaction(
response: &Response,
root: &mut Option<Self>,
) -> MenuResponse
👎Deprecated: Use egui::containers::menu instead
pub fn context_interaction( response: &Response, root: &mut Option<Self>, ) -> MenuResponse
egui::containers::menu insteadInteraction with a context menu (secondary click).
👎Deprecated: Use
egui::containers::menu insteadSourcepub fn context_click_interaction(
response: &Response,
root: &mut MenuRootManager,
)
👎Deprecated: Use egui::containers::menu instead
pub fn context_click_interaction( response: &Response, root: &mut MenuRootManager, )
egui::containers::menu insteadRespond to secondary (right) clicks.
pub fn stationary_click_interaction( button: &Response, root: &mut MenuRootManager, )
👎Deprecated: Use
egui::containers::menu insteadTrait Implementations§
Auto Trait Implementations§
impl Freeze for MenuRoot
impl !RefUnwindSafe for MenuRoot
impl Send for MenuRoot
impl Sync for MenuRoot
impl Unpin for MenuRoot
impl !UnwindSafe for MenuRoot
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