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