Checkpoint, MenuHandle can open one
This commit is contained in:
parent
d782426491
commit
267e07472d
3 changed files with 136 additions and 8 deletions
|
@ -1,8 +1,8 @@
|
|||
use smallvec::SmallVec;
|
||||
|
||||
use crate::{
|
||||
point, AnyElement, BorrowWindow, Bounds, Element, LayoutId, ParentComponent, Pixels, Point,
|
||||
Size, Style,
|
||||
point, AnyElement, BorrowWindow, Bounds, Component, Element, LayoutId, ParentComponent, Pixels,
|
||||
Point, Size, Style,
|
||||
};
|
||||
|
||||
pub struct OverlayState {
|
||||
|
@ -48,6 +48,12 @@ impl<V: 'static> ParentComponent<V> for Overlay<V> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<V: 'static> Component<V> for Overlay<V> {
|
||||
fn render(self) -> AnyElement<V> {
|
||||
AnyElement::new(self)
|
||||
}
|
||||
}
|
||||
|
||||
impl<V: 'static> Element<V> for Overlay<V> {
|
||||
type ElementState = OverlayState;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue