Skip to content

Commit 737849a

Browse files
authored
Fix Controller links for Click (#2158)
1 parent a92eaa4 commit 737849a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ You can find its changes [documented below](#070---2021-01-01).
141141
- Updated source code, tests and docs to use `Selector::with` instead of `Command::new` ([#1761] by [@arthmis])
142142
- Updated docs of `should_propagate_to_hidden`, `children_changed` and `register_for_focus` ([#1861] by [@xarvic])
143143
- Update docs of `RawLabel`: does not require `ArcStr`([#1886] by [@Maan2003])
144+
- Fix `Controller` links for `Click` ([#2158] by [@yrns])
144145

145146
### Examples
146147
- Add readme ([#1423] by [@JAicewizard])
@@ -840,6 +841,7 @@ Last release without a changelog :(
840841
[#2145]: https://github.com/linebender/druid/pull/2145
841842
[#2148]: https://github.com/linebender/druid/pull/2148
842843
[#2151]: https://github.com/linebender/druid/pull/2151
844+
[#2158]: https://github.com/linebender/druid/pull/2158
843845

844846
[Unreleased]: https://github.com/linebender/druid/compare/v0.7.0...master
845847
[0.7.0]: https://github.com/linebender/druid/compare/v0.6.0...v0.7.0

druid/src/widget/click.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515
//! A clickable [`Controller`] widget.
1616
//!
17-
//! [`Controller`]: struct.Controller.html
17+
//! [`Controller`]: trait.Controller.html
1818
1919
use crate::widget::Controller;
2020
use crate::{Data, Env, Event, EventCtx, LifeCycle, LifeCycleCtx, MouseButton, Widget};
2121
use tracing::{instrument, trace};
2222

2323
/// A clickable [`Controller`] widget. Pass this and a child widget to a
2424
/// [`ControllerHost`] to make the child interactive. More conveniently, this is
25-
/// available as an `on_click` method via [`WidgetExt`]'.
25+
/// available as an [`on_click`] method via [`WidgetExt`].
2626
///
2727
/// This is an alternative to the standard [`Button`] widget, for when you want
2828
/// to make an arbitrary widget clickable.
@@ -31,8 +31,9 @@ use tracing::{instrument, trace};
3131
/// mouse down, which can be useful for painting based on `ctx.is_active()`
3232
/// and `ctx.is_hot()`.
3333
///
34-
/// [`Controller`]: struct.Controller.html
34+
/// [`Controller`]: trait.Controller.html
3535
/// [`ControllerHost`]: struct.ControllerHost.html
36+
/// [`on_click`]: ../trait.WidgetExt.html#method.on_click
3637
/// [`WidgetExt`]: ../trait.WidgetExt.html
3738
/// [`Button`]: struct.Button.html
3839
/// [`LifeCycle::HotChanged`]: ../enum.LifeCycle.html#variant.HotChanged

0 commit comments

Comments
 (0)