Rename draw2 -> draw_and_update_state

This commit is contained in:
Nathan Sobo 2023-12-14 17:20:27 -07:00
parent f4a954db4f
commit ad8165ae79
2 changed files with 2 additions and 2 deletions

View file

@ -933,7 +933,7 @@ impl EditorElement {
cx.stop_propagation(); cx.stop_propagation();
}, },
)) ))
.draw2( .draw_and_update_state(
fold_bounds.origin, fold_bounds.origin,
fold_bounds.size, fold_bounds.size,
cx, cx,

View file

@ -23,7 +23,7 @@ pub trait IntoElement: Sized {
self.into_element().into_any() self.into_element().into_any()
} }
fn draw2<T, R>( fn draw_and_update_state<T, R>(
self, self,
origin: Point<Pixels>, origin: Point<Pixels>,
available_space: Size<T>, available_space: Size<T>,