Make naming scheme more consistent

Constructor functions that set/overwrite a value are called with_*,
functions that add a value are called and_*.
This commit is contained in:
Joscha 2024-03-09 13:49:29 +01:00
parent 0f21c3701e
commit 638a449343
7 changed files with 144 additions and 170 deletions

View file

@ -48,6 +48,6 @@ pub trait WidgetExt<C> {
impl<C, W: Widget<C> + 'static> WidgetExt<C> for W {
fn node(self) -> Node<C> {
Node::empty().widget(self)
Node::empty().with_widget(self)
}
}