pub struct Placement {
pub edges: Option<Anchors>,
pub gravity: Option<Anchors>,
pub adjustment: Option<Adjust>,
}Expand description
Where a popup goes next to the widget that opened it. Unset parts keep the defaults: below the widget from a horizontal bar, beside it from a vertical bar or another popup, flipped or slid to stay on the output.
Fields§
§edges: Option<Anchors>The edge or corner of the widget’s rectangle the popup hangs from.
gravity: Option<Anchors>Which way the popup extends from there.
adjustment: Option<Adjust>How it may move to stay on the output.
Trait Implementations§
impl Copy for Placement
impl Eq for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Forget for Placement
impl Freeze for Placement
impl Move for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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