merge stable version #2
|
@ -15,6 +15,7 @@ macro_rules! build_for {
|
|||
.halign(self.align.horizontal)
|
||||
.valign(self.align.vertical)
|
||||
.set_margin(self.margins)
|
||||
.use_markup(self.markup)
|
||||
.label(self.label)
|
||||
.build();
|
||||
|
||||
|
@ -51,6 +52,7 @@ pub struct InputBuilder {
|
|||
align: Alignment,
|
||||
label: InputLabel,
|
||||
margins: MarginData,
|
||||
markup: bool,
|
||||
}
|
||||
|
||||
impl<I> Product<InputBuilder, Box> for Input<I> {
|
||||
|
@ -62,6 +64,7 @@ impl<I> Product<InputBuilder, Box> for Input<I> {
|
|||
},
|
||||
label: String::new(),
|
||||
margins: MarginData::EqualsMargin(5),
|
||||
markup: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,6 +94,12 @@ impl InputBuilder {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn markup(mut self, toggle: bool) -> Self {
|
||||
self.markup = toggle;
|
||||
|
||||
self
|
||||
}
|
||||
|
||||
pub fn align(mut self, align: Alignment) -> Self {
|
||||
self.align = align;
|
||||
|
||||
|
|
Loading…
Reference in New Issue