Revert changing the constructor and implement new method.
This commit is contained in:
parent
60b40fdc99
commit
f4b8bce837
16 changed files with 39 additions and 44 deletions
|
|
@ -39,13 +39,10 @@ mod circle {
|
|||
_renderer: &Renderer,
|
||||
_limits: &layout::Limits,
|
||||
) -> layout::Node {
|
||||
layout::Node::new(
|
||||
Size::new(
|
||||
f32::from(self.radius) * 2.0,
|
||||
f32::from(self.radius) * 2.0,
|
||||
),
|
||||
Size::ZERO,
|
||||
)
|
||||
layout::Node::new(Size::new(
|
||||
f32::from(self.radius) * 2.0,
|
||||
f32::from(self.radius) * 2.0,
|
||||
))
|
||||
}
|
||||
|
||||
fn hash_layout(&self, state: &mut Hasher) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue