pub struct PopupWindow {
pub popup_id: NonZeroU32,
pub location: PopupWindowLocation,
pub component: ItemTreeRc,
pub close_policy: PopupClosePolicy,
pub parent_item: ItemWeak,
/* private fields */
}
Expand description
This structure defines a graphical element that is designed to pop up from the surrounding UI content, for example to show a context menu.
Fields§
§popup_id: NonZeroU32
The ID of the associated popup.
location: PopupWindowLocation
The location defines where the pop up is rendered.
component: ItemTreeRc
The component that is responsible for providing the popup content.
close_policy: PopupClosePolicy
Defines the close behaviour of the popup.
parent_item: ItemWeak
The item from where the Popup was invoked from
Trait Implementations§
Source§impl Clone for PopupWindow
impl Clone for PopupWindow
Source§fn clone(&self) -> PopupWindow
fn clone(&self) -> PopupWindow
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PopupWindow
impl !RefUnwindSafe for PopupWindow
impl !Send for PopupWindow
impl !Sync for PopupWindow
impl Unpin for PopupWindow
impl !UnwindSafe for PopupWindow
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