1use super::{
2 Element, IntoAnyElement, Layout, LayoutId, ParentElement, PhantomData, Result, ViewContext,
3};
4
5pub struct Div<S>(PhantomData<S>);
6
7impl<S: 'static> Element for Div<S> {
8 type State = S;
9 type FrameState = ();
10
11 fn layout(
12 &mut self,
13 _state: &mut Self::State,
14 _cx: &mut ViewContext<Self::State>,
15 ) -> Result<(LayoutId, Self::FrameState)> {
16 todo!()
17 }
18
19 fn paint(
20 &mut self,
21 _layout: Layout,
22 _state: &mut Self::State,
23 _frame_state: &mut Self::FrameState,
24 _cx: &mut ViewContext<Self::State>,
25 ) -> Result<()> {
26 todo!()
27 }
28}
29
30impl<S> ParentElement<S> for Div<S> {
31 fn child(self, _child: impl IntoAnyElement<S>) -> Self {
32 todo!()
33 }
34}
35
36pub fn div<S>() -> Div<S> {
37 todo!()
38}