Struct fui_controls::Popup
source · pub struct Popup {
pub is_open: Property<bool>,
pub placement: PopupPlacement,
pub auto_hide: PopupAutoHide,
pub auto_hide_occured: Callback<()>,
pub uncovered_controls: Vec<Weak<RefCell<dyn ControlObject>>>,
}
Fields§
§is_open: Property<bool>
§placement: PopupPlacement
§auto_hide: PopupAutoHide
§auto_hide_occured: Callback<()>
Called when auto hide has occured.
uncovered_controls: Vec<Weak<RefCell<dyn ControlObject>>>
Popup does not pass through events to controls below except the area covered by this list of controls
Implementations§
source§impl Popup
impl Popup
sourcepub fn builder() -> PopupBuilder<((), (), (), (), ())>
pub fn builder() -> PopupBuilder<((), (), (), (), ())>
Create a builder for building Popup
.
On the builder, call .is_open(...)
(optional), .placement(...)
(optional), .auto_hide(...)
(optional), .auto_hide_occured(...)
(optional), .uncovered_controls(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Popup
.