Struct gpui2::InteractiveElementState
source · pub struct InteractiveElementState {
pub focus_handle: Option<FocusHandle>,
pub clicked_state: Rc<RefCell<ElementClickedState>>,
pub hover_state: Rc<RefCell<bool>>,
pub pending_mouse_down: Rc<RefCell<Option<MouseDownEvent>>>,
pub scroll_offset: Option<Rc<RefCell<Point<Pixels>>>>,
pub active_tooltip: Rc<RefCell<Option<ActiveTooltip>>>,
}
Fields§
§focus_handle: Option<FocusHandle>
§clicked_state: Rc<RefCell<ElementClickedState>>
§hover_state: Rc<RefCell<bool>>
§pending_mouse_down: Rc<RefCell<Option<MouseDownEvent>>>
§scroll_offset: Option<Rc<RefCell<Point<Pixels>>>>
§active_tooltip: Rc<RefCell<Option<ActiveTooltip>>>
Trait Implementations§
source§impl Default for InteractiveElementState
impl Default for InteractiveElementState
source§fn default() -> InteractiveElementState
fn default() -> InteractiveElementState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for InteractiveElementState
impl !Send for InteractiveElementState
impl !Sync for InteractiveElementState
impl Unpin for InteractiveElementState
impl !UnwindSafe for InteractiveElementState
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