pub struct PopupState { /* private fields */ }Implementations§
Source§impl PopupState
impl PopupState
pub fn new(open: Signal<bool>) -> Self
pub fn is_open(&self) -> bool
pub fn entry_id(&self) -> Option<OverlayId>
pub fn open(&self)
pub fn close(&self)
pub fn toggle(&self)
pub fn subscribe(&self)
pub fn sync_show( &self, ctx: &mut PaintCtx<'_>, make: impl FnOnce() -> OverlayEntry, )
pub fn toggle_in(&self, ctx: &mut EventCtx<'_>)
pub fn close_in(&self, ctx: &mut EventCtx<'_>) -> bool
pub fn forget(&self)
pub fn margin(self, margin: impl Into<Edges>) -> Self
pub fn margin_xy(self, x: f32, y: f32) -> Self
pub fn margin_x(self, x: f32) -> Self
pub fn margin_y(self, y: f32) -> Self
pub fn margin_left(self, v: f32) -> Self
pub fn margin_right(self, v: f32) -> Self
pub fn margin_top(self, v: f32) -> Self
pub fn margin_bottom(self, v: f32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PopupState
impl !Send for PopupState
impl !Sync for PopupState
impl !UnwindSafe for PopupState
impl Freeze for PopupState
impl Unpin for PopupState
impl UnsafeUnpin for PopupState
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