[][src]Struct egui::GuiResponse

pub struct GuiResponse {
    pub hovered: bool,
    pub clicked: bool,
    pub double_clicked: bool,
    pub active: bool,
    pub rect: Rect,
    pub ctx: Arc<Context>,
}

Fields

hovered: bool

The mouse is hovering above this

clicked: bool

The mouse clicked this thing this frame

double_clicked: boolactive: 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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.