pub struct PlanFloat {
pub id: SurfaceId,
pub anchor: FloatAnchor,
pub dismiss: FloatDismiss,
pub modal: bool,
}Expand description
One float in the LayoutPresentationPlan: the surface id plus the
render-relevant FloatSpec semantics (anchor, dismiss, modal). Floats are
popups above the layout and are never in the tree, so the skin reads this
list to know which popups to show and how each behaves. The reconciler is
the single authority for float visibility.
Fields§
§id: SurfaceId§anchor: FloatAnchorWhere the popup anchors (screen vs. another surface).
dismiss: FloatDismissHow the popup is dismissed (tap-outside vs. manual).
modal: boolWhether the popup blocks input to layers below.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanFloat
impl<'de> Deserialize<'de> for PlanFloat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PlanFloat
Auto Trait Implementations§
impl Freeze for PlanFloat
impl RefUnwindSafe for PlanFloat
impl Send for PlanFloat
impl Sync for PlanFloat
impl Unpin for PlanFloat
impl UnsafeUnpin for PlanFloat
impl UnwindSafe for PlanFloat
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