mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
updated dialog doc to reflect the default position
This commit is contained in:
parent
f8e7427f75
commit
9ce8896bba
@ -174,11 +174,13 @@ impl Dialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the horizontal position of the title in the dialog.
|
/// Sets the horizontal position of the title in the dialog.
|
||||||
|
/// The default position is `HAlign::Center`
|
||||||
pub fn title_position(self, align: HAlign) -> Self {
|
pub fn title_position(self, align: HAlign) -> Self {
|
||||||
self.with(|s| s.set_title_position(align))
|
self.with(|s| s.set_title_position(align))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the horizontal position of the title in the dialog.
|
/// Sets the horizontal position of the title in the dialog.
|
||||||
|
/// The default position is `HAlign::Center`
|
||||||
pub fn set_title_position(&mut self, align: HAlign) {
|
pub fn set_title_position(&mut self, align: HAlign) {
|
||||||
self.title_position = align;
|
self.title_position = align;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user