Clarify TitleBar::always_show_controls docs a bit

This commit is contained in:
Héctor Ramón Jiménez 2020-07-31 06:43:51 +02:00
parent ab0da5dad0
commit ac74f35424

View File

@ -68,12 +68,15 @@ where
self
}
/// Sets whether or not the [`controls`] attached to this
/// panes [`TitleBar`] are always visible. By default, the controls
/// are only visible on hover.
/// Sets whether or not the [`controls`] attached to this [`TitleBar`] are
/// always visible.
///
/// By default, the controls are only visible when the [`Pane`] of this
/// [`TitleBar`] is hovered.
///
/// [`TitleBar`]: struct.TitleBar.html
/// [`controls`]: struct.TitleBar.html#method.controls
/// [`Pane`]: struct.Pane.html
pub fn always_show_controls(mut self) -> Self {
self.always_show_controls = true;
self