pub struct BasicContextMenu { /* private fields */ }Expand description
The default ContextMenu for a browser window: a vertical list of
actions shown at the right-click position.
Implementations§
Trait Implementations§
Source§impl ContextMenu for BasicContextMenu
impl ContextMenu for BasicContextMenu
Source§fn open(&mut self, ctx: &ClickContext) -> bool
fn open(&mut self, ctx: &ClickContext) -> bool
Requests the menu at the given click position. Read more
Source§fn draw(&self, cmd_buf: &mut Vec<DrawCommand>, width: f32, height: f32)
fn draw(&self, cmd_buf: &mut Vec<DrawCommand>, width: f32, height: f32)
Draws the open menu into
cmd_buf in window coordinates. Read moreSource§fn pointer_event(
&mut self,
width: f32,
height: f32,
event: PointerEvent,
) -> MenuEventResult
fn pointer_event( &mut self, width: f32, height: f32, event: PointerEvent, ) -> MenuEventResult
Dispatches a pointer event to the open menu. Read more
Source§fn needs_repaint(&self) -> bool
fn needs_repaint(&self) -> bool
Whether the menu changed its visual state since the last check. Read more
Source§impl Debug for BasicContextMenu
impl Debug for BasicContextMenu
Auto Trait Implementations§
impl !Freeze for BasicContextMenu
impl !RefUnwindSafe for BasicContextMenu
impl !Sync for BasicContextMenu
impl !UnwindSafe for BasicContextMenu
impl Send for BasicContextMenu
impl Unpin for BasicContextMenu
impl UnsafeUnpin for BasicContextMenu
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().