Remove after_layout from Element trait
Now that layout takes a MutableAppContext we don't need an after_layout phase.
This commit is contained in:
@@ -6,9 +6,7 @@ use crate::{
|
||||
json::{json, ToJson},
|
||||
DebugContext,
|
||||
};
|
||||
use crate::{
|
||||
AfterLayoutContext, Element, Event, EventContext, LayoutContext, PaintContext, SizeConstraint,
|
||||
};
|
||||
use crate::{Element, Event, EventContext, LayoutContext, PaintContext, SizeConstraint};
|
||||
|
||||
pub struct Empty;
|
||||
|
||||
@@ -41,9 +39,6 @@ impl Element for Empty {
|
||||
(vec2f(x, y), ())
|
||||
}
|
||||
|
||||
fn after_layout(&mut self, _: Vector2F, _: &mut Self::LayoutState, _: &mut AfterLayoutContext) {
|
||||
}
|
||||
|
||||
fn paint(
|
||||
&mut self,
|
||||
_: RectF,
|
||||
|
||||
Reference in New Issue
Block a user