Skip to content

Commit

Permalink
Fix new nightly doc links errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SamRodri committed Feb 18, 2025
1 parent 11ddd4e commit 9917cab
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 22 deletions.
2 changes: 0 additions & 2 deletions crates/zng-ext-input/src/drag_drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,6 @@ impl DragHoveredArgs {
/// Returns `true` if the [`WIDGET`] is in [`prev_target`].
///
/// [`prev_target`]: Self::prev_target
/// [`prev_capture`]: Self::prev_capture
/// [`WIDGET`]: zng_app::widget::WIDGET
pub fn was_over(&self) -> bool {
if let Some(t) = &self.prev_target {
Expand All @@ -686,7 +685,6 @@ impl DragHoveredArgs {
/// Returns `true` if the [`WIDGET`] is in [`target`].
///
/// [`target`]: Self::target
/// [`capture`]: Self::capture
/// [`WIDGET`]: zng_app::widget::WIDGET
pub fn is_over(&self) -> bool {
if let Some(t) = &self.target {
Expand Down
3 changes: 0 additions & 3 deletions crates/zng-ext-input/src/gesture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,6 @@ impl HeadlessAppGestureExt for HeadlessApp {
/// Adds the `shortcut_matches` method to commands.
pub trait CommandShortcutMatchesExt: CommandShortcutExt {
/// Returns `true` if the command has handlers, enabled or disabled, and the shortcut if one of the command shortcuts.
///
/// [`App`]: crate::event::CommandScope::App
/// [`Custom`]: crate::event::CommandScope::Custom
fn shortcut_matches(self, shortcut: &Shortcut) -> bool;
}
impl CommandShortcutMatchesExt for Command {
Expand Down
1 change: 0 additions & 1 deletion crates/zng-ext-input/src/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ impl KEYBOARD {
///
/// [`sys_repeat_config`]: KEYBOARD::sys_repeat_config
/// [`repeat_count`]: KeyInputArgs::repeat_count
/// [`repeat_speed`]: Self::repeat_speed
pub fn repeat_config(&self) -> ArcCowVar<KeyRepeatConfig, ArcVar<KeyRepeatConfig>> {
KEYBOARD_SV.read().repeat_config.clone()
}
Expand Down
7 changes: 1 addition & 6 deletions crates/zng-wgt-image/src/image_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ pub fn img_fit(child: impl UiNode, fit: impl IntoVar<ImageFit>) -> impl UiNode {
/// By default not scaling is done.
///
/// [`img_scale_ppi`]: fn@img_scale_ppi
/// [`scale`]: fn@crate::scale
#[property(CONTEXT, default(IMAGE_SCALE_VAR), widget_impl(Image))]
pub fn img_scale(child: impl UiNode, scale: impl IntoVar<Factor2d>) -> impl UiNode {
with_context_var(child, IMAGE_SCALE_VAR, scale)
Expand Down Expand Up @@ -202,8 +201,6 @@ pub fn img_scale_factor(child: impl UiNode, enabled: impl IntoVar<bool>) -> impl
///
/// [`img_crop`]: fn@img_crop
/// [`MONITORS`]: zng_ext_window::MONITORS
///
/// [`scape_ppi`]: fn@crate::scape_ppi
#[property(CONTEXT, default(IMAGE_SCALE_PPI_VAR), widget_impl(Image))]
pub fn img_scale_ppi(child: impl UiNode, enabled: impl IntoVar<bool>) -> impl UiNode {
with_context_var(child, IMAGE_SCALE_PPI_VAR, enabled)
Expand Down Expand Up @@ -251,8 +248,7 @@ pub fn img_offset(child: impl UiNode, offset: impl IntoVar<Vector>) -> impl UiNo
/// By default no cropping is done.
///
/// [`img_scale_ppi`]: #fn@img_scale_ppi
/// [texture atlas]: https://en.wikipedia.org/wiki/Texture_atlas///
/// [`crop`]: fn@crate::crop
/// [texture atlas]: https://en.wikipedia.org/wiki/Texture_atlas
/// [`Rect`]: zng_wgt::prelude::Rect
#[property(CONTEXT, default(IMAGE_CROP_VAR), widget_impl(Image))]
pub fn img_crop(child: impl UiNode, crop: impl IntoVar<Rect>) -> impl UiNode {
Expand Down Expand Up @@ -300,7 +296,6 @@ pub fn img_repeat_spacing(child: impl UiNode, spacing: impl IntoVar<Size>) -> im
///
/// This is [`ImageRendering::Auto`] by default.
///
/// [`rendering`]: fn@crate::rendering
/// [`ImageRendering`]: zng_app::render::ImageRendering
/// [`ImageRendering::Auto`]: zng_app::render::ImageRendering::Auto
#[property(CONTEXT, default(IMAGE_RENDERING_VAR), widget_impl(Image))]
Expand Down
1 change: 0 additions & 1 deletion crates/zng-wgt-image/src/mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ pub fn mask_image_cache(child: impl UiNode, enabled: impl IntoVar<bool>) -> impl
/// If not set or set to `None` the [`IMAGES.limits`] is used.
///
/// [`IMAGES.limits`]: zng_ext_image::IMAGES::limits
/// [`img_downscale`]: fn@img_downscale
#[property(CONTEXT, default(MASK_IMAGE_LIMITS_VAR))]
pub fn mask_image_limits(child: impl UiNode, limits: impl IntoVar<Option<ImageLimits>>) -> impl UiNode {
with_context_var(child, MASK_IMAGE_LIMITS_VAR, limits)
Expand Down
1 change: 0 additions & 1 deletion crates/zng-wgt-input/src/drag_drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ event_property! {
///
/// The value is always `false` when the widget is not [`ENABLED`], use [`is_drag_hovered_disabled`] to implement *disabled hovered* visuals.
///
/// [`is_cap_hovered`]: fn@is_cap_hovered
/// [`ENABLED`]: Interactivity::ENABLED
/// [`is_drag_hovered_disabled`]: fn@is_drag_hovered_disabled
#[property(EVENT)]
Expand Down
1 change: 0 additions & 1 deletion crates/zng-wgt-input/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ pub fn is_pointer_pressed(child: impl UiNode, state: impl IntoVar<bool>) -> impl
/// Note that [`is_mouse_pressed`] and [`is_touched_from_start`] do not consider pointer capture, use [`is_cap_pressed`] to
/// include the captured state.
///
/// [`shortcut_pressed_duration`]: Gestures::shortcut_pressed_duration
/// [`is_mouse_pressed`]: fn@is_mouse_pressed
/// [`is_touched_from_start`]: fn@is_touched_from_start
/// [`is_shortcut_pressed`]: fn@is_shortcut_pressed
Expand Down
3 changes: 0 additions & 3 deletions crates/zng-wgt-scroll/src/cmd.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//! Commands that control the scoped scroll widget.
//!
//! The scroll widget implements all of this commands scoped to its widget ID.
//!
//! [`ScrollToTopCommand`]: crate::widgets::scroll::cmd::ScrollToTopCommand
//! [`ScrollToLeftmostCommand`]: crate::widgets::scroll::cmd::ScrollToLeftmostCommand
use super::*;
use zng_app::event::{CommandArgs, CommandParam};
Expand Down
2 changes: 0 additions & 2 deletions crates/zng-wgt-toggle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,8 +1119,6 @@ pub fn combo_spacing(child: impl UiNode, spacing: impl IntoVar<Length>) -> impl
///
/// [`ComboStyle!`]: struct@ComboStyle
/// [`Popup!`]: struct@zng_wgt_layer::popup::Popup
/// [`LAYERS`]: layers::LAYERS
/// [`POPUP`]: zng_wgt_layer::popup::POPUP
#[property(CHILD, widget_impl(Toggle))]
pub fn checked_popup(child: impl UiNode, popup: impl IntoVar<WidgetFn<()>>) -> impl UiNode {
let popup = popup.into_var();
Expand Down
2 changes: 0 additions & 2 deletions crates/zng-wgt-tooltip/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@ pub fn access_tooltip_anchor(child: impl UiNode, mode: impl IntoVar<AnchorMode>)
/// Note that updates to this property do not affect tooltips already open, just subsequent tooltips.
///
/// This property sets the [`TOOLTIP_CONTEXT_CAPTURE_VAR`].
///
/// [`LAYERS`]: crate::window::layers::LAYERS
#[property(CONTEXT, default(TOOLTIP_CONTEXT_CAPTURE_VAR))]
pub fn tooltip_context_capture(child: impl UiNode, capture: impl IntoVar<ContextCapture>) -> impl UiNode {
with_context_var(child, TOOLTIP_CONTEXT_CAPTURE_VAR, capture)
Expand Down

0 comments on commit 9917cab

Please sign in to comment.