use crate::*; pub struct FieldH(pub Theme, pub Label, pub Value); impl, V: Draw> Layout for FieldH where Self: Content { fn layout (&self, to: O::Area) -> O::Area { self.content().layout(to) } } impl, V: Draw> Draw for FieldH where Self: Content { fn draw (&self, to: &mut O) { self.content().draw(to) } } pub struct FieldV(pub Theme, pub Label, pub Value); impl, V: Draw> Layout for FieldV where Self: Content { fn layout (&self, to: O::Area) -> O::Area { self.content().layout(to) } } impl, V: Draw> Draw for FieldV where Self: Content { fn draw (&self, to: &mut O) { self.content().draw(to) } }