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