PopupRoot
struct · ferroui-controls · v0.5.0
struct PopupRoot
The root window of a Popup.
Members
TYPEto_reftransform_propertywindow_manager_add_shadow_hint_propertytransformset_transformwindow_manager_add_shadow_hintset_window_manager_add_shadow_hintparent_top_leveldisposeconfigure_positionset_childtake_focusto_popup_host
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<PopupRoot>
Returns a strong reference to this object.
transform_property
fn transform_property() -> &'static StyledProperty<Option<Ref<Transform>>>
Defines the Transform property.
window_manager_add_shadow_hint_property
fn window_manager_add_shadow_hint_property() -> &'static StyledProperty<bool>
Defines the WindowManagerAddShadowHint property.
transform
fn transform(self: &Self) -> Option<Ref<Transform>>
A transform that will be applied to the popup.
set_transform
fn set_transform(self: &Self, value: impl Into<Nullable<Transform>>)
window_manager_add_shadow_hint
fn window_manager_add_shadow_hint(self: &Self) -> bool
A hint to the window manager that a shadow should be added to the popup.
set_window_manager_add_shadow_hint
fn set_window_manager_add_shadow_hint(self: &Self, value: bool)
parent_top_level
fn parent_top_level(self: &Self) -> Option<Ref<TopLevel>>
The top-level the popup belongs to; None once that top-level is
gone (the popup root does not keep its parent alive).
dispose
fn dispose(self: &Self)
Releases the platform implementation and closes the popup root.
configure_position
fn configure_position(self: &Self, request: PopupPositionRequest)
Configures the position of the popup according to a target control and a set of placement parameters.
set_child
fn set_child(self: &Self, control: impl Into<Nullable<Control>>)
Sets the control to display in the popup.
take_focus
fn take_focus(self: &Self)
Takes focus from any currently focused native control.
to_popup_host
fn to_popup_host(self: &Self) -> Rc<dyn IPopupHost>
The popup root as a popup host (the popup host contract it implements upstream).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtTopLevelImplExtWindowBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<PopupRoot>StaticTypeObjectTypeSubclassable<T>VisualImplTemplatedControlImplContentControlImplControlImplTopLevelImplIFocusScopeFerroObjectImplStyledElementImplInteractiveImplInputElementImplIHostedVisualTreeRootLayoutableImplWindowBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.