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:
parent
0f21c3701e
commit
638a449343
7 changed files with 144 additions and 170 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue