#288 Renamed XXXWidget to Marker

This commit is contained in:
Olivier Pinon 2020-04-12 01:20:40 +02:00
parent f7d7ab1ba9
commit 41f6a325e9
11 changed files with 22 additions and 21 deletions

View File

@ -234,8 +234,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct ButtonWidget; struct Marker;
std::any::TypeId::of::<ButtonWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.width.hash(state); self.width.hash(state);
self.content.hash_layout(state); self.content.hash_layout(state);

View File

@ -205,8 +205,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct CheckboxWidget; struct Marker;
std::any::TypeId::of::<CheckboxWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.label.hash(state); self.label.hash(state);
} }

View File

@ -190,8 +190,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct ColumnWidget; struct Marker;
std::any::TypeId::of::<ColumnWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.width.hash(state); self.width.hash(state);
self.height.hash(state); self.height.hash(state);

View File

@ -203,8 +203,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct ContainerWidget; struct Marker;
std::any::TypeId::of::<ContainerWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.padding.hash(state); self.padding.hash(state);
self.width.hash(state); self.width.hash(state);

View File

@ -102,7 +102,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
std::any::TypeId::of::<Image>().hash(state); struct Marker;
std::any::TypeId::of::<Marker>().hash(state);
self.handle.hash(state); self.handle.hash(state);
self.width.hash(state); self.width.hash(state);

View File

@ -597,8 +597,8 @@ where
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
use std::hash::Hash; use std::hash::Hash;
struct PaneGridWidget; struct Marker;
std::any::TypeId::of::<PaneGridWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.width.hash(state); self.width.hash(state);
self.height.hash(state); self.height.hash(state);

View File

@ -114,8 +114,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct ProgressBarWidget; struct Marker;
std::any::TypeId::of::<ProgressBarWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.width.hash(state); self.width.hash(state);
self.height.hash(state); self.height.hash(state);

View File

@ -174,8 +174,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct RadioWidget; struct Marker;
std::any::TypeId::of::<RadioWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.label.hash(state); self.label.hash(state);
} }

View File

@ -191,8 +191,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct RowWidget; struct Marker;
std::any::TypeId::of::<RowWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.width.hash(state); self.width.hash(state);
self.height.hash(state); self.height.hash(state);

View File

@ -311,8 +311,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct ScrollableWidget; struct Marker;
std::any::TypeId::of::<ScrollableWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.height.hash(state); self.height.hash(state);
self.max_height.hash(state); self.max_height.hash(state);

View File

@ -205,8 +205,8 @@ where
} }
fn hash_layout(&self, state: &mut Hasher) { fn hash_layout(&self, state: &mut Hasher) {
struct SliderWidget; struct Marker;
std::any::TypeId::of::<SliderWidget>().hash(state); std::any::TypeId::of::<Marker>().hash(state);
self.width.hash(state); self.width.hash(state);
} }