pub struct PopupDesc {
pub parent: WindowId,
pub anchor: LogicalRect,
pub placement: PopupPlacement,
pub input: PopupInput,
}Expand description
Where a popup goes.
Fields§
§parent: WindowIdThe window it belongs to and moves with. Destroying the parent destroys the popup.
anchor: LogicalRectThe rectangle it is placed against, in the parent’s logical coordinates — the module or button that opened it.
placement: PopupPlacementWhich side of the anchor it opens on. The system flips it to the other side, or slides it along this one, rather than let it leave the screen.
input: PopupInputWhat input it takes while open.
Trait Implementations§
impl Copy for PopupDesc
impl StructuralPartialEq for PopupDesc
Auto Trait Implementations§
impl Freeze for PopupDesc
impl RefUnwindSafe for PopupDesc
impl Send for PopupDesc
impl Sync for PopupDesc
impl Unpin for PopupDesc
impl UnsafeUnpin for PopupDesc
impl UnwindSafe for PopupDesc
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