#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) {
struct ButtonWidget;
std::any::TypeId::of::<ButtonWidget>().hash(state);
struct Marker;
std::any::TypeId::of::<Marker>().hash(state);
self.width.hash(state);
self.content.hash_layout(state);

View File

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

View File

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

View File

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

View File

@ -102,7 +102,8 @@ where
}
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.width.hash(state);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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