WIP - Next: implement Element derive macro
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
AnyElement, Bounds, Element, Layout, LayoutId, Overflow, ParentElement, Pixels, Point,
|
||||
Refineable, RefinementCascade, Result, Style, Styled, ViewContext,
|
||||
Refineable, RefinementCascade, Result, Style, StyleHelpers, Styled, ViewContext,
|
||||
};
|
||||
use smallvec::SmallVec;
|
||||
use std::{cell::Cell, rc::Rc};
|
||||
@@ -257,6 +257,8 @@ impl<V> Styled for Div<V> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<V> StyleHelpers for Div<V> {}
|
||||
|
||||
// impl<V> Interactive<V> for Div<V> {
|
||||
// fn interaction_handlers(&mut self) -> &mut InteractionHandlers<V> {
|
||||
// &mut self.handlers
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::{Element, Layout, LayoutId, Result, Style, Styled};
|
||||
use crate::{Element, Layout, LayoutId, Result, Style, StyleHelpers, Styled};
|
||||
use refineable::RefinementCascade;
|
||||
use std::marker::PhantomData;
|
||||
use util::arc_cow::ArcCow;
|
||||
@@ -98,3 +98,5 @@ impl<S> Styled for Img<S> {
|
||||
self.style.base()
|
||||
}
|
||||
}
|
||||
|
||||
impl<S> StyleHelpers for Img<S> {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::{Element, Layout, LayoutId, Result, Style, Styled};
|
||||
use crate::{Element, Layout, LayoutId, Result, Style, StyleHelpers, Styled};
|
||||
use refineable::RefinementCascade;
|
||||
use std::{borrow::Cow, marker::PhantomData};
|
||||
|
||||
@@ -77,3 +77,5 @@ impl<S> Styled for Svg<S> {
|
||||
self.style.base()
|
||||
}
|
||||
}
|
||||
|
||||
impl<S> StyleHelpers for Svg<S> {}
|
||||
|
||||
Reference in New Issue
Block a user