[−][src]Struct egui::GuiResponse
Fields
hovered: bool
The mouse is hovering above this
clicked: bool
The mouse clicked this thing this frame
double_clicked: bool
active: bool
The mouse is interacting with this thing (e.g. dragging it)
rect: Rect
The area of the screen we are talking about
ctx: Arc<Context>
Used for optionally showing a tooltip
Implementations
impl GuiResponse
[src]
pub fn tooltip(&mut self, add_contents: impl FnOnce(&mut Ui)) -> &mut Self
[src]
Show some stuff if the item was hovered
pub fn tooltip_text(&mut self, text: impl Into<String>) -> &mut Self
[src]
Show this text if the item was hovered
Trait Implementations
impl Into<InteractInfo> for GuiResponse
[src]
fn into(self) -> InteractInfo
[src]
Auto Trait Implementations
impl !RefUnwindSafe for GuiResponse
impl Send for GuiResponse
impl Sync for GuiResponse
impl Unpin for GuiResponse
impl !UnwindSafe for GuiResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,